/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #05112a 0%, #0a1c3a 50%, #132850 100%);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
}

.logo-container {
    animation: logoFadeIn 0.6s ease-out;
}

.loading-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-spinner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.spinner-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b4944d 0%, #ddc596 100%);
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(180, 148, 77, 0.4);
}

.spinner-circle:nth-child(1) {
    animation-delay: 0s;
}

.spinner-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-circle:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    color: #f8faff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.9;
    animation: textFade 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateY(-16px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 540px) {
    .loading-logo {
        width: 140px;
    }

    .loading-text {
        font-size: 0.85rem;
    }

    .spinner-circle {
        width: 12px;
        height: 12px;
    }
}

/* Fade out animation when app loads */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
