/* ============================================================
   07-TEAMS.CSS — Poster Cards, Tech Roster (Acordeón), LoL Roster
   dimonix.gg
   ============================================================ */

/* ═══════════════════════════════════════════
   A. PÁGINA EQUIPOS — POSTER CARDS
   ═══════════════════════════════════════════ */

.teams-layout-v3 {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 2% 0 2%;
    gap: 2%;
}

.text-area {
    flex: 0 0 auto;
    width: 25%;
    text-align: left;
    z-index: 10;
    padding-left: 20px;
}
.text-area .hero-title   { font-size: clamp(3rem, 5vw, 5rem); line-height: 0.9; margin-bottom: 25px; }
.text-area .hero-subtitle { font-size: 1rem; opacity: 0.8; max-width: 100%; line-height: 1.4; }

.posters-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.poster-card {
    display: block;
    position: relative;
    height: 50vh;
    width: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.poster-card img {
    height: 100%; width: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}
.poster-label {
    position: absolute;
    bottom: 20px; left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    pointer-events: none;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.poster-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--brand-primary);
    box-shadow: 0 0 50px rgba(46,15,215,0.3);
    z-index: 5;
}
.poster-card:hover .poster-label { opacity: 1; transform: translateY(0); }

/* ── ROSTER OVERLAY (imagen base con nombres flotantes) ── */
.video-wrapper.roster-overlay-container { position: relative; height: auto !important; overflow: hidden; }
.base-roster-img { width: 100%; height: auto !important; display: block; object-fit: cover; }
.gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.roster-floating-list {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
    gap: 5px;
}
.roster-item {
    display: flex; flex-direction: column;
    opacity: 0; transform: translateX(-30px);
    animation: rosterEnter 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    animation-delay: calc(var(--delay) * 0.1s + 0.3s);
}
.roster-item .role       { font-size: 0.6rem; color: var(--brand-primary); font-weight: 800; letter-spacing: 2px; margin-bottom: 3px; opacity: 0.8; }
.roster-item.is-staff .role { color: #aaa; }
.roster-item .content    { display: flex; align-items: center; gap: 15px; }
.roster-item .handle     { font-family: var(--font-headings); font-size: clamp(0.8rem, 2vw, 1rem); color: #fff; text-transform: uppercase; font-style: italic; transition: 0.3s ease; cursor: default; line-height: 1; }
.roster-item .socials    { display: flex; align-items: center; opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }
.roster-item .socials a  { color: #fff; font-size: 0.9rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: 0.2s; }
.roster-item .socials a:hover { background: var(--brand-primary); transform: scale(1.1); }
.roster-item:hover .handle  { color: var(--brand-primary); transform: translateX(10px); text-shadow: 0 0 15px rgba(46,15,215,0.8); }
.roster-item:hover .socials { opacity: 1; transform: translateX(0); }


/* ═══════════════════════════════════════════
   B. TECH ROSTER — ACORDEÓN HORIZONTAL
   ═══════════════════════════════════════════ */

.tech-roster-section {
    width: 100%; height: 100vh;
    padding-top: var(--header-height);
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.roster-header         { text-align: center; padding: 20px 0; flex-shrink: 0; position: relative; z-index: 10; }
.roster-header h2      { font-size: 2.5rem; color: #fff; margin: 0; }
.roster-header .text-blue { color: var(--brand-primary); }
.game-logo             { height: 40px; width: auto; opacity: 0.8; display: block; margin: 0 auto 5px auto; }

.tech-accordion        { display: flex; width: 100%; flex: 1; overflow: hidden; }

.tech-panel {
    position: relative; flex: 1; height: 100%;
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    border-right: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    background: #050505;
}
.tech-bg {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center 20%;
    filter: grayscale(100%) brightness(1.00);
    transition: all 0.8s ease;
    opacity: 0.6;
}
.tech-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}
.vertical-name {
    position: absolute;
    top: 50%; left: 50%; bottom: auto;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-headings);
    font-size: 2rem; font-weight: 800;
    letter-spacing: 4px;
    pointer-events: none;
    transition: opacity 0.3s;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Panel activo */
.tech-panel.active          { flex: 5; cursor: default; }
.tech-panel.active .tech-bg {
    filter: grayscale(0%) brightness(1.1);
    opacity: 1;
    object-position: 20% 20%;
}
.tech-panel.active .vertical-name { opacity: 0; }

/* Corrección PC (1080p): mover foto a la izquierda para dejar espacio al HUD */
@media (min-width: 1025px) {
    .tech-panel.active .tech-bg {
        transform: scale(1.1) translateX(-120px) !important;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .tech-panel .tech-bg {
        transform: scale(1) translateX(0);
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        object-position: center top;
    }
}

/* ── HUD VISOR ── */
.scouter-hud {
    position: absolute;
    top: 50%; right: 5%;
    transform: translateY(-50%) translateX(100px);
    width: 450px; max-width: 90%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.3);
    border-left: 4px solid var(--brand-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    padding: 40px;
    opacity: 0; pointer-events: none;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
    border-radius: 16px;
}
.tech-panel.active .scouter-hud { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }

.hud-role  { color: var(--brand-primary); font-size: 0.9rem; letter-spacing: 3px; font-weight: 800; display: block; margin-bottom: 5px; }
.hud-name  { font-size: 4rem; line-height: 0.9; color: #fff; margin-bottom: 30px; text-transform: uppercase; font-style: italic; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; }
.hud-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.stat-box  { display: flex; flex-direction: column; }
.stat-box .label { font-size: 0.7rem; color: #888; margin-bottom: 5px; letter-spacing: 1px; }
.stat-box .value { font-size: 1.4rem; color: #fff; font-family: var(--font-headings); font-weight: 800; }

/* Efecto holograma en stats activas */
.tech-panel.active .stat-box .value {
    color: var(--brand-primary);
    text-shadow: 0 0 10px rgba(46,15,215,0.8);
    font-family: "Courier New", monospace;
    animation: hologram-flicker 2s infinite;
}

.hud-bio       { margin-bottom: 20px; min-height: 60px; }
.typewriter    { font-family: "Courier New", Courier, monospace; color: #ccc; font-size: 0.95rem; line-height: 1.5; border-left: 2px solid var(--brand-primary); padding-left: 15px; }
.hud-socials a { color: #fff; font-size: 1.1rem; transition: 0.3s; }
.hud-socials a:hover { color: var(--brand-primary); }


/* ═══════════════════════════════════════════
   C. LOL ROSTER — GRID DE CARTAS
   ═══════════════════════════════════════════ */

.lol-roster-section {
    width: 100%; height: 100vh;
    padding-top: calc(var(--header-height) + 10px);
    padding-bottom: 100px;
    background: radial-gradient(circle at center, #0a1428 0%, #010a13 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.magic-fog {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.1;
    animation: drift 60s linear infinite;
    pointer-events: none; z-index: 1;
}
.lol-roster-section .roster-header   { flex: 0 0 auto; text-align: center; margin-bottom: 15px; z-index: 10; }
.lol-roster-section .roster-header h2 { font-size: 2.5rem; color: #c8aa6e; text-shadow: 0 0 20px rgba(200,170,110,0.4); letter-spacing: 2px; margin: 0; }
.lol-roster-section .roster-header .text-blue { color: #0ac8b9; }

.lol-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    max-width: 1200px; width: 90%;
    z-index: 10;
}

.champion-card {
    position: relative; height: 100%; width: 100%;
    border-radius: 6px; overflow: hidden; cursor: pointer;
    background: #000;
    border: 2px solid #3c3c41;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.champion-bg {
    width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
    filter: brightness(0.6) sepia(0.3) hue-rotate(-10deg);
    transition: all 0.6s ease;
}
.card-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, #010a13 0%, rgba(1,10,19,0.9) 30%, transparent 100%);
    pointer-events: none;
}
.card-info {
    position: absolute; bottom: 10px; left: 0; width: 100%;
    text-align: center; padding: 0 10px;
    transform: translateY(45px);
    transition: all 0.4s ease;
}
.card-role   { color: #c8aa6e; font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; display: block; text-shadow: 0 2px 4px #000; }
.card-name   { color: #f0e6d2; font-size: 1.8rem; font-family: var(--font-headings); margin: 0 0 5px 0; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.8); line-height: 1; }
.card-stats  { display: flex; justify-content: center; gap: 15px; opacity: 0; transition: opacity 0.4s ease 0.1s; margin-bottom: 5px; border-top: 1px solid rgba(200,170,110,0.3); padding-top: 5px; }
.card-stats .stat { display: flex; flex-direction: column; align-items: center; }
.card-stats .stat-title { font-size: 0.55rem; color: #a09b8c; letter-spacing: 1px; }
.card-stats .stat-val   { font-size: 1.1rem; color: #0ac8b9; font-weight: bold; font-family: "Courier New", monospace; }
.card-socials   { opacity: 0; transition: opacity 0.4s ease 0.2s; }
.card-socials a { color: #a09b8c; font-size: 1rem; transition: 0.3s; }
.card-socials a:hover { color: #0ac8b9; transform: scale(1.2); }

.champion-card:hover {
    transform: translateY(-5px);
    border-color: #c8aa6e;
    box-shadow: 0 10px 30px rgba(200,170,110,0.2), inset 0 0 15px rgba(200,170,110,0.2);
    z-index: 5;
}
.champion-card:hover .champion-bg    { filter: brightness(1) sepia(0); transform: scale(1.03); }
.champion-card:hover .card-info      { transform: translateY(0); }
.champion-card:hover .card-stats,
.champion-card:hover .card-socials   { opacity: 1; }


/* ══════════════════════════════════════════
   RESPONSIVE TEAMS
   ══════════════════════════════════════════ */

/* 4K */
@media (min-width: 3840px) {
    .poster-card   { height: 45vh; }
    .roster-header h2 { font-size: 4rem; }
    .hud-name      { font-size: 5rem; }
    .stat-box .value { font-size: 2rem; }
}

/* 2K */
@media (min-width: 1921px) {
    .roster-floating-list { padding-left: 10%; gap: 10px; }
    .roster-item .role    { font-size: 0.8rem; margin-bottom: 4px !important; }
    .roster-item .handle  { font-size: 1.8rem; }
    .roster-item .socials a { width: 40px; height: 40px; font-size: 1.2rem; }
    .hud-name      { font-size: 5rem; }
    .lol-grid      { max-width: 1800px; }
    .card-name     { font-size: 2.2rem; }
}

/* Laptop (1025-1400px) */
@media (max-width: 1400px) and (min-width: 1025px) {
    .text-area  { width: 20%; }
    .poster-card { height: 40vh; }
    .text-area .hero-title { font-size: 3rem; }
}

/* Tablet / iPad Pro (768-1180px): roster HUD compacto */
@media (max-width: 1180px) and (min-width: 768px) {
    .tech-panel.active .tech-bg { object-position: top center !important; transform: scale(1) !important; opacity: 0.6; }
    .scouter-hud { top: auto !important; bottom: 20px !important; left: 50% !important; transform: translateX(-50%) !important; width: 90%; padding: 15px; background: rgba(15,16,18,0.85); backdrop-filter: blur(10px); }
    .hud-name    { font-size: 2rem; margin: 5px 0; }
    .hud-role    { font-size: 0.8rem; }
    .hud-grid    { gap: 10px; margin: 10px 0; }
    .stat-box .label { font-size: 0.65rem; }
    .stat-box .value { font-size: 1.1rem; }
    .typewriter  { font-size: 0.8rem; line-height: 1.3; }
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    /* Poster Cards */
    .teams-layout-v3 { flex-direction: column; height: auto; padding: 120px 20px 50px 20px; gap: 40px; text-align: center; }
    .text-area        { width: 100%; text-align: center; margin-bottom: 20px; padding-left: 0; }
    .text-area .hero-subtitle { margin: 0 auto; }
    .posters-area     { flex-direction: column; width: 100%; gap: 40px; }
    .poster-card      { height: auto; width: 85%; max-width: 350px; }
    .poster-card img  { width: 100%; height: auto; }
    .poster-label     { opacity: 1; transform: translateY(0); }

    /* Roster overlay */
    .roster-floating-list { padding-left: 15px !important; align-items: flex-start !important; justify-content: center; gap: 8px !important; }
    .roster-item .role    { font-size: 0.55rem !important; margin-bottom: 0 !important; letter-spacing: 1px; }
    .roster-item .handle  { font-size: 1.1rem !important; line-height: 1 !important; }
    .roster-item .socials a { width: 24px !important; height: 24px !important; font-size: 0.8rem !important; }
    .roster-separator     { height: 10px !important; }
    .roster-item:hover .handle { transform: translateX(5px) !important; }
    .video-wrapper.roster-overlay-container { min-height: 400px; }
    .base-roster-img { height: 100% !important; min-height: 400px; object-fit: cover; }

    /* Tech Roster acordeón → lista vertical */
    .tech-roster-section  { height: auto; min-height: 100vh; overflow-y: auto; display: block; }
    .tech-accordion       { display: block; height: auto; }
    .tech-panel           { width: 100%; height: 100px; border-bottom: 1px solid rgba(255,255,255,0.1); border-right: none; overflow: hidden; }
    .tech-panel.active    { height: 850px; transition: height 0.5s ease; }
    .tech-panel.active .tech-bg { object-position: center top; height: 60%; opacity: 1; }
    .vertical-name        { transform: translate(-50%, -50%); top: 50%; left: 50%; rotate: 0deg; font-size: 1.5rem; width: 100%; text-align: center; }
    .scouter-hud          { position: absolute; top: auto; bottom: 0; left: 0; right: 0; transform: none !important; width: 100%; max-width: 100%; height: auto; background: linear-gradient(to top, #000 85%, transparent); border: none; border-top: 4px solid var(--brand-primary); padding: 30px 20px 80px 20px; opacity: 0; z-index: 5; }
    .tech-panel.active .scouter-hud { opacity: 1; transition: opacity 0.5s ease 0.3s; }
    .hud-name             { font-size: 2.5rem; }
    .hud-grid             { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-box .value      { font-size: 1rem; }

    /* LoL Roster */
    .lol-roster-section   { height: auto; min-height: 100vh; overflow-y: auto; }
    .lol-grid             { display: flex; flex-direction: column; width: 85%; }
    .champion-card        { height: 350px; flex: none; }
    .card-info            { transform: translateY(0); }
    .card-stats, .card-socials { opacity: 1; transition: none; }
    .champion-bg          { filter: brightness(0.9) sepia(0); }
    .champion-card        { border-color: #c8aa6e; }
}

/* iPad Air / mini vertical (768-820px) específico */
@media (max-width: 820px) and (min-width: 768px) {
    .poster-card { max-width: 300px; }
    .champion-card { height: 300px; }
}

/* Móvil (≤ 768px) */
@media (max-width: 768px) {
    .roster-floating-list { padding-left: 20px; align-items: center; }
    .gradient-overlay     { background: rgba(0,0,0,0.7); }
    .roster-item          { align-items: center; }
    .roster-item .handle  { font-size: 1.3rem; }
    .roster-item:hover .handle { transform: translateX(0) scale(1.1); }
    .lol-grid             { width: 95%; }
}

/* iPhone SE (≤ 375px) */
@media (max-width: 375px) {
    .champion-card { height: 260px; }
    .card-name     { font-size: 1.4rem; }
}
