/* Loading Splash Screen Styles */

.loading-splash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-splash.active {
    opacity: 1;
    visibility: visible;
}

/* Dark mode support */
[data-theme="dark"] .loading-splash {
    background: rgba(30, 30, 30, 0.98);
}

.splash-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.splash-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

/* Orbit Spinner Animation */
.orbit-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

.orbit {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: orbit 2s linear infinite;
}

.orbit:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-top-color: #1a73e8;
    animation-duration: 3s;
}

.orbit:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-right-color: #34a853;
    animation-duration: 2s;
    animation-direction: reverse;
}

.orbit:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 10px;
    left: 10px;
    border-bottom-color: #fbbc04;
    animation-duration: 1.5s;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #1a73e8;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Text Styles */
.splash-title {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #202124;
    margin: 0 0 0.5rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.splash-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #5f6368;
    margin: 0 0 2rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

[data-theme="dark"] .splash-title {
    color: #e8eaed;
}

[data-theme="dark"] .splash-subtitle {
    color: #9aa0a6;
}

/* Progress Bar */
.loading-progress {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e8eaed;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .progress-bar {
    background: #3c4043;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #34a853, #fbbc04, #ea4335);
    background-size: 300% 100%;
    animation: progressFlow 2s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes progressFlow {
    0% {
        background-position: 0% 50%;
        width: 0;
    }
    50% {
        background-position: 100% 50%;
        width: 100%;
    }
    100% {
        background-position: 0% 50%;
        width: 0;
    }
}

/* Progress Details */
.progress-details {
    margin-top: 1rem;
    text-align: center;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Brand Title - Large display for initial load */
.splash-brand {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a73e8;
    text-align: center;
    margin: 2rem 0;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

[data-theme="dark"] .splash-brand {
    color: #8ab4f8;
}

/* Hide progress details when showing brand */
.splash-content.show-brand .progress-details {
    display: none;
}

@media (max-width: 768px) {
    .splash-brand {
        font-size: 2rem;
    }
}

.progress-stats {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.progress-current {
    font-size: 1.25rem;
    font-weight: 700;
}

.progress-info {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    color: #5f6368;
}

.progress-batch {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f0fe;
    border-radius: 1rem;
    color: #1967d2;
    font-weight: 500;
}

[data-theme="dark"] .progress-stats {
    color: #8ab4f8;
}

[data-theme="dark"] .progress-info {
    color: #9aa0a6;
}

[data-theme="dark"] .progress-batch {
    background: #1e3a5f;
    color: #8ab4f8;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer Effect for Text */
.splash-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-animation {
        width: 150px;
        height: 150px;
    }
    
    .orbit-spinner {
        width: 90px;
        height: 90px;
    }
    
    .orbit:nth-child(1) {
        width: 45px;
        height: 45px;
        top: 22.5px;
        left: 22.5px;
    }
    
    .orbit:nth-child(2) {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }
    
    .orbit:nth-child(3) {
        width: 75px;
        height: 75px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .pulse-ring {
        width: 90px;
        height: 90px;
    }
    
    .splash-title {
        font-size: 1.5rem;
    }
    
    .splash-subtitle {
        font-size: 0.875rem;
    }
}