/* mcg-clips-panel — visual styles for MCG conference clip cards.

   Built on the project's "AVICI card" recipe (docs/design-tokens.md §4):
   gradient surface, gold top-accent line, gold-glow hover, terracotta
   typography. Class prefix `cc-` for namespace cleanliness.

   Editorial voice: press kit with footnotes (settled May 8 2026,
   Claude-skills/mcg-daily/SKILL.md → Editorial Voice). Bullish chrome
   stays bullish — alpha tags are emerald, gold accents on active items.
   The restraint is in body density: theme clusters, founder-voice
   blockquotes, fold for overflow.

   Audit-fix iteration (May 8 2026): replaced invented CSS vars with the
   project's real tokens; aligned with AVICI signature look. */

#mcg-clips-section { margin-top: 2rem; }

/* ── Panel container — AVICI card recipe (large surface) ────────── */

.cc-panel {
    position: relative;
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(0, 0, 0, 0.18) 100%);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.06),
        inset 0 1px rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Signature gold accent line at top — what makes it feel premium. */
.cc-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.45) 50%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Panel header ──────────────────────────────────────────────── */

.cc-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.cc-panel-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.cc-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-text-dim);
    font-variant-numeric: tabular-nums;
}

.cc-entity {
    color: var(--color-terracotta-text);
    font-weight: 500;
}

/* ── Card grid ─────────────────────────────────────────────────── */

.cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.4rem;
}

@media (max-width: 800px) {
    .cc-grid { grid-template-columns: 1fr; }
}

/* ── Individual clip card — AVICI recipe (small surface) ──────── */

.cc-card {
    position: relative;
    background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(0, 0, 0, 0.12) 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem 1.15rem;
    overflow: hidden;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.30) 50%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.cc-card:hover {
    border-color: rgba(212, 175, 55, 0.22);
    box-shadow:
        0 0 32px rgba(212, 175, 55, 0.08),
        inset 0 1px rgba(255, 255, 255, 0.05);
}

/* ── Card header ───────────────────────────────────────────────── */

.cc-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.cc-subject {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-terracotta-text);
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cc-subject:hover {
    color: var(--color-terracotta);
}

.cc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
    font-variant-numeric: tabular-nums;
}

.cc-event {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--color-terracotta-text);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    font-size: 0.68rem;
    font-weight: 500;
}

/* ── Theme cluster grouping ────────────────────────────────────── */

.cc-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cc-cluster + .cc-cluster {
    margin-top: 0.4rem;
}

/* Eyebrow label — sans, small, uppercase, wide tracking (per §2 of design-tokens) */
.cc-cluster-label {
    margin: 0 0 0.25rem 0;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

/* ── Highlight item ────────────────────────────────────────────── */

.cc-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.2rem 0;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.cc-item:hover {
    background: rgba(212, 175, 55, 0.04);
}

.cc-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.cc-topic {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    letter-spacing: -0.005em;
    flex: 1 1 auto;
    min-width: 0;
}

.cc-ts {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
    font-variant-numeric: tabular-nums;
}

.cc-summary {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* ── Founder voice quote block ─────────────────────────────────── */

.cc-quote {
    margin: 0.2rem 0 0 0;
    padding: 0.6rem 0.85rem;
    border-left: 2px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.04);
    border-radius: 0 4px 4px 0;
}

.cc-quote p {
    margin: 0 0 0.35rem 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    font-style: italic;
}

.cc-attr {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-terracotta-text);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cc-attr::before { content: "— "; opacity: 0.7; }

/* ── Folded section + toggle ───────────────────────────────────── */

.cc-folded[hidden] { display: none; }

.cc-folded {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.cc-toggle {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.5rem 0.95rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--color-text-dim);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.cc-toggle:hover,
.cc-toggle:focus {
    color: var(--color-terracotta-text);
    border-color: rgba(212, 175, 55, 0.30);
    background: rgba(212, 175, 55, 0.06);
    outline: none;
}

.cc-toggle:focus-visible {
    outline: 2px solid var(--color-terracotta-text);
    outline-offset: 2px;
}

/* ── Empty state ──────────────────────────────────────────────── */

.cc-empty {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--color-text-dim);
    font-style: italic;
    padding: 0.5rem 0;
}

/* ── Mobile reflow ────────────────────────────────────────────── */

@media (max-width: 640px) {
    .cc-panel { padding: 1.1rem 1.2rem; border-radius: 12px; }
    .cc-card { padding: 0.95rem 1rem 1rem; border-radius: 10px; }
    .cc-card-head { gap: 0.5rem; }
    .cc-meta { font-size: 0.68rem; gap: 0.4rem; }
    .cc-topic { font-size: 0.88rem; }
    .cc-summary { font-size: 0.82rem; }
    .cc-quote { padding: 0.5rem 0.75rem; }
    .cc-quote p { font-size: 0.78rem; }
}

/* Reduced motion — global media rule in base.css already kills our
   transitions to 0.01ms, so we don't need a duplicate rule here. */
