/* ========================================
   VexCommunity - Minecraft Combat Rankings
   Modern Glassmorphism Design
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-gold: #f59e0b;
    --accent-silver: #94a3b8;
    --accent-bronze: #cd7f32;
    --accent-green: #10b981;

    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #3b82f6 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-silver: linear-gradient(135deg, #64748b, #94a3b8);
    --gradient-bronze: linear-gradient(135deg, #92400e, #cd7f32);

    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: gradientMove 20s ease-in-out infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, 2%) rotate(90deg);
    }

    50% {
        transform: translate(0, 4%) rotate(180deg);
    }

    75% {
        transform: translate(-2%, 2%) rotate(270deg);
    }
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 200px;
    animation: particleFloat 60s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.floating-header {
    margin: 1rem auto;
    max-width: 95%;
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.nav-link svg {
    opacity: 0.7;
}

.nav-link:hover svg,
.nav-link.active svg {
    opacity: 1;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.search-box svg {
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 200px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) transparent;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 3px;
}

.category-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: default;
    /* Changed from pointer */
    transition: var(--transition);
    white-space: nowrap;
}

/* Removed hover transform effects that implied interactivity */
.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-tab .tab-icon {
    font-size: 1.5rem;
    filter: grayscale(0.5);
    /* Keep grayscale style or remove if they want them to look 'active' always? explicit request was "cannot be clicked". */
    transition: var(--transition);
}

.category-tab .tab-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-tab:hover .tab-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.category-tab:hover .tab-text {
    color: var(--text-primary);
}

.category-tab.active {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.category-tab.active .tab-icon {
    filter: grayscale(0);
}

.category-tab.active .tab-text {
    color: var(--accent-purple);
    font-weight: 600;
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
}

.server-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.server-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Rankings Container */
.rankings-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.rankings-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px 300px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rankings-body {
    display: flex;
    flex-direction: column;
}

/* Player Row */
.player-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 300px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
    cursor: pointer;
}

.player-row:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.player-row:last-child {
    border-bottom: none;
}

/* Rank Column */
.player-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

.player-rank.rank-1 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.player-rank.rank-2 {
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-rank.rank-3 {
    background: var(--gradient-bronze);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Player Info */
.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid var(--border-glass);
    transition: var(--transition);
}

.player-row:hover .player-avatar {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.player-tier-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tier-icon {
    width: 28px;
    /* Increased from 20px */
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.tier-name {
    font-size: 1.1rem;
    /* Further increased */
    font-weight: 700;
}

/* ... existing colors ... */

/* Special Rank Layouts */
/* Rank 1: Luxury (Gold, Glow, Fancy) */
.player-row.special-rank-1 {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(0, 0, 0, 0));
    border-left: 4px solid #f59e0b;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
    transform: scale(1.02);
    z-index: 10;
}

.player-row.special-rank-1 .player-rank {
    font-size: 2.5rem;
    /* Bigger number */
    font-style: italic;
}

.player-row.special-rank-1 .player-avatar {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    width: 56px;
    height: 56px;
    /* Bigger avatar for #1 */
}

/* Rank 2: Modern (Silver/Cyan, Sharp, Clean) */
.player-row.special-rank-2 {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(0, 0, 0, 0));
    border-left: 4px solid #38bdf8;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.player-row.special-rank-2 .player-rank {
    font-size: 2rem;
    color: #38bdf8;
}

/* Rank 3: Simple Modern (Bronze/Orange, Minimalist) */
.player-row.special-rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0));
    border-left: 4px solid #cd7f32;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.player-row.special-rank-3 .player-rank {
    font-size: 1.8rem;
    color: #cd7f32;
}

.player-points {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-points span {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Region Badge */
.region-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

.region-badge.na {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.region-badge.eu {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.region-badge.as {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.region-badge.sa {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Tier Icons Column */
.tier-icons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.tier-badge-container {
    display: inline-flex;
    /* Keep pairs together */
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-mode-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* The text badge itself */
.tier-badge {
    /* Reset previous dimensions if any */
    width: auto;
    height: auto;
    padding: 0;
    background: transparent !important;
    /* Remove background from inner badge, container handles it? Or keep it? */
    /* Wait, the color classes (ht1, etc) apply backgrounds. We might want just text color or a small pill. */
    /* Actually, the previous design had specific gradients for .tier-badge.ht1 */
    /* Let's make the container hold the gradient? Or keep badge as a pill inside. */

    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    /* We need to override the blocky size from before */
}

/* Override the specific gradient classes to be text-only or small pills */
.tier-badge.ht1 {
    background: none;
    color: #f59e0b;
}

.tier-badge.ht2 {
    background: none;
    color: #a855f7;
}

.tier-badge.ht3 {
    background: none;
    color: #06b6d4;
}

.tier-badge.lt1 {
    background: none;
    color: #4ade80;
}

.tier-badge.lt2 {
    background: none;
    color: #f472b6;
}

.tier-badge.lt3 {
    background: none;
    color: #fb923c;
}

/* ... */

.tier-name {
    font-size: 0.95rem;
    /* Increased from 0.8rem */
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tier-name.grandmaster {
    color: #d946ef;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

.tier-name.master {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.tier-name.ace {
    color: #fb923c;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

/* Responsive Design */
@media (max-width: 1200px) {

    .rankings-header,
    .player-row {
        grid-template-columns: 60px 1fr 80px 200px;
    }

    .tier-icons {
        gap: 0.3rem;
    }

    .tier-badge {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    .floating-header {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        border-radius: 16px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav {
        order: 2;
        /* Nav below logo */
        width: auto;
        justify-content: center;
        margin-top: 0;
    }

    .search-box {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem;
    }

    .main-content {
        padding: 0.5rem;
        overflow-x: hidden;
    }

    /* Enable Horizontal Scroll for Table */
    .rankings-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rankings-header,
    .player-row {
        /* Force minimum width to ensure scroll happens and columns don't crush */
        min-width: 600px;
        grid-template-columns: 50px 150px 100px 80px 1fr;
        /* Explicit widths */
        gap: 0.5rem;
    }

    /* Don't hide these anymore */
    /*
    .col-region,
    .col-tiers,
    .region-badge,
    .tier-icons {
        display: none;
    }
    */
    /* But maybe hide Region if explicitly requested to save space, but Scroll is better. */

    .nav-link span:not(.nav-icon) {
        display: none;
    }

    .player-row {
        padding: 0.75rem 1rem;
    }

    .nav-link span:not(.nav-icon) {
        display: none;
    }

    .category-tab {
        padding: 0.5rem 1rem;
    }

    .category-tab .tab-text {
        display: none;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Info Button */
.btn-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Modal Title List */
.title-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.title-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-icon-lg {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.title-details {
    display: flex;
    flex-direction: column;
}

.title-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.title-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Tabs (Decoration) */
.modal-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: -1rem;
    /* Hack to align with header logic if needed, or just style simply */
}

.modal-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.modal-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-purple);
}

/* Points Tab Styles */
.points-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.point-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.point-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

.point-values {
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #334155;
    margin-left: 0.6rem;
}

.point-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30, 41, 59, 1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-badge.gold {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.point-badge.silver {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
}

.point-badge.bronze {
    color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.2);
}

.point-badge.default {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.5);
}

/* Rules Styles */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.rule-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
}

.rule-title {
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.rule-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE & DECORATION UPDATES
   ========================================= */

/* Decorative Background Glows */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* RESPONSIVE DESIGN */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {

    .rankings-header,
    .player-row {
        grid-template-columns: 60px 1fr 80px 200px;
        /* Compress columns */
        gap: 0.5rem;
        padding: 1rem;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .search-box input {
        width: 100%;
        /* Full width search */
    }

    /* Adjust Rankings Table for Mobile */
    .rankings-header {
        display: none;
        /* Hide header on mobile for cleaner look */
    }

    .player-row {
        grid-template-columns: 50px 1fr;
        /* Only Rank and Player Info */
        gap: 10px;
        padding: 15px;
        position: relative;
    }

    /* Hide Region and Tiers columns on mobile (Show in Modal) */
    .region-badge,
    .tier-icons,
    .col-region,
    .col-tiers {
        display: none;
    }

    /* Adjust specific elements */
    .player-row.special-rank-1 .player-rank {
        font-size: 2rem;
    }

    .player-row.special-rank-1 .player-avatar {
        width: 48px;
        height: 48px;
    }

    .player-details {
        gap: 2px;
    }

    .player-name {
        font-size: 1rem;
    }

    .player-points {
        font-size: 0.75rem;
    }

    /* Category Tabs scrolling */
    .category-tabs {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.5rem 1rem;
    }

    .category-tab .tab-text {
        font-size: 0.75rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .floating-header {
        padding: 0.5rem 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .player-rank {
        font-size: 1.2rem;
    }
}