/* ============================================================
   IMPORTACIÓN DE FUENTES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   VARIABLES CSS (Sistema de diseño)
   ============================================================ */
:root {
    /* Fondos */
    --bg: #060D17;              /* Fondo principal oscuro */
    --panel: #101827;           /* Panel base para tarjetas */
    --panel2: #182232;          /* Panel alternativo (hover) */

    /* Dorados (acento principal) */
    --gold: #C8AA6E;            /* Dorado estándar */
    --gold-light: #E0CC9A;      /* Dorado claro para textos destacados */
    --gold-dark: #8B6F3D;       /* Dorado oscuro para degradados */

    /* Textos */
    --text: #EDEDED;            /* Texto principal (blanco roto) */
    --text2: #8E9BB4;           /* Texto secundario (gris azulado) */

    /* Bordes */
    --border: #1F2D40;          /* Borde estándar */
    --border-gold: rgba(200, 170, 110, 0.25); /* Borde dorado semi-transparente */

    /* Utilidades */
    --hover: rgba(200, 170, 110, 0.06); /* Fondo hover sutil */
    --radius: 18px;             /* Radio de borde estándar */
    --radius-sm: 14px;          /* Radio de borde pequeño */
}

/* ============================================================
   RESET GLOBAL
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;     /* Incluye padding y borde en el tamaño total */
}

/* ============================================================
   ESTILOS BASE DEL BODY
   ============================================================ */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(200, 170, 110, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(10, 200, 185, 0.02) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;  /* Suavizado de fuentes en WebKit */
}

/* ============================================================
   HEADER DEL CAMPEÓN - Barra superior con info
   ============================================================ */
.champion-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 24, 0.92); /* Fondo semi-transparente */
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);        /* Efecto vidrio esmerilado */
    -webkit-backdrop-filter: blur(18px);
    padding: 35px 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Contenedor interno del header */
.header-content {
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

/* Botón de volver al inicio */
.back-button {
    text-decoration: none;
    color: var(--text2);
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.3px;
}

/* Hover del botón volver */
.back-button:hover {
    color: var(--gold-light);
    border-color: var(--border-gold);
    background: var(--hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Icono del campeón en el header */
.champion-header-icon {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--gold);
    box-shadow: 
        0 0 30px rgba(200, 170, 110, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover sutil en el icono */
.champion-header-icon:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 40px rgba(200, 170, 110, 0.45),
        0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Contenedor de info del campeón */
.champion-info {
    flex: 1;
    min-width: 250px;
}

/* Nombre del campeón con degradado dorado */
#champ-name {
    font-size: 54px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #E8D5A3, #C8AA6E, #A8884A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(200, 170, 110, 0.3));
}

/* Estilo de juego (Power Farming, Agresivo, etc.) */
.champion-style {
    display: inline-block;
    background: rgba(200, 170, 110, 0.08);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */
.guide-container {
    max-width: 1300px;
    margin: auto;
    padding: 60px 40px;
}

/* Grid superior: Runas + Build (2 columnas) */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 35px;
}

/* ============================================================
   SECCIONES - Tarjetas de contenido
   ============================================================ */
section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 28px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

/* Línea dorada superior que aparece en hover */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

/* Efecto hover: elevación y borde dorado */
section:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(200, 170, 110, 0.08);
}

section:hover::before {
    opacity: 1;
}

/* Título de cada sección */
section h2 {
    color: var(--gold-light);
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

/* ============================================================
   RUNAS Y BUILD - CENTRADO
   ============================================================ */
.runas-build-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.runas-build-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.runas-build-column {
  flex: 0 1 auto;
  min-width: 200px;
  text-align: center;
}

.runas-build-column h3 {
  color: var(--gold-light);
  margin-bottom: 10px;
  font-size: 18px;
}

.runas-build-column #champ-runes,
.runas-build-column #champ-build {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.moba-button-wrapper {
  text-align: center;
  width: 100%;
}

/* ============================================================
   VIDEO - Iframe del Full Clear
   ============================================================ */
#champ-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Hover: borde dorado */
#champ-video:hover {
    border-color: var(--border-gold);
    box-shadow: 0 0 25px rgba(200, 170, 110, 0.12);
}

/* ============================================================
   PATHING - Explicación de la ruta
   ============================================================ */
#champ-pathing {
    background: var(--panel2);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 28px 30px;
    color: var(--text);
    line-height: 1.9;
    font-size: 17px;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 30px rgba(200, 170, 110, 0.03);
}

/* ============================================================
   FOOTER - Estilo elegante y minimalista
   ============================================================ */
footer {
    margin-top: 80px;
    padding: 40px 20px 30px;
    border-top: 2px solid var(--border-gold);
    background: linear-gradient(180deg, rgba(6,13,23,0.9) 0%, rgba(6,13,23,1) 100%);
    text-align: center;
    color: var(--text2);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-content p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.footer-content p:first-child {
    font-weight: 500;
    color: var(--text);
}

.footer-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    border-bottom: 1px dotted transparent;
}

.footer-content a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
    border-bottom-color: var(--gold);
}

/* Efecto de brillo en el borde superior */
footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: -42px auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
}

/* ============================================================
   SCROLLBAR PERSONALIZADA (WebKit)
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 170, 110, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 170, 110, 0.4);
}

/* ============================================================
   SELECCIÓN DE TEXTO
   ============================================================ */
::selection {
    background: rgba(200, 170, 110, 0.25);
    color: #fff;
}

::-moz-selection {
    background: rgba(200, 170, 110, 0.25);
    color: #fff;
}

/* ============================================================
   RESPONSIVE - Tablet (máx 900px)
   ============================================================ */
@media(max-width: 900px) {

    /* Header en columna centrada */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Nombre más pequeño */
    #champ-name {
        font-size: 42px;
        letter-spacing: -1px;
    }

    /* Grid superior a 1 columna */
    .top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Menos padding */
    .guide-container {
        padding: 35px 20px;
    }

    .champion-header {
        padding: 25px 20px;
    }

    /* Icono del campeón más pequeño */
    .champion-header-icon {
        width: 120px;
        height: 120px;
    }

    /* Iconos más pequeños */
    .item-icon {
        width: 60px;
        height: 60px;
    }

    .rune-icon {
        width: 58px;
        height: 58px;
    }

    /* Secciones con menos padding */
    section {
        padding: 28px 22px;
    }

    section h2 {
        font-size: 22px;
    }

    /* Ajuste para el footer */
    footer {
        margin-top: 60px;
        padding: 30px 16px 25px;
    }
}

/* ============================================================
   RESPONSIVE - Tablet pequeña / móvil grande (máx 768px)
   ============================================================ */
@media(max-width: 768px) {
    .guide-container {
        padding: 30px 16px;
    }

    section {
        padding: 22px 18px;
        margin-bottom: 18px;
    }

    section h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    #champ-name {
        font-size: 38px;
    }

    .champion-header-icon {
        width: 100px;
        height: 100px;
    }

    .champion-header {
        padding: 20px 16px;
    }

    .champion-info {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .champion-style {
        font-size: 12px;
        padding: 6px 14px;
    }

    #champ-pathing {
        font-size: 15px;
        padding: 20px 18px;
    }

    .rune-icon, .item-icon {
        width: 50px;
        height: 50px;
    }

    .top-grid {
        gap: 18px;
    }

    footer {
        margin-top: 50px;
        padding: 30px 16px 20px;
    }
}

/* ============================================================
   RESPONSIVE - Móvil (máx 600px)
   ============================================================ */
@media(max-width: 600px) {

    /* Nombre aún más pequeño */
    #champ-name {
        font-size: 34px;
    }

    /* Icono del campeón más compacto */
    .champion-header-icon {
        width: 100px;
        height: 100px;
    }

    /* Botón volver ocupa todo el ancho */
    .back-button {
        width: 100%;
        text-align: center;
    }

    /* Iconos más compactos */
    .item-icon {
        width: 52px;
        height: 52px;
    }

    .rune-icon {
        width: 50px;
        height: 50px;
    }

    /* Menos padding general */
    section {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    #champ-pathing {
        padding: 22px 20px;
        font-size: 15px;
    }

    /* Ajustes adicionales para móvil */
    .guide-container {
        padding: 20px 12px;
    }

    section h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .champion-header-icon {
        width: 80px;
        height: 80px;
    }

    .back-button {
        font-size: 13px;
        padding: 8px 14px;
    }

    .champion-style {
        font-size: 11px;
        padding: 5px 12px;
    }

    #champ-pathing {
        font-size: 14px;
        padding: 16px 14px;
    }

    .rune-icon, .item-icon {
        width: 42px;
        height: 42px;
    }

    .top-grid {
        gap: 14px;
    }

    footer {
        margin-top: 40px;
        padding: 25px 14px 18px;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}