/* ============================================
   Champion Pages + Combos 2v2 — CMS
   ============================================ */

/* ==================== TABS ==================== */
.champ-tabs {
    display: flex; gap: 0; margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-glass);
}
.champ-tab {
    padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 600;
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; transition: all 0.2s ease;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    display: flex; align-items: center; gap: 0.5rem;
}
.champ-tab:hover { color: var(--text-primary); }
.champ-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}
.champ-tab-content { display: none; }
.champ-tab-content.active { display: block; }

/* ==================== HERO 1v1 ==================== */
.champ-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); margin-bottom: 2rem;
    min-height: 300px; display: flex; align-items: center;
}
.champ-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 20%;
    filter: blur(6px) brightness(0.4); transform: scale(1.1);
}
.champ-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.champ-hero-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 2rem;
    padding: 2.5rem;
}
.champ-portrait {
    width: 120px; height: 120px; border-radius: var(--radius-lg);
    border: 3px solid var(--accent-primary);
    object-fit: cover; object-position: center top; flex-shrink: 0;
    box-shadow: 0 0 30px rgba(139,92,246,0.3);
}
.champ-portrait-wide {
    width: 280px; height: 160px; border-radius: var(--radius-lg);
    border: 3px solid var(--accent-primary);
    object-fit: cover; object-position: center 20%; flex-shrink: 0;
    box-shadow: 0 0 30px rgba(139,92,246,0.3);
}
.champ-hero-info { display: flex; flex-direction: column; gap: 0.5rem; }
.champ-name {
    font-size: 2.2rem; font-weight: 700;
    font-family: var(--font-heading); color: #fff; margin: 0;
}
.champ-role {
    color: var(--text-muted); font-size: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* ==================== HERO COMBO 2v2 ==================== */
.combo-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg); margin-bottom: 2rem;
    min-height: 300px; display: flex; align-items: center;
}
.combo-hero-bg {
    position: absolute; inset: 0; display: flex;
}
.combo-hero-bg-left, .combo-hero-bg-right {
    flex: 1; background-size: cover; background-position: center 20%;
    filter: blur(4px) brightness(0.35); transform: scale(1.05);
}
.combo-hero-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 2rem;
    padding: 2.5rem;
}
.combo-hero-portraits {
    display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}
.combo-hero-plus {
    font-size: 2rem; font-weight: 700; color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(139,92,246,0.5);
}

/* ==================== SCORES ==================== */
.champ-scores { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; max-width: 320px; }
.champ-score { display: flex; align-items: center; gap: 0.75rem; }
.champ-score-label { font-size: 0.8rem; color: var(--text-muted); min-width: 65px; text-align: right; }
.champ-score-bar {
    flex: 1; height: 8px; background: var(--bg-tertiary);
    border-radius: 4px; overflow: hidden;
}
.champ-score-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.champ-score-value { font-size: 0.8rem; color: var(--text-secondary); min-width: 50px; }

/* ==================== MATCHUPS ==================== */
.champ-matchups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.champ-matchup-col {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 1.5rem; border: 1px solid var(--border-glass);
}
.champ-matchup-col h3 {
    font-size: 1rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.champ-matchup-list { display: flex; flex-direction: column; gap: 0.5rem; }
.champ-matchup-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem; border-radius: var(--radius-md);
    background: var(--bg-secondary); transition: background var(--transition-fast);
}
.champ-matchup-item:hover { background: var(--bg-tertiary); }
.champ-matchup-item img { border-radius: var(--radius-sm); }

/* ==================== TEXT CONTENT ==================== */
.champ-text-content {
    font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary);
}

/* ==================== INDEX CARDS ==================== */
.card-champion-link {
    text-decoration: none; color: inherit; display: block;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.card-champion-link:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(139,92,246,0.2);
}
.champ-mini-scores { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.5rem; }

/* ==================== COMBO INDEX CARDS ==================== */
.card-combo-link {
    text-decoration: none; color: inherit; display: block;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}
.card-combo-link:hover {
    border-color: var(--accent-success);
    box-shadow: 0 8px 25px rgba(0,200,100,0.2);
}
.combo-portraits {
    display: flex; align-items: center; justify-content: center;
    height: 140px; overflow: hidden; position: relative;
}
.combo-portrait-1, .combo-portrait-2 {
    width: 50%; height: 100%; object-fit: cover; object-position: center 20%;
}
.combo-plus {
    position: absolute; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-body); border: 2px solid var(--accent-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: var(--accent-primary);
}
.combo-synergy { margin-top: 0.5rem; }
.combo-synergy-bar {
    height: 6px; background: var(--bg-tertiary); border-radius: 3px;
    overflow: hidden; margin-bottom: 0.3rem;
}
.combo-synergy-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-success), var(--accent-primary));
}
.combo-synergy-label {
    font-size: 0.8rem; color: var(--text-muted);
}

/* ==================== FORM ==================== */
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .champ-hero-content, .combo-hero-content { flex-direction: column; text-align: center; padding: 1.5rem; }
    .champ-portrait { width: 80px; height: 80px; }
    .champ-portrait-wide { width: 200px; height: 115px; }
    .champ-name { font-size: 1.5rem; }
    .champ-scores { max-width: 100%; }
    .champ-matchups { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .champ-tabs { flex-direction: column; }
    .combo-hero-portraits { flex-direction: row; }
    .combo-portraits { height: 120px; }
}
