/* ===== RESET & ROOT ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #0f1629;
    --card-bg: #1a1f3a;
    --accent-blue: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-gold: #ffd700;
    --accent-red: #ef4444;
    --text-primary: #e0e0ff;
    --text-secondary: #a8b2d1;
    --text-muted: #8892b0;
    --border-color: #1e2749;
    --gradient-1: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-2: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    --gradient-3: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), var(--accent-orange));
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Font-display swap for faster text rendering */
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/rajdhani/v15/LDI2apCSOBg7S-QT7pasEcOsc-bGkqIw.woff2) format('woff2');
}


html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1a0e3a 50%, var(--primary-bg) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgb(124 58 237 / .1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgb(0 212 255 / .1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar-premium {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgb(15 22 41 / .98), rgb(10 14 39 / .98));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgb(0 212 255 / .3);
    box-shadow: 0 20px 60px rgb(0 212 255 / .2);
}

.navbar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 20px var(--accent-blue);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: .8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-premium {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 900;
    padding: .4rem .8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(124 58 237 / .2), rgb(0 212 255 / .2));
    border: 1px solid rgb(0 212 255 / .3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-premium:hover {
    background: linear-gradient(135deg, rgb(124 58 237 / .3), rgb(0 212 255 / .3));
    border-color: var(--accent-pink);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgb(236 72 153 / .5);
}

.logo-icon {
    font-size: 1.4rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.logo-badge {
    font-size: .6rem;
    padding: .2rem .4rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
}

.nav-menu-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links-premium {
    display: flex;
    list-style: none;
    gap: .3rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .9rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: .85rem;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(0 212 255 / .2), rgb(124 58 237 / .2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgb(0 212 255 / .6);
    transform: translateY(-2px);
    border-color: var(--accent-blue);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 8px 20px rgb(0 212 255 / .4);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.hamburger-menu span {
    width: 22px;
    height: 2.5px;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: var(--accent-pink);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titlePulse 3s ease-in-out infinite;
    line-height: 1.2;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    background: rgb(124 58 237 / .1);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: var(--accent-blue);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== LUCKY BLOCKS SECTION ===== */
.lucky-block-section {
    margin: 4rem 0;
    width: 100%;
}

.block-header {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.block-header img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 12px;
    margin: 1rem 0;
}

.block-type-title {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.block-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-badge {
    background: rgb(0 212 255 / .1);
    border: 1px solid var(--accent-blue);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.brainrot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.brainrot-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.brainrot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.brainrot-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.brainrot-card:hover::before {
    transform: scaleX(1);
}

.brainrot-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.brainrot-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem;
}

.brainrot-rarity {
    display: inline-block;
    padding: .4rem .8rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.rarity-mythic {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.rarity-brainrot-god {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--primary-bg);
}

.rarity-secret {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.brainrot-stats {
    margin-top: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: .9rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== TABLES - WITH SCROLL INDICATOR ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 12px;
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: var(--gradient-1);
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .9rem;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: rgb(0 212 255 / .05);
}

/* Custom Scrollbar - Always Visible */
.table-wrapper::-webkit-scrollbar {
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(15, 22, 41, 0.5);
    border-radius: 10px;
    margin: 0 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
    border: 2px solid rgba(15, 22, 41, 0.5);
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Firefox Scrollbar */
.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(15, 22, 41, 0.5);
}

/* ===== INFO BOXES ===== */
.tip-box {
    background: linear-gradient(135deg, rgb(236 72 153 / .1), rgb(249 115 22 / .1));
    border-left: 4px solid var(--accent-pink);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tip-title {
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.warning-box {
    background: linear-gradient(135deg, rgb(239 68 68 / .1), rgb(249 115 22 / .1));
    border-left: 4px solid var(--accent-orange);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-title {
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgb(15 22 41 / .95);
    border-top: 2px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===== DESKTOP (min-width: 769px) ===== */
@media (min-width: 769px) {
    .table-wrapper {
        overflow-x: visible;
    }
    
    .data-table {
        width: 100%;
        table-layout: fixed;
    }
    
    .data-table th,
    .data-table td {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* ===== TABLET (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .navbar-container {
        padding: .8rem 1.5rem;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
    
    .brainrot-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    .navbar-container {
        padding: .7rem 1rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu-container {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgb(15 22 41 / .99), rgb(10 14 39 / .99));
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu-container.active {
        max-height: 450px;
        overflow-y: auto;
    }
    
    .nav-links-premium {
        flex-direction: column;
        gap: 0;
        padding: .5rem 0;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: .8rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: .5rem;
    }
    
    .block-header {
        padding: 1.5rem 1rem;
    }
    
    .block-header img {
        height: 200px;
    }
    
    .block-type-title {
        font-size: 1.6rem;
    }
    
    .block-info {
        grid-template-columns: 1fr;
        gap: .8rem;
    }
    
    .brainrot-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .brainrot-card {
        padding: 1.5rem 1rem;
    }
    
    /* Tables Mobile - WITH SCROLL INDICATOR */
    .table-wrapper {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 0 1rem 5px 1rem;
    }
    
    .data-table {
        width: max-content;
        min-width: 600px;
        display: table;
    }
    
    .data-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
   
    
    .tip-box,
    .warning-box {
        padding: 1.2rem 1rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .navbar-container {
        padding: .6rem .8rem;
    }
    
    .logo-premium {
        font-size: .9rem;
        padding: .3rem .6rem;
    }
    
    .logo-badge {
        display: none;
    }
    
    .hero {
        padding: 2rem .8rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        padding: 1rem;
        font-size: .9rem;
    }
    
    .container {
        padding: 1.5rem .8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .block-header {
        padding: 1.2rem .8rem;
    }
    
    .block-header img {
        height: 180px;
    }
    
    .block-type-title {
        font-size: 1.4rem;
    }
    
    .brainrot-card {
        padding: 1.2rem .8rem;
    }
    
    .brainrot-card img {
        height: 160px;
    }
    
    .brainrot-name {
        font-size: 1.1rem;
    }
    
    .data-table {
        min-width: 550px;
    }
    
    .data-table th {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .data-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

