/*
 * Platinum Starter - Animations
 * ================================================
 */

/* ===== LIGHTBOX ===== */
.plt-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plt-lightbox--active {
    opacity: 1;
}

.plt-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    cursor: pointer;
}

.plt-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.plt-lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
}

.plt-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.plt-lightbox__close:hover {
    opacity: 1;
}

.plt-lightbox__caption {
    text-align: center;
    padding: 15px;
    color: var(--plt-gold, #bd9445);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===== MODAL ===== */
.plt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.plt-modal--active {
    opacity: 1;
    visibility: visible;
}

.plt-modal__content {
    background: var(--plt-bg-card, #1a1a1a);
    padding: 50px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(189, 148, 69, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.plt-modal--active .plt-modal__content {
    transform: translateY(0);
}

.plt-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plt-modal__close::before,
.plt-modal__close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #fff;
}

.plt-modal__close::before { transform: rotate(45deg); }
.plt-modal__close::after { transform: rotate(-45deg); }

/* ===== LOADING ANIMATION ===== */
.plt-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(189, 148, 69, 0.3);
    border-top-color: var(--plt-gold, #bd9445);
    border-radius: 50%;
    animation: pltSpin 0.8s linear infinite;
}

@keyframes pltSpin {
    to { transform: rotate(360deg); }
}

/* ===== PULSE ANIMATION ===== */
.plt-pulse {
    animation: pltPulse 2s ease-in-out infinite;
}

@keyframes pltPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== FLOAT ANIMATION ===== */
.plt-float {
    animation: pltFloat 3s ease-in-out infinite;
}

@keyframes pltFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== SCALE ON HOVER ===== */
.plt-scale-hover {
    transition: transform 0.3s ease;
}

.plt-scale-hover:hover {
    transform: scale(1.05);
}

/* ===== GRADIENT TEXT ===== */
.plt-gradient-text {
    background: linear-gradient(90deg, var(--plt-mint, #09ba81), var(--plt-gold, #bd9445));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== STAGGER DELAYS ===== */
.plt-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.plt-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.plt-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.plt-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.plt-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.plt-stagger > *:nth-child(6) { animation-delay: 0.6s; }
.plt-stagger > *:nth-child(7) { animation-delay: 0.7s; }
.plt-stagger > *:nth-child(8) { animation-delay: 0.8s; }

/* ===== DECORATIVE ELEMENTS ===== */
.plt-decor-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--plt-mint, #09ba81), var(--plt-gold, #bd9445));
}

.plt-decor-line--vertical {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--plt-gold, #bd9445), transparent);
}

/* ===== BACKGROUND PATTERNS ===== */
.plt-pattern-dots {
    background-image: radial-gradient(rgba(189, 148, 69, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.plt-pattern-gradient {
    background: linear-gradient(135deg, 
        rgba(9, 186, 129, 0.05) 0%, 
        transparent 50%,
        rgba(189, 148, 69, 0.05) 100%);
}
