/* ============================================================
   CultureConnect Theme Studio — Scoped Brand Identity Feels
   Applied to .cc-theme-scope containers (Theme Studio matrix
   cells AND MobilePreviewFrame when ?theme= is active).
   ============================================================ */

.cc-theme-scope {
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    font-family: var(--mud-typography-default-family);
}

.cc-theme-scope .mud-typography-h1,
.cc-theme-scope .mud-typography-h2,
.cc-theme-scope .mud-typography-h3,
.cc-theme-scope .mud-typography-h4,
.cc-theme-scope .mud-typography-h5,
.cc-theme-scope .mud-typography-h6 {
    font-family: var(--mud-typography-h4-family) !important;
}

.cc-theme-scope .mud-typography-body1,
.cc-theme-scope .mud-typography-body2,
.cc-theme-scope .mud-typography-subtitle1,
.cc-theme-scope .mud-typography-subtitle2,
.cc-theme-scope .mud-typography-caption,
.cc-theme-scope .mud-button-label,
.cc-theme-scope .mud-chip-content {
    font-family: var(--mud-typography-default-family) !important;
}

/* Override MudBlazor utility surface/text color classes inside scoped containers */
.cc-theme-scope .mud-paper,
.cc-theme-scope .mud-card {
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

.cc-theme-scope .mud-button-filled.mud-button-filled-primary {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.cc-theme-scope .mud-button-filled.mud-button-filled-secondary {
    background-color: var(--mud-palette-secondary);
    color: var(--mud-palette-secondary-text);
}

.cc-theme-scope .mud-button-outlined.mud-button-outlined-primary {
    color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.cc-theme-scope .mud-chip-filled.mud-chip-color-primary {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.cc-theme-scope .mud-chip-filled.mud-chip-color-secondary {
    background-color: var(--mud-palette-secondary);
    color: var(--mud-palette-secondary-text);
}

.cc-theme-scope .mud-chip-text.mud-chip-color-primary,
.cc-theme-scope .mud-chip-outlined.mud-chip-color-primary {
    color: var(--mud-palette-primary);
}

.cc-theme-scope .mud-primary-text {
    color: var(--mud-palette-primary) !important;
}

.cc-theme-scope .mud-secondary-text {
    color: var(--mud-palette-text-secondary) !important;
}

.cc-theme-scope .mud-icon-root.mud-primary-text {
    color: var(--mud-palette-primary) !important;
}

/* ── Feel 1: Editorial Print (Atelier Paper) ── */
.cc-theme-scope.theme-feel-editorial .mud-card,
.cc-theme-scope.theme-feel-editorial .mud-paper {
    border: var(--cc-card-border);
    box-shadow: var(--cc-card-shadow) !important;
    border-radius: var(--cc-card-radius, 6px) !important;
}

.cc-theme-scope.theme-feel-editorial .match-card {
    border: 1.5px solid rgba(var(--mud-palette-text-primary-rgb), 0.16) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 26px rgba(29, 27, 24, 0.12) !important;
}

.cc-theme-scope.theme-feel-editorial .event-day-header {
    letter-spacing: 0.02em;
    border: 1px solid rgba(var(--mud-palette-text-primary-rgb), 0.12);
}

.cc-theme-scope.theme-feel-editorial .event-item-card {
    border-inline: 1px solid rgba(var(--mud-palette-text-primary-rgb), 0.10);
    border-bottom: 1px solid rgba(var(--mud-palette-text-primary-rgb), 0.10) !important;
}

.cc-theme-scope.theme-feel-editorial .mud-typography-h4,
.cc-theme-scope.theme-feel-editorial .mud-typography-h5 {
    letter-spacing: -0.02em;
}

/* ── Feel 2: Clean & Modern (Daylight Cobalt) ── */
.cc-theme-scope.theme-feel-modern .mud-card,
.cc-theme-scope.theme-feel-modern .mud-paper {
    border: var(--cc-card-border);
    box-shadow: var(--cc-card-shadow) !important;
    border-radius: var(--cc-card-radius, 14px) !important;
}

.cc-theme-scope.theme-feel-modern .match-card {
    border-radius: 24px !important;
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.14) !important;
    box-shadow: 0 18px 36px rgba(20, 32, 74, 0.14), 0 4px 10px rgba(20, 32, 74, 0.06) !important;
}

.cc-theme-scope.theme-feel-modern .event-item-card {
    border-bottom: 1px solid rgba(var(--mud-palette-text-primary-rgb), 0.07) !important;
}

.cc-theme-scope.theme-feel-modern .mud-button-root {
    border-radius: 999px;
}

/* ── Feel 3: Concert Hall (Velvet Indigo) ── */
.cc-theme-scope.theme-feel-concert .mud-card,
.cc-theme-scope.theme-feel-concert .mud-paper {
    border: var(--cc-card-border);
    box-shadow: var(--cc-card-shadow) !important;
    border-radius: var(--cc-card-radius, 12px) !important;
}

.cc-theme-scope.theme-feel-concert .match-card {
    border-radius: 20px !important;
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.30) !important;
    box-shadow: 0 18px 42px rgba(4, 7, 20, 0.55), 0 0 0 1px rgba(var(--mud-palette-secondary-rgb), 0.12) !important;
}

.cc-theme-scope.theme-feel-concert .event-item-card {
    border-bottom: 1px solid rgba(var(--mud-palette-text-primary-rgb), 0.09) !important;
}
