/* ========================================
   MOBILE LOADING INDICATOR
   ======================================== */

/* Mobile Loading Overlay */
.mobile-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Loading Spinner Container */
.mobile-loading-spinner {
    text-align: center;
}

/* Modern Spinner */
.mobile-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(185, 44, 50, 0.1);
    border-top: 4px solid #B92C32;
    border-radius: 50%;
    animation: mobileSpin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Loading Dots Alternative */
.mobile-loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.mobile-dot {
    width: 12px;
    height: 12px;
    background: #B92C32;
    border-radius: 50%;
    animation: mobileDotPulse 1.4s ease-in-out infinite both;
}

.mobile-dot:nth-child(1) { animation-delay: -0.32s; }
.mobile-dot:nth-child(2) { animation-delay: -0.16s; }
.mobile-dot:nth-child(3) { animation-delay: 0; }

/* Loading Text */
.mobile-loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
    margin-top: 10px;
}

/* College Logo Loading */
.mobile-loading-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    opacity: 0.7;
    animation: mobileLogoPulse 2s ease-in-out infinite;
}

/* Mobile Only - Hide on Desktop */
@media (min-width: 769px) {
    .mobile-loading-overlay {
        display: none !important;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .mobile-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .mobile-loading-logo {
        width: 50px;
        height: 50px;
    }
    
    .mobile-loading-text {
        font-size: 0.85rem;
    }
    
    .mobile-dot {
        width: 10px;
        height: 10px;
    }
}

/* Animations */
@keyframes mobileSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes mobileDotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mobileLogoPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Progress Bar Style */
.mobile-loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #B92C32, #d23642);
    animation: mobileProgress 2s ease-in-out infinite;
    border-radius: 0 3px 3px 0;
}

@keyframes mobileProgress {
    0% { width: 0%; left: 0; }
    50% { width: 70%; left: 0; }
    100% { width: 100%; left: 100%; }
}

/* Pulse Ring Effect */
.mobile-spinner-ring {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.mobile-spinner-ring::before,
.mobile-spinner-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: #B92C32;
    border-radius: 50%;
    animation: mobileRingSpin 1.5s linear infinite;
}

.mobile-spinner-ring::after {
    animation-delay: 0.75s;
    border-top-color: #d23642;
}

@keyframes mobileRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
