/* ============================================
   CHRISTMAS EFFECTS - OLD MONEY AESTHETIC
   Subtle, elegant, festive
   ============================================ */

/* Snowfall Effect - Gentle and Minimal */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    font-family: Arial, sans-serif;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        top: -10%;
        opacity: 0.7;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

/* Individual snowflake variations */
.snowflake:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 14s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 16s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 15s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 4s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 13s; animation-delay: 6s; }

/* Christmas String Lights - Elegant */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 10px 0;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    animation: twinkle 2s infinite;
}

.light::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: rgba(120, 113, 108, 0.3);
}

.light:nth-child(odd) {
    background: #047857;
    box-shadow: 0 0 10px #047857;
}

.light:nth-child(even) {
    background: #b8860b;
    box-shadow: 0 0 10px #b8860b;
}

.light:nth-child(3n) {
    animation-delay: 0.5s;
}

.light:nth-child(3n+1) {
    animation-delay: 1s;
}

.light:nth-child(3n+2) {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Loading Screen - Christmas Tree */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f3ef 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* CSS Christmas Tree */
.christmas-tree {
    position: relative;
    margin-bottom: 2rem;
    animation: treeGrow 2s ease-out;
}

/* Tree Layers */
.tree-layer {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid #047857;
    margin: -20px auto;
    position: relative;
    animation: layerSway 3s ease-in-out infinite;
}

.tree-layer:nth-child(1) {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 60px;
    animation-delay: 0s;
}

.tree-layer:nth-child(2) {
    border-left-width: 55px;
    border-right-width: 55px;
    border-bottom-width: 85px;
    border-bottom-color: #059669;
    animation-delay: 0.2s;
}

.tree-layer:nth-child(3) {
    border-left-width: 70px;
    border-right-width: 70px;
    border-bottom-width: 100px;
    border-bottom-color: #047857;
    animation-delay: 0.4s;
}

/* Tree Trunk */
.tree-trunk {
    width: 30px;
    height: 40px;
    background: #78716c;
    margin: 0 auto;
    border-radius: 2px;
}

/* Tree Star */
.tree-star {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

/* Tree Ornaments */
.tree-ornament {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: ornamentShine 2s ease-in-out infinite;
}

.tree-ornament:nth-child(1) {
    background: #b8860b;
    top: 30px;
    left: 20px;
    animation-delay: 0s;
}

.tree-ornament:nth-child(2) {
    background: #d1fae5;
    top: 50px;
    right: 15px;
    animation-delay: 0.5s;
}

.tree-ornament:nth-child(3) {
    background: #b8860b;
    top: 80px;
    left: 30px;
    animation-delay: 1s;
}

.tree-ornament:nth-child(4) {
    background: #d1fae5;
    top: 100px;
    right: 25px;
    animation-delay: 1.5s;
}

/* Tree Lights */
.tree-light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
    animation: lightBlink 1s ease-in-out infinite;
}

.tree-light:nth-child(5) {
    top: 40px;
    right: 30px;
    animation-delay: 0.3s;
}

.tree-light:nth-child(6) {
    top: 70px;
    left: 15px;
    animation-delay: 0.6s;
}

.tree-light:nth-child(7) {
    top: 90px;
    right: 20px;
    animation-delay: 0.9s;
}

/* Animations */
@keyframes treeGrow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes layerSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes ornamentShine {
    0%, 100% {
        box-shadow: 0 0 5px rgba(184, 134, 11, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(184, 134, 11, 0.8);
        transform: scale(1.1);
    }
}

@keyframes lightBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.loading-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #065f46;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #047857;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confirmation Success Animation */
.confirmation-animation {
    animation: confirmationPop 0.6s ease-out;
}

@keyframes confirmationPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-checkmark {
    display: inline-block;
    font-size: 3rem;
    color: #047857;
    margin-bottom: 1rem;
    animation: checkmarkAppear 0.8s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Festive Border Accent */
.festive-border {
    position: relative;
}

.festive-border::before,
.festive-border::after {
    content: '❄';
    position: absolute;
    color: rgba(4, 120, 87, 0.2);
    font-size: 1.5rem;
}

.festive-border::before {
    top: 0.5rem;
    left: 0.5rem;
}

.festive-border::after {
    bottom: 0.5rem;
    right: 0.5rem;
}

/* Responsive - Reduce effects on mobile */
@media (max-width: 640px) {
    .snowflake:nth-child(n+6) {
        display: none;
    }

    .light:nth-child(n+9) {
        display: none;
    }

    .christmas-tree {
        transform: scale(0.8);
    }

    .loading-text {
        font-size: 1.25rem;
    }
}
