/* Student List Redesigned Styles */

/* Enhanced Glassmorphism Effects */
.enhanced-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Advanced Animations */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 209, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 209, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Advanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 255, 209, 0.3);
}

/* Gradient Text Effects */
.gradient-text-cyan-purple {
    background: linear-gradient(135deg, #00FFD1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar for Containers */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #00FFD1 rgba(14, 42, 71, 0.3);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(14, 42, 71, 0.3);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00FFD1, #8B5CF6);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8B5CF6, #00FFD1);
}

/* Loading Animation */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Badge Styles */
.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.badge-achievement {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.badge-rank {
    background: linear-gradient(135deg, #00FFD1, #0EA5E9);
    box-shadow: 0 4px 15px rgba(0, 255, 209, 0.4);
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .text-responsive-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .text-responsive-base {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .text-responsive-xl {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .text-responsive-lg {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .text-responsive-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .text-responsive-xl {
        font-size: 2.5rem;
        line-height: 3rem;
    }

    .text-responsive-lg {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .text-responsive-base {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .enhanced-glass {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Touch-friendly Interactions */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover {
        transform: none;
    }

    .hover-lift:active {
        transform: scale(0.98);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.focus-visible-enhanced:focus-visible {
    outline: 2px solid #00FFD1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        backdrop-filter: none;
    }

    .gradient-text-cyan-purple,
    .gradient-text-gold {
        -webkit-text-fill-color: initial;
        color: #333;
    }
}

/* Advertisement Styles */
.ad-container {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 255, 209, 0.2);
}

.sponsored-section {
    position: relative;
    overflow: hidden;
}

.sponsored-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FFD1, transparent);
    opacity: 0.3;
}

.sponsor-logo {
    transition: all 0.3s ease;
    filter: grayscale(50%);
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Advertisement Labels */
.ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Sponsored Content Styling */
.sponsored-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.sponsored-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sponsored-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 209, 0.1), transparent);
    transition: left 0.5s ease;
}

.sponsored-item:hover::before {
    left: 100%;
}

.sponsored-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 209, 0.3);
    transform: translateY(-3px);
}

/* Mobile Ad Adjustments */
@media (max-width: 768px) {
    .sponsored-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .sponsored-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .ad-container {
        padding: 0.75rem;
        border-radius: 12px;
    }
}