/* --------------------------------------------------------------------------
   LINEUPS (val-lineups.php) — rejilla, filtros y modal de lineup
   --------------------------------------------------------------------------
   Era el grueso de pages/lineups.css, que cargaban 30 paginas aunque solo
   esta lo usara. Aqui queda lo exclusivo de la pagina.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   13. LINEUPS — Layout principal
   -------------------------------------------------------------------------- */
.lineups-main {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: var(--sp-11) var(--sp-9) 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--sp-10);
}

.sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.sidebar-head h3 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-gray);
}

.sidebar-body {
    padding: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-7);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.filter-group label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
}

.filter-group select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: var(--fs-md);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: var(--sp-10);
}

.filter-group select:focus { border-color: rgba(129, 140, 248, .4); }

.btn-apply {
    background: var(--brand-accent);
    color: var(--text-white);
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-md);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background var(--t-normal);
    font-family: inherit;
}

.btn-apply:hover { background: var(--brand-accent-hover); }

.btn-reset {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-gray);
    width: 100%;
    padding: 9px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--t-normal);
    font-family: inherit;
}

.btn-reset:hover {
    border-color: var(--brand-accent);
    color: var(--text-white);
}

.sidebar-stats {
    padding: var(--sp-7) var(--sp-8);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
}

.stat-row span:first-child { color: var(--text-gray); }

.stat-row span:last-child  { font-weight: var(--fw-bold); color: var(--text-white); }

.grid-area {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.grid-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-5);
}

.results-count { font-size: var(--fs-md); color: var(--text-gray); }

.results-count strong { color: var(--text-white); }

.sort-tabs {
    display: flex;
    gap: var(--sp-1);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-1);
}

.sort-tab {
    padding: var(--sp-2) var(--sp-6);
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    color: var(--text-gray);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all var(--t-normal);
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   14. LINEUPS — Tarjetas
   -------------------------------------------------------------------------- */
.lineups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-8);
}

.lineup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
    cursor: pointer;
}

.lineup-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-md);
}

.card-thumb {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #0d1b2a 0%, #162032 100%);
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .65;
    transition: transform var(--t-slow);
}

.lineup-card:hover .card-thumb-img { transform: scale(1.05); }

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 17, 30, .8) 0%, transparent 60%);
}

.thumb-map-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-family: 'Teko', sans-serif;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1;
}

.thumb-badges {
    position: absolute;
    top: 10px;
    left: 12px;
    display: flex;
    gap: var(--sp-2);
}

.thumb-ability-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: rgba(0,0,0,.55);
    border-radius: var(--radius-sm);
    padding: 3px;
    filter: brightness(1.1);
}

.card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tags {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
}

.tag-agent  { background: rgba(167, 139, 250, .12); color: var(--purple); border: 1px solid rgba(167, 139, 250, .2); }

.tag-type   { background: rgba(96, 165, 250, .12);  color: var(--blue);   border: 1px solid rgba(96, 165, 250, .2); }

.tag-easy   { background: rgba(52, 211, 153, .1);   color: var(--green); }

.tag-medium { background: rgba(251, 191, 36, .1);   color: var(--amber); }

.tag-hard   { background: rgba(129, 140, 248, .1);    color: var(--brand-accent); }

.card-body h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    margin-bottom: var(--sp-2);
    line-height: 1.35;
}

.card-body p {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    line-height: 1.55;
    flex: 1;
    margin-bottom: var(--sp-7);
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: var(--sp-5);
}

.card-agent-icon { width: 28px; height: 28px; object-fit: contain; border-radius: var(--radius-sm); opacity: .9; }

.btn-view {
    color: var(--brand-accent);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    transition: color var(--t-normal);
}

.btn-view:hover { color: var(--text-white); }

/* — Lineup locked overlay — */
.lineup-card.lineup-locked {
    cursor: pointer;
}

.lineup-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lineup-lock-icon {
    font-size: var(--fs-5xl);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

.lineup-card.lineup-locked .card-body {
    opacity: .5;
    pointer-events: none;
}

/* — Lineup video modal — */
.lineup-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: var(--z-modal-top);
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
}

.lineup-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.lineup-modal-premium {
    max-width: 480px;
}

.lineup-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.1);
    border: none;
    color: var(--text-gray);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-circle);
    font-size: var(--fs-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), color var(--t-fast);
    z-index: var(--z-raised);
}

.lineup-modal-close:hover { background: rgba(255,255,255,.18); color: var(--text-white); }

.lineup-modal-body {
    padding: var(--sp-3) var(--sp-9) var(--sp-3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
    min-height: 0;
}

.lineup-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    flex-shrink: 0;
}

.lineup-modal-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-white);
    margin-bottom: var(--sp-1);
}

.lineup-modal-desc {
    color: var(--text-gray);
    font-size: var(--fs-md);
    line-height: 1.6;
}

.lineup-video-wrap {
    flex: 1;
    min-height: 200px;
    border-radius: var(--radius-sm);
    overflow: visible;
    background: #000;
    position: relative;
}

.lineup-video-wrap iframe,
.lineup-video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
}
