/* ── Mare's Kitchen – SF Giants Theme ─────────────────── */

:root {
    --giants-orange: #FD5A1E;
    --giants-black: #27251F;
    --dark-bg: #1A1814;
    --surface: #2C2A25;
    --surface-light: #3A3830;
    --border: #4A4740;
    --border-light: #5A5750;
    --text: #F0EDE4;
    --text-light: #B8B4A8;
    --text-muted: #807C70;
    --gold: #C4A94A;
    --shadow: rgba(0, 0, 0, 0.4);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    font-family: var(--font-body);
    color: var(--text);
    margin: 0;
}

/* ── App Bar ─────────────────────────── */
.app-bar {
    background: var(--giants-black) !important;
    border-bottom: 3px solid var(--giants-orange) !important;
}

/* Ensure the app bar participates in document flow and does not overlay content. */
.app-bar, .mud-appbar {
    position: relative !important;
    z-index: 1 !important;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon { font-size: 1.6rem; }

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--giants-orange);
}

/* ── Sidebar ─────────────────────────── */
.sidebar { background: var(--giants-black) !important; border-right: 1px solid var(--border) !important; }
.sidebar-header { padding: 20px 16px 8px; }
.sidebar-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.sidebar .mud-nav-link { color: var(--text-light) !important; }
.sidebar .mud-nav-link:hover, .sidebar .mud-nav-link.active { color: var(--giants-orange) !important; background: var(--surface) !important; }

/* ── Main Content ────────────────────── */
.main-content { background: var(--dark-bg); min-height: 100vh; padding: 24px !important; }

/* ── Page Titles ─────────────────────── */
.page-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--giants-orange); margin-bottom: 4px; line-height: 1.2; }
.page-subtitle { font-size: 0.95rem; color: var(--text-light); margin-bottom: 24px; }

/* ── Recipe Cards ────────────────────── */
.recipe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); border-color: var(--giants-orange); }
.recipe-card-image-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.recipe-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.recipe-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.recipe-card-desc { font-size: 0.875rem; color: var(--text-light); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recipe-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.recipe-category-chip { background: var(--surface-light) !important; color: var(--giants-orange) !important; font-size: 0.75rem !important; font-weight: 700 !important; height: 22px !important; border: 1px solid var(--border) !important; }

/* ── Stars ───────────────────────────── */
.star-display { color: var(--giants-orange); font-size: 1rem; }
.star-input { color: var(--giants-orange); font-size: 1.6rem; cursor: pointer; transition: transform 0.1s; user-select: none; }
.star-input:hover { transform: scale(1.2); }
.star-empty { color: var(--border-light); }

/* ── Recipe Detail ───────────────────── */
.recipe-detail-hero-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--surface-light), var(--surface)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 5rem; margin-bottom: 24px; border: 2px solid var(--border); }
.recipe-meta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.recipe-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-light); }
.recipe-meta-item strong { color: var(--text); }
.section-heading { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--giants-orange); margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--surface-light); }
.ingredients-list { list-style: none; padding: 0; margin: 0; }
.ingredients-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; color: var(--text); }
.ingredients-list li::before { content: "• "; color: var(--giants-orange); font-weight: bold; }
.instructions-text { font-size: 0.95rem; line-height: 1.8; white-space: pre-wrap; color: var(--text); }

/* ── Reviews ─────────────────────────── */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.reviewer-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.review-date { font-size: 0.8rem; color: var(--text-muted); }

/* ── Forms ───────────────────────────── */
.form-section { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.form-section-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--giants-orange); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ── Tags ────────────────────────────── */
.tag-chip { background: var(--surface-light) !important; color: var(--gold) !important; font-size: 0.75rem !important; height: 22px !important; border: 1px solid var(--border) !important; }

/* ── Search ──────────────────────────── */
.search-bar { background: var(--surface) !important; border-radius: 10px; border: 1px solid var(--border) !important; }

/* ── Empty State ─────────────────────── */
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-light); }
.empty-state-icon { font-size: 5rem; margin-bottom: 16px; }
.empty-state-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }

/* ── Divider ─────────────────────────── */
.divider-orange { border: none; border-top: 2px solid var(--giants-orange); opacity: 0.3; margin: 24px 0; }

/* ── MudBlazor Dark Overrides ────────── */
.mud-paper { background-color: var(--surface) !important; color: var(--text) !important; }
.mud-dialog { background-color: var(--surface) !important; }
.mud-dialog-title { color: var(--giants-orange) !important; }
.mud-dialog-content { color: var(--text) !important; }
.mud-drawer { background-color: var(--giants-black) !important; }
.mud-main-content { background-color: var(--dark-bg) !important; }
.mud-appbar { background-color: var(--giants-black) !important; }
.mud-input-root, .mud-input { color: var(--text) !important; }
.mud-input-outlined .mud-notch { border-color: var(--border) !important; }
.mud-input-outlined:hover .mud-notch { border-color: var(--giants-orange) !important; }
.mud-input-label { color: var(--text-muted) !important; }
.mud-select-input { color: var(--text) !important; }
.mud-popover-paper { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.mud-list-item-text { color: var(--text) !important; }
.mud-list-item:hover { background: var(--surface-light) !important; }
.mud-skeleton { background-color: var(--surface-light) !important; }
