/*
  nauthix-enhancements.css
  Módulos: juegos, acordeones, sección-about, canales
  Se suma a templatemo-neural-style.css sin tocarlo.

  Los estilos de proyectos viven en projects.css
*/

/* =============================================
   CONTENEDOR GENÉRICO DE SECCIÓN
   ============================================= */

.sec-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-subtitle {
    text-align: center;
    color: rgba(209,209,209,0.65);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 400;
    margin-top: -1.2rem;
    margin-bottom: 2.8rem;
    letter-spacing: 0.02em;
}

/* =============================================
   THUMBNAILS DE JUEGOS
   ─────────────────────────────────────────────
   📝 Para añadir un juego nuevo solo añade UNA
      línea al bloque "Thumbnails específicos":

   .thumb-mi-juego { background-image: url(images/mi-juego.jpg); }

   El id debe coincidir con el campo `id` del
   objeto en el array GAMES de nauthix-enhancements.js
   ============================================= */

/* Base para thumbnail con imagen de fondo */
.game-thumb--image {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
}

/* Base para thumbnail con iframe embebido */
.game-thumb--embed {
    aspect-ratio: unset;
    height: 360px;
}

.game-thumb--embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Overlay con botón play — aparece al pasar el cursor */
.game-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.2s ease;
}

.game-thumb--image:hover .game-play-overlay {
    background: rgba(0,0,0,0.55);
}

.game-play-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.game-thumb--image:hover .game-play-icon {
    transform: scale(1.12);
    background: rgba(255,255,255,0.28);
}

/* ── Thumbnails específicos ─────────────────
   Una línea por juego. Añade la tuya aquí ↓  */
.thumb-cobb-can-move { background-image: url(images/cobb.png); }
.thumb-space-striker {
    background: radial-gradient(ellipse at 50% 80%, #003344 0%, #000 65%);
}
/* .thumb-mi-nuevo-juego { background-image: url(images/mi-juego.jpg); } */

/* =============================================
   SECCIÓN SOBRE MÍ
   ============================================= */

.sec-about {
    padding: 100px 0 80px;
    position: relative;
}

.sec-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224,163,255,0.3), transparent);
}

.about-bio {
    font-size: 1rem;
    color: rgba(209,209,209,0.82);
    line-height: 1.75;
    max-width: 760px;
    margin: 0 0 2.4rem;
}

/* ── Acordeones ── */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.accordion-item {
    border-radius: 18px !important;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
    box-shadow: 0 0 30px rgba(224,163,255,0.1);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e0a3ff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.25s ease;
    letter-spacing: 0.04em;
}

.accordion-trigger:hover {
    background: rgba(224,163,255,0.06);
}

.accordion-trigger[aria-expanded="true"] {
    background: rgba(224,163,255,0.07);
    border-bottom: 1px solid rgba(224,163,255,0.12);
}

.accordion-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.accordion-label {
    flex: 1;
}

.accordion-chevron {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: rgba(224,163,255,0.6);
    flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
}

/* Animación del cuerpo del acordeón */
.accordion-body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.is-closed {
    grid-template-rows: 0fr;
}

.accordion-content {
    overflow: hidden;
    min-height: 0;
    padding: 0 26px;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body:not(.is-closed) .accordion-content {
    padding: 24px 26px 28px;
}

/* Timeline dentro del acordeón */
.accordion-content .timeline-container {
    padding-top: 10px;
}

/* Award card dentro del acordeón */
.accordion-content .award-card-outer {
    max-width: 860px;
    margin: 0 auto;
}

/* =============================================
   SECCIÓN CANALES — Telegram + YouTube
   ============================================= */

.sec-channels {
    padding: 100px 0 80px;
    position: relative;
}

.sec-channels::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224,163,255,0.3), transparent);
}

/* Grid de canales */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Card base para canal (Telegram y YouTube-canal) */
.channel-card {
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(224,163,255,0.15);
}

/* Icono de plataforma */
.ch-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
}

.ch-icon.tg { background: rgba(0,135,255,0.15); border: 1px solid rgba(41,168,227,0.3); }
.ch-icon.yt { background: rgba(255,0,0,0.12);   border: 1px solid rgba(255,69,69,0.3); }

/* Texto del canal */
.ch-info { flex: 1; min-width: 0; }

.ch-name {
    font-size: 1rem;
    font-weight: 700;
    color: #e0a3ff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-desc {
    font-size: 0.83rem;
    color: rgba(209,209,209,0.65);
    line-height: 1.45;
}

.ch-members {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(147,112,219,0.8);
    font-weight: 500;
}

.ch-arrow {
    font-size: 1.1rem;
    color: rgba(224,163,255,0.5);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.channel-card:hover .ch-arrow {
    transform: translateX(5px);
    color: #e0a3ff;
}

/* Video de YouTube embebido */
.yt-video-wrap {
    border-radius: 18px;
    overflow: hidden;
}

.yt-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.yt-ratio iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.yt-caption {
    padding: 14px 18px 16px;
}

.yt-caption h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e0a3ff;
    margin: 0 0 4px;
}

.yt-caption p {
    font-size: 0.83rem;
    color: rgba(209,209,209,0.65);
    margin: 0;
}

/* Canal YouTube — destacado con borde rojo sutil */
.ch-yt-highlight {
    border-color: rgba(255,69,69,0.3) !important;
}
.ch-yt-highlight:hover {
    box-shadow: 0 12px 40px rgba(255,0,0,0.12) !important;
    border-color: rgba(255,69,69,0.55) !important;
}

/* Badge "próximamente" en canales */
.ch-coming {
    color: rgba(255,165,0,0.8) !important;
    font-style: italic;
}

/* Fila de videos de YouTube (2 columnas) */
.yt-videos-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .channels-grid { grid-template-columns: 1fr; }
    .channel-card  { padding: 16px 18px; }
    .yt-videos-row { grid-template-columns: 1fr; }

    .accordion-trigger {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .accordion-content {
        padding: 0 18px;
    }

    .accordion-body:not(.is-closed) .accordion-content {
        padding: 18px 18px 22px;
    }

    .about-bio {
        font-size: 0.93rem;
    }
}