/* AGENTS (val-agents.php) — extraido del <style> inline de la pagina. */

/* Panel de detalle (.adp-*). Estuvo un rato en un val-agent-detail.css
   aparte por aparecer tambien en val-my-agents.css, pero val-agentes.php
   nunca uso esas clases: era codigo duplicado y muerto alli, no compartido. */

.adp-bg-art {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: .18;
}

.adp-role-badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: var(--z-raised);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(0,0,0,.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: var(--ls-sm);
}

.adp-role-icon { width: 16px; height: 16px; object-fit: contain; opacity: .85; }

.adp-desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); margin-bottom: var(--sp-6); }

.adp-abilities { display: flex; flex-direction: column; gap: var(--sp-3); }

.adp-ab-icon {
    width: 34px; height: 34px;
    object-fit: contain;
    background: var(--bg-input);
    border-radius: var(--radius-sm); padding: var(--sp-1);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.adp-ab-info { flex: 1; min-width: 0; }

.adp-ab-name {
    font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-gray);
    display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 2px;
}

.adp-ab-slot {
    font-size: var(--fs-3xs); background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-xs);
    padding: 1px var(--sp-1); color: var(--text-muted); font-weight: var(--fw-semibold);
    text-transform: uppercase;
}

.adp-ab-desc { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-normal); }

/* Header */
/* .val-page-header margin vive ahora en val-detail-panel.css (compartido). */

/* Filtros, buscador, layout, panel y la parte interactiva de las cards
   viven en val-detail-panel.css (compartido con maps y weapons). */
/* Los filtros de rol usan el componente unificado .seg .seg--accent
   (components/buttons.css); val-tabs/val-filter-btn quedan solo como hook de JS.
   Aqui solo lo propio de estos botones: el icono de rol. */
.val-filter-btn img { width: 14px; height: 14px; object-fit: contain; opacity: .7; }
.val-filter-btn.active img { opacity: 1; filter: brightness(10); }

/* Agent grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp-5);
}

/* Card: base .card (components/cards.css) + val-detail-panel.css */
.agent-card-portrait {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    background: var(--bg-input);
    display: block;
}

.agent-card-role { display: flex; align-items: center; gap: var(--sp-1); }
.agent-card-role img { width: 11px; height: 11px; object-fit: contain; opacity: .7; }

.adp-bg {
    position: relative;
    height: 280px;
    background: var(--bg-input);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.adp-portrait {
    position: relative;
    z-index: var(--z-base);
    height: 260px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 24px rgba(0,0,0,.6));
}

.adp-info { padding: var(--sp-7) var(--sp-7); }

.adp-name {
    font-size: var(--fs-3xl); font-weight: var(--fw-extrabold);
    color: var(--text-white);
    letter-spacing: var(--ls-xs);
    margin-bottom: var(--sp-2);
}

.adp-abilities-title {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: var(--ls-md);
    color: var(--text-muted); margin-bottom: var(--sp-4);
}

.adp-ability { display: flex; gap: var(--sp-4); align-items: flex-start; }

.adp-ab-placeholder {
    width: 34px; height: 34px;
    background: var(--bg-input); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0; display: flex;
    align-items: center; justify-content: center;
    font-size: var(--fs-2xs); color: var(--text-muted);
}

/* Fondo con el color de cada agente (--ag/--ag2/--ag3 los pone agentBg() en val-agents.php: los colores de Riot, como el panel de detalle) */
.agent-grid .agent-card[style*="--ag"] .agent-card-portrait { background: linear-gradient(135deg, var(--ag) 0%, var(--ag2, var(--ag)) 50%, var(--ag3, var(--ag)) 100%); }
