

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;600;700;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-bg: #0a0a0f;
    --secondary-bg: #12121a;
    --panel-bg: rgba(20, 20, 30, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(139, 92, 246, 0.3);
    
    /* Neon Colors - Purple Theme */
    --neon-purple: #8b5cf6;
    --deep-purple: #6d28d9;
    --light-purple: #a855f7;
    --electric-purple: #9333ea;
    --neon-pink: #ec4899;
    --neon-green: #00ff80;
    
    /* Gradients - Purple Theme */
    --gradient-primary: linear-gradient(135deg, var(--neon-purple), var(--electric-purple));
    --gradient-secondary: linear-gradient(135deg, var(--deep-purple), var(--light-purple));
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffb300);
    --gradient-silver: linear-gradient(135deg, #c0c0c0, #808080);
    --gradient-bronze: linear-gradient(135deg, #cd7f32, #8b4513);
    
    /* Typography */
    --font-primary: 'Prompt', sans-serif;
    --font-secondary: 'Prompt', sans-serif;
    
    /* Shadows and Glows - Purple Theme */
    --glow-primary: 0 0 20px rgba(139, 92, 246, 0.5);
    --glow-secondary: 0 0 20px rgba(109, 40, 217, 0.5);
    --glow-accent: 0 0 20px rgba(147, 51, 234, 0.5);
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-bg);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tech Grid Background */
.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header Styles */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--glow-primary);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 10rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-icon {
    width: auto; /* Let image determine width */
    height: 45px; /* Maintain height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}



.logo-text h1 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    white-space: nowrap;
}

.logo-text span {
    color: #a0a0a0;
    font-size: 0.78rem;
    font-weight: 300;
    white-space: nowrap;
}

.season-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.season-label {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.season-year-selector {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    padding: 0.2rem 2rem 0.2rem 1rem; /* T, R, B, L */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: all 0.3s ease;
}

.season-year-selector:hover {
    background-color: var(--glass-bg);
    border-color: var(--neon-purple);
}

.season-year-selector:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: var(--glow-primary);
}

.season-year-selector option {
    background-color: var(--secondary-bg);
    color: #fff;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-left: auto;
    flex-shrink: 0;
}

.lang-switcher button {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-switcher button.active {
    color: #ffffff;
    background: var(--neon-purple);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass-bg);
    color: var(--neon-purple);
    box-shadow: var(--glow-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Main Layout */
.main-layout {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.leaderboard-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--glow-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rankings-title-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.division-buttons {
    display: flex;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.division-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.division-btn:hover {
    color: white;
    background: rgba(139, 92, 246, 0.2);
}

.division-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.division-btn.active:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.last-updated {
    color: #a0a0a0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.last-updated i {
    color: var(--neon-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Podium Styles */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
}

.podium-spot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
}

.podium-spot.first {
    order: 2;
    transform: scale(1.25);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-primary), 0 0 50px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, var(--glass-bg), rgba(139, 92, 246, 0.1));
    border-width: 3px;
    padding: 2.5rem;
}

.podium-spot.second {
    order: 1;
}

.podium-spot.third {
    order: 3;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--glass-bg);
    border: 3px solid var(--border-color);
}

.team-info h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.team-info span {
    color: #a0a0a0;
    font-size: 0.9rem;
    text-align: center;
}

.division-display {
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.division-display.junior {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.division-display.advanced {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.rank-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.2rem;
    position: absolute;
    top: -25px;
    right: -15px;
    animation: badgePulse 2s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px var(--glow-color);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 50px var(--glow-color), 0 0 75px var(--glow-color);
    }
}

.rank-badge.gold {
    --glow-color: rgba(255, 215, 0, 0.9);
    background: var(--gradient-gold);
    box-shadow: 0ๅจจ100 0 40px var(--glow1-0000-color), 0 0 60px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
}

.rank-badge.silver {
    --glow-color: rgba(192, 192, 192, 0.9);
    background: var(--gradient-silver);
    box-shadow: 0 0 40px var(--glow-color), 0 0 60px rgba(192, 192, 192, 0.5);
    border-color: rgba(192, 192, 192, 0.6);
}

.rank-badge.bronze {
    --glow-color: rgba(205, 127, 50, 0.9);
    background: var(--gradient-bronze);
    box-shadow: 0 0 40px var(--glow-color), 0 0 60px rgba(205, 127, 50, 0.5);
    border-color: rgba(205, 127, 50, 0.6);
}

.points {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--neon-purple);
}

/* Leaderboard Table */
.leaderboard-table-container {
    background: var(--panel-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: var(--secondary-bg);
    padding: 1rem;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--neon-purple);
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(100, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-table tr:hover {
    background: var(--glass-bg);
    transform: scale(1.02);
}

.rank-cell {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.team-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.school-name {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.points-cell {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--neon-purple);
}

.trend-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.trend-up {
    color: var(--neon-green);
    animation: bounceUp 2s infinite;
}

.trend-down {
    color: var(--neon-pink);
    animation: bounceDown 2s infinite;
}

.trend-stable {
    color: #a0a0a0;
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.last-event {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.event-result {
    font-weight: 600;
    margin-top: 0.2rem;
}

.result-win { color: var(--neon-green); }
.result-second { color: var(--neon-purple); }
.result-third { color: #ffa500; }
.result-other { color: #a0a0a0; }

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--glow-accent);
}

.sidebar-section h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Recent Results */
.recent-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: var(--panel-bg);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.event-info h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.date {
    color: #a0a0a0;
    font-size: 0.8rem;
}

.result-details {
    margin-top: 0.5rem;
}

.winner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--neon-purple);
}

.position {
    font-size: 1.2rem;
}

/* Upcoming Events */
.upcoming-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--panel-bg);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: var(--glow-secondary);
    transform: translateY(-2px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 50px;
}

.day {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.month {
    font-size: 0.8rem;
}

.event-details h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.location, .time {
    color: #a0a0a0;
    font-size: 0.8rem;
    display: block;
}

.event-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.event-status.live {
    background: var(--neon-green);
    color: black;
    animation: pulse 2s infinite;
}

.event-status.upcoming {
    background: var(--glass-bg);
    color: var(--neon-purple);
    border: 1px solid var(--border-color);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--panel-bg);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    box-shadow: var(--glow-accent);
    transform: scale(1.05);
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.3rem;
}

/* Responsive Design — see full blocks below */

/* ================================================================
   HAMBURGER MENU
================================================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    flex-shrink: 0;
    z-index: 1100;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   RESPONSIVE — TABLET (iPad: 769px – 1024px)
================================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container { gap: 1rem; }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.88rem;
    }

    .logo-text h1 { font-size: 0.9rem; }
    .logo-text span { font-size: 1rem; }
    .logo-icon { height: 38px; }

    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤768px)
================================================================ */
@media (max-width: 768px) {
    /* Header */
    .main-header { position: sticky; }

    .header-container {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0 1rem;
        position: relative;
    }

    .logo-section { flex: 1; min-width: 0; }

    .logo-icon { height: 34px; }
    .logo-text h1 { font-size: 0.82rem; }
    .logo-text span { font-size: 0.68rem; }

    /* Hamburger visible */
    .hamburger-btn { display: flex; }

    /* Nav becomes full-width dropdown */
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(12, 12, 20, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1rem;
        gap: 0.25rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .main-nav.open { display: flex; }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        white-space: normal;
        font-size: 1rem;
    }

    /* Main layout */
    .main-layout {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
        margin: 1rem auto;
        gap: 1rem;
    }

    /* Podium */
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem;
    }

    .podium-spot {
        order: unset !important;
        transform: none !important;
        width: 100%;
        max-width: 300px;
    }

    .podium-spot.first {
        order: 1 !important;
    }

    .podium-spot.second {
        order: 2 !important;
    }

    .podium-spot.third {
        order: 3 !important;
    }

    /* Table scrollable on mobile */
    .leaderboard-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaderboard-table { min-width: 500px; }

    .section-header h2 { font-size: 1.4rem; }

    /* Sidebar stacks below main */
    .right-sidebar { flex-direction: column; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
================================================================ */
@media (max-width: 480px) {
    .logo-text { display: none; }
    .logo-icon { height: 38px; }

    .leaderboard-table { min-width: 420px; }

    .podium-spot { padding: 2rem 1rem; }
    .rank-badge { width: 55px; height: 55px; font-size: 1.6rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Members Photos */
.members-cell {
    padding: 1rem 0.5rem;
}

.members-photos {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.member-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.member-photo:hover {
    transform: scale(1.1);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-primary);
}

.member-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.member-photo:hover .member-name {
    opacity: 1;
}

/* Podium Member Photos */
.podium-members {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    justify-content: center;
}

.podium-member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--purple-400);
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(107, 114, 128, 0.4);
}

.podium-member-photo:hover {
    transform: scale(1.1);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
}

.podium-spot.first .podium-member-photo {
    border-color: var(--accent-gold);
    width: 70px;
    height: 70px;
    border-width: 4px;
}

.podium-spot.second .podium-member-photo {
    border-color: #C0C0C0;
    border-width: 3px;
}

.podium-spot.third .podium-member-photo {
    border-color: #CD7F32;
    border-width: 3px;
}

/* Podium Institution Logos */
.podium-institutions {
    display: flex;
    gap: 8px;
    margin: -30px 0 6px 0;
    justify-content: center;
    align-items: center;
}

.institution-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid var(--purple-300);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.institution-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 50%;
}

.institution-logo:hover {
    transform: scale(1.1);
    border-color: var(--neon-purple);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
}

.podium-spot.first .institution-logo {
    border-color: var(--accent-gold);
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.podium-spot.second .institution-logo {
    border-color: #C0C0C0;
    border-width: 3px;
}

.podium-spot.third .institution-logo {
    border-color: #CD7F32;
    border-width: 3px;
}

/* Division Badges */
.division-cell {
    text-align: center;
}

.division-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.division-badge.junior {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.division-badge.advanced {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.division-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Trend text styling */
.trend-text {
    font-size: 0.8rem;
    text-transform: capitalize;
    margin-left: 0.5rem;
    opacity: 0.7;
}

/* Enhanced Responsive Design for Rankings Table */
@media (max-width: 1400px) {
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .member-photo {
        width: 35px;
        height: 35px;
    }
    
    .member-name {
        font-size: 0.6rem;
    }
}

@media (max-width: 1200px) {
    .rankings-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .division-dropdown {
        min-width: 150px;
    }
    
    /* Hide school column on smaller screens */
    .school-cell {
        display: none;
    }
    
    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .leaderboard-table {
        font-size: 0.8rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem 0.3rem;
    }
    
    .members-photos {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .member-photo {
        width: 30px;
        height: 30px;
    }
    
    .division-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Hide competitions column on mobile */
    .competitions-cell {
        display: none;
    }
    
    .leaderboard-table th:nth-child(7),
    .leaderboard-table td:nth-child(7) {
        display: none;
    }
}
/* ================================================================
   SITE FOOTER
================================================================ */
.site-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    color: #aaa;
    white-space: nowrap;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    opacity: 0.75;
}

.footer-nav {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--neon-purple); }

.footer-copy {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: #444;
    text-align: right;
    line-height: 1.6;
}

.footer-copy strong { color: #666; }
.footer-copy span   { color: #3a3a3a; }

@media (max-width: 768px) {
    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-copy { text-align: center; }
}
