/* At the top of your CSS file */
@import url('https://fonts.googleapis.com/css2?family=Inter:slnt,wght@-10..0,100..900&display=swap');

:root {
    --bg-primary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-card-footer: #f8f9fa;
    --border-subtle: #e2e8f0;
    --border-card: #e8edf2;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-gold: #3b82f6;        /* swap gold → your app's blue */
    --accent-gold-dim: rgba(59,130,246,0.1);
    --mana-green: #4a7c3f;         /* keep mana colors — they're standard */
    --mana-blue: #1a5276;
    --mana-black: #2d2d2d;
    --mana-red: #922b21;
    --mana-white: #c8b89a;
    --bg-surface: #f9f9ff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Cinzel', serif;
    --font-serif: 'Crimson Pro', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary), serif;
    background: var(--bg-surface); }

.hero {
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59,130,246,0.04) 0%, transparent 70%);
}
.hero-art {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d1b69 0%, #1a3a5c 40%, #3d1a1a 100%);
    border: 2px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
    box-shadow: 0 0 40px rgba(200,168,75,0.1), 0 8px 32px rgba(0,0,0,0.6);
    overflow: hidden;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ── Filter bar ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.filter-select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
}

.record-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.filter-select:focus { outline: 1px solid var(--accent-gold); }

.filter-divider {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
}

.filter-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.next-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: none;
    border: 1px solid #2a2a2a;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.next-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ── Main layout ── */
.page-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Combo grid ── */
.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2px;
}

/* ── Combo card ── */
.combo-card {
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.combo-card-link {
    color: inherit;
    text-decoration: none;
}


.combo-card-header {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-card);
}

/* Mana pip */
.mana-pip {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.mana-G { background: var(--mana-green); }
.mana-U { background: var(--mana-blue); }
.mana-R { background: var(--mana-red); }
.mana-B { background: var(--mana-black); border-color: #444; }
.mana-W { background: #2a2a22; color: var(--mana-white); }

/* Mana SVG symbols */
.mana-symbol { width: 14px; height: 14px; }

.combo-card-body {
    padding: 14px 16px;
    flex: 1;
}

.combo-card-names {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.combo-card-name {
    color: #0f172a;  /* was: var(--text-primary) = #1e293b */
    font-family: 'Inter', sans-serif; /* Switch to Inter */
    font-size: 15px;
    font-weight: 600;            /* 800 is often too "chunky" for Inter at 15px */
    line-height: 1.4;            /* Increased slightly for better breathing room */
    letter-spacing: -0.01em;     /* Inter looks best with a tiny bit of tightening */
    display: inline-block;
    cursor: default;
    border-bottom: 1px dotted transparent;
    transition: color 0.15s ease-out, border-color 0.15s ease-out;
}

.combo-card-name-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.combo-card-name-group:hover .combo-card-name {
    color: #2563eb;
    border-color: #93c5fd;
}

.combo-card-hover-drop {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 200;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.combo-card-name-group:hover .combo-card-hover-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.combo-card-hover-panel {
    display: block;
    width: 220px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #3f3f46;
    background: #27272a;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.3);
}

.combo-card-hover-img {
    display: block;
    width: 100%;
    height: auto;
}

.combo-card-hover-empty {
    width: auto;
    padding: 12px 14px;
    color: #cbd5e1;
    font-size: 12px;
    white-space: nowrap;
}

.cb-empty-state {
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 24px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
}

.combo-card-prereq {
    font-size: 12px;
    color: #475569;        /* was: var(--text-muted) = #94a3b8 */
    font-style: italic;
    font-weight: 500;      /* add weight */
    background: #f1f5f9;   /* light tinted bg */
    border-left: 2px solid #94a3b8;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
    margin-top: 4px;
    display: block;        /* make it block so the pill spans */
}

.combo-divider {
    border: none;
    border-top: 1px solid var(--border-card);
    margin: 10px 0;
}

.combo-effects {
    list-style: none;
}

.combo-effects li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 1px 0;
}

.combo-card-footer {
    color: #64748b;   /* was: var(--text-muted) = #94a3b8 */
    font-weight: 500;
    padding: 10px 16px;
    background: var(--bg-card-footer);
    border-top: 1px solid var(--border-card);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ── Floating button ── */

.fab:active { transform: scale(0.95); }

.fab-tooltip {
    position: absolute;
    right: 60px;
    background: #111;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    border: 1px solid var(--border-subtle);
    transition: opacity 0.2s;
}
.fab:hover .fab-tooltip { opacity: 1; }

/* ── Bottom toast ── */
.toast {
    background: rgba(255,255,255,0.95);
    border: 1px solid #e2e8f0;
}

.fab { background: #3b82f6; }   /* match your Build Deck button blue */
.fab:hover { background: #2563eb; }       .toast-pips { display: flex; gap: -4px; }
.toast-pip {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    margin-right: -5px;
    border: 1px solid #111;
}

.toast-text {
    font-size: 13px;
    color: var(--text-secondary);
}
.toast-text strong { color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .combo-grid { grid-template-columns: 1fr; }
    .filter-bar { gap: 8px; }
}

/* ── Section header ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
}



.record-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
}




.grad-bg {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #06b6d4 100%);
}

.grad-text {
    background: linear-gradient(135deg, #2563eb, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.grad-bg {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #06b6d4 100%);
}
.dot-bg {
    background-color: #f1f5fe;
    background-image:
            radial-gradient(ellipse at 65% 0%, #dbeafe99 0%, transparent 55%),
            radial-gradient(ellipse at 15% 100%, #e0e7ff66 0%, transparent 50%),
            radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: auto, auto, 32px 32px;
    background-attachment: fixed;
}
.card-top-bar::before {
    content: '';
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #06b6d4 100%);
    z-index: 2;
    border-radius: 14px 14px 0 0;
}
.card-divider {
    height: 1px;
    background: linear-gradient(to right, #2563eb22, #6366f144, #06b6d422);
    margin: 4px 0;
}

/* Card wrap base — JS will set transform and left via inline style */
.card-wrap {
    display: flex;
    flex-direction: row;   /* default, but make explicit */
    gap: 16px;
}

.card-img-zoom { transition: transform 0.3s; }
.card-wrap:hover .card-img-zoom { transform: scale(1.04); }
