/* ===== WILD RIFT HUB — STYLES ===== */

/* ---------- VARIABLES ---------- */
:root {
    --wr-bg: #0a0e1a;
    --wr-surface: #111827;
    --wr-surface-2: #1a2236;
    --wr-border: #2a3550;
    --wr-gold: #c8aa6e;
    --wr-gold-light: #f0e6d2;
    --wr-gold-dark: #785a28;
    --wr-blue: #00bcd4;
    --wr-blue-glow: #0ac8b9;
    --wr-purple: #9333ea;
    --wr-pink: #ec4899;
    --wr-text: #94a3b8;
    --wr-text-light: #e2e8f0;
    --wr-red: #ef4444;
    --wr-green: #22c55e;
    --wr-card: #0f1729;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(10, 200, 185, 0.1);
    --transition: all 0.3s ease;
}

/* ---------- BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--wr-bg);
    color: var(--wr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--wr-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

a { color: var(--wr-blue-glow); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--wr-gold); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--wr-bg); }
::-webkit-scrollbar-thumb { background: var(--wr-gold-dark); border-radius: 3px; }

/* ---------- NAVBAR ---------- */
.navbar {
    padding: 0.75rem 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 200, 185, 0.08);
    z-index: 1050;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wr-blue-glow) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i { color: var(--wr-blue-glow); }

.navbar .nav-link {
    color: var(--wr-text) !important;
    font-weight: 500;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.85rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--wr-blue-glow) !important; }

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--wr-blue-glow);
    transition: var(--transition);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 60%; }

.navbar-toggler { border-color: rgba(10, 200, 185, 0.3); }
.navbar-toggler-icon { filter: brightness(10); }

.navbar-collapse {
    background: rgba(15, 23, 41, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(10, 200, 185, 0.1);
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        margin-top: 0;
        border: none;
    }
}

/* ---------- HERO ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--wr-bg);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(10, 200, 185, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 70%, rgba(147, 51, 234, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--wr-bg) 0%, var(--wr-surface) 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="none" stroke="rgba(10,200,185,0.03)" stroke-width="0.3" cx="50" cy="50" r="40"/></svg>');
    background-size: 150px;
    opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(10, 200, 185, 0.12), rgba(147, 51, 234, 0.08));
    border: 1px solid rgba(10, 200, 185, 0.25);
    color: var(--wr-blue-glow);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--wr-blue-glow), var(--wr-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span {
    display: block;
    font-size: 0.45em;
    letter-spacing: 0.2em;
    color: var(--wr-gold);
    -webkit-text-fill-color: var(--wr-gold);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--wr-text);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.hero-stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--wr-blue-glow);
    display: block;
}

.hero-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--wr-text);
    opacity: 0.6;
}

.hero-splash {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    border: 1px solid rgba(10, 200, 185, 0.15);
}

.hero-splash img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.hero-splash:hover img { transform: scale(1.05); }

.hero-splash .splash-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95), transparent);
}

.splash-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
}

.splash-title {
    font-size: 0.8rem;
    color: var(--wr-blue-glow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ---------- SECTION COMMON ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--wr-blue-glow);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--wr-text-light);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--wr-text);
    font-size: 0.95rem;
    opacity: 0.7;
    max-width: 580px;
    margin: 0 auto;
}

.py-section { padding: 5rem 0; }

/* ---------- DIVIDER ---------- */
.hex-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0 2rem;
}

.hex-divider::before,
.hex-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 200, 185, 0.2), transparent);
}

.hex-divider i { color: rgba(10, 200, 185, 0.3); font-size: 0.7rem; }

/* ---------- LANE FILTER ---------- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--wr-surface);
    border: 1px solid var(--wr-border);
    color: var(--wr-text);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(10, 200, 185, 0.12);
    border-color: var(--wr-blue-glow);
    color: var(--wr-blue-glow);
}

/* ---------- SEARCH ---------- */
.search-bar {
    position: relative;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.search-bar input {
    width: 100%;
    background: var(--wr-surface);
    border: 1px solid var(--wr-border);
    color: var(--wr-text-light);
    padding: 12px 20px 12px 48px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.search-bar input::placeholder { color: rgba(148, 163, 184, 0.4); }

.search-bar input:focus {
    border-color: var(--wr-blue-glow);
    box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.1);
}

.search-bar i {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--wr-text);
}

/* ---------- CHAMPION GRID ---------- */
.champion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.champion-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(42, 53, 80, 0.5);
    background: var(--wr-card);
}

.champion-card:hover {
    transform: translateY(-4px);
    border-color: var(--wr-blue-glow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(10, 200, 185, 0.08);
}

.champion-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.champion-card:hover img { transform: scale(1.1); }

.champion-card .card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95), rgba(10, 14, 26, 0.5), transparent);
    text-align: center;
}

.champion-card .card-info .name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.champion-card .card-info .role-tag {
    display: inline-block;
    font-size: 0.55rem;
    color: var(--wr-blue-glow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.champion-card .lane-dots {
    position: absolute;
    top: 6px; right: 6px;
    display: flex;
    gap: 3px;
}

.lane-dot {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: var(--wr-gold);
    font-weight: 700;
    border: 1px solid rgba(200, 170, 110, 0.2);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--wr-text);
    font-size: 1rem;
}

/* ---------- STATS SECTION ---------- */
.stats-section {
    background: var(--wr-surface);
    border-top: 1px solid rgba(10, 200, 185, 0.06);
    border-bottom: 1px solid rgba(10, 200, 185, 0.06);
}

.stat-card {
    background: var(--wr-card);
    border: 1px solid var(--wr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    border-color: var(--wr-blue-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 200, 185, 0.12), rgba(147, 51, 234, 0.08));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--wr-blue-glow);
}

.stat-card h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: var(--wr-text-light);
}

.stat-card .stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--wr-blue-glow);
}

.stat-card p {
    font-size: 0.78rem;
    color: var(--wr-text);
    opacity: 0.6;
    margin: 0;
}

/* ---------- ROLE BREAKDOWN ---------- */
.role-section { background: var(--wr-bg); }

.role-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

.role-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.role-bar-label {
    width: 90px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wr-text-light);
    text-align: right;
}

.role-bar-track {
    flex: 1;
    height: 28px;
    background: var(--wr-surface);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--wr-border);
}

.role-bar-fill {
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    transition: width 1s ease;
}

.role-bar-fill.fighter { background: linear-gradient(90deg, #f97316, #ea580c); }
.role-bar-fill.mage { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.role-bar-fill.assassin { background: linear-gradient(90deg, #ef4444, #dc2626); }
.role-bar-fill.marksman { background: linear-gradient(90deg, #22c55e, #16a34a); }
.role-bar-fill.support { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.role-bar-fill.tank { background: linear-gradient(90deg, #6366f1, #4f46e5); }

/* ---------- PATCH ---------- */
.patch-section { background: var(--wr-bg); }

.patch-card {
    background: var(--wr-card);
    border: 1px solid var(--wr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    max-width: 550px;
    margin: 0 auto;
}

.patch-card:hover {
    border-color: var(--wr-blue-glow);
    box-shadow: var(--shadow-glow);
}

.patch-version {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--wr-blue-glow);
    margin-bottom: 0.5rem;
}

.patch-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--wr-text);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.patch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(10, 200, 185, 0.12), rgba(10, 200, 185, 0.05));
    border: 1px solid rgba(10, 200, 185, 0.3);
    color: var(--wr-blue-glow);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: var(--transition);
}

.patch-link:hover {
    background: rgba(10, 200, 185, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- FOOTER ---------- */
.wr-footer {
    background: #000;
    border-top: 1px solid rgba(10, 200, 185, 0.08);
    padding: 2rem 0;
    text-align: center;
}

.wr-footer p {
    color: var(--wr-text);
    font-size: 0.72rem;
    opacity: 0.4;
    margin: 0;
    line-height: 1.8;
}

.wr-footer a { color: var(--wr-blue-glow); opacity: 0.6; }

/* ---------- SKELETON ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--wr-surface) 25%, var(--wr-surface-2) 50%, var(--wr-surface) 75%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

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

.skeleton-card { width: 100%; aspect-ratio: 1; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { text-align: center; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-stats { justify-content: center; }
    .hero-splash img { height: 280px; }
    .champion-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 1.5rem; }
    .hero-splash { overflow: hidden; border: 1px solid rgba(10, 200, 185, 0.2); }
    .hero-splash img { height: 260px; }
    .hero-splash .splash-title { font-size: 0.8rem; }
    .champion-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .py-section { padding: 3rem 0; }
    .patch-version { font-size: 2rem; }
    .role-bar-label { width: 70px; font-size: 0.7rem; }
}

/* ---------- CHAMPION MODAL ---------- */
.modal-content {
    background: var(--wr-surface);
    border: 1px solid var(--wr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.btn-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(10, 200, 185, 0.3);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    font-size: 1rem;
}

.btn-modal-close:hover {
    background: var(--wr-red);
    border-color: #ff4d4d;
    transform: rotate(90deg);
}

.modal-splash {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center top;
}

.modal-splash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--wr-surface) 0%, rgba(10, 14, 26, 0.4) 50%, rgba(0,0,0,0.3) 100%);
}

.modal-title-content {
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;
    z-index: 2;
}

#modalName {
    font-size: 3rem;
    color: #fff;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

#modalTitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--wr-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.modal-roles {
    display: flex;
    gap: 8px;
}

.modal-role-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--wr-text-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.modal-info-content {
    padding: 30px;
}

.modal-section-title {
    color: var(--wr-text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section-title i {
    color: var(--wr-blue-glow);
}

.modal-section-desc {
    color: var(--wr-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.text-gold {
    color: var(--wr-gold) !important;
    font-weight: 700;
}

.build-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.item-slot {
    width: 64px;
    height: 64px;
    background: var(--wr-card);
    border: 1px solid var(--wr-border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.item-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-slot:hover {
    border-color: var(--wr-blue-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 200, 185, 0.2);
}

.item-name-tag {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    font-size: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
    padding: 2px 0;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

.item-slot:hover .item-name-tag {
    opacity: 1;
}

.item-slot.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px dashed var(--wr-border);
}

.item-initial {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wr-text);
    opacity: 0.3;
}
