/* ============================================
   LOADING SCREEN COMPONENT STYLES
   Modern circular progress indicator
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: none; /* Hidden by default - shown via JavaScript only when needed */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loading-screen.show {
    display: flex; /* Show when JavaScript adds this class */
}

/* Modern circular spinner - thinner border */
.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 2.5px;
    }
}

@media (max-width: 480px) {
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
}

/* Mobile Landscape View */
@media screen and (max-height: 450px) and (orientation: landscape) {
    .spinner {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        border-top-color: #ffffff;
        border-color: rgba(255, 255, 255, 0.3);
    }
}
