/* Kairos Playful Loading Page Styles */

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1C2333 0%, #2B3245 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: #F5F9FC;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.loading-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #F5F9FC;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loading-category {
    font-size: 1.2rem;
    font-weight: 600;
    color: #9DA6BB;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loading-message {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 1.5rem 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    line-height: 1.4;
}

.loading-progress-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
}

.loading-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 2px 15px rgba(13, 110, 253, 0.8); }
    100% { box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4); }
}

.loading-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #9DA6BB;
    font-weight: 500;
}

.loading-spinner {
    margin: 2rem auto;
    width: 60px;
    height: 60px;
    position: relative;
}

.loading-spinner::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #0d6efd;
    animation: spin 1s linear infinite;
}

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

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 4px;
    animation: bounce-dots 1.4s ease-in-out infinite both;
}

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

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

.loading-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .loading-container {
        padding: 1rem;
    }
    
    .loading-logo {
        font-size: 2.5rem;
    }
    
    .loading-message {
        font-size: 1.2rem;
        min-height: 2.5rem;
    }
    
    .loading-category {
        font-size: 1rem;
    }
}

/* Fun hover effects for elements */
.loading-container:hover .loading-logo {
    animation-duration: 1s;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .loading-logo,
    .loading-progress,
    .loading-spinner::before,
    .loading-dot {
        animation: none;
    }
    
    .loading-message {
        transition: none;
    }
}