/* ═══════════════════════════════════════════
   PUBLIC VIEW  (Catppuccin Mocha dark theme)
   ═══════════════════════════════════════════ */

.public-body {
    background: #1e1e2e;
    min-height: 100vh;
}

.public-main {
    padding: 1.5rem 1rem 2rem;
}

/* 7-column grid that collapses down on smaller screens */
.week-grid-public {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1199px) {
    .week-grid-public { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .week-grid-public { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
    .week-grid-public { grid-template-columns: 1fr; }
}

/* ── Day card ────────────────────────────────── */
.public-body .day-card {
    background: #313244;
    border: 1px solid #45475a;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    transition: box-shadow 0.2s ease;
}

.public-body .day-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

/* ── Day header ──────────────────────────────── */
.public-body .day-header {
    background: #45475a;
    border-bottom: 1px solid #585b70;
    padding: 0.55rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.public-body .day-name {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cdd6f4;
}

.public-body .day-date {
    font-size: 0.78rem;
    color: #bac2de;
}

.public-body .today-badge {
    display: inline-block;
    margin-top: 0.2rem;
    background: #f38ba8;
    color: #1e1e2e;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

/* ── Today highlight ─────────────────────────── */
.public-body .day-today {
    border-color: #89b4fa;
    box-shadow: 0 0 0 2px rgba(137,180,250,.35), 0 4px 14px rgba(0,0,0,.4);
}

.public-body .day-today .day-header {
    background: #1e66f5;
    border-bottom-color: #1652c8;
}

.public-body .day-today .day-name { color: #fff; }
.public-body .day-today .day-date { color: rgba(255,255,255,.7); }

/* ── Weekend ─────────────────────────────────── */
.public-body .day-weekend .day-header {
    background: #3d3d56;
}

/* ── Card body ───────────────────────────────── */
.public-body .day-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.public-body .meal-section { flex: 1; }

.public-body .meal-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f849c;
    margin-bottom: 0.3rem;
}

.public-body .meal-label .bi-sun-fill        { color: #fab387; }
.public-body .meal-label .bi-moon-stars-fill { color: #cba6f7; }

.public-body .meal-text {
    font-size: 0.875rem;
    color: #cdd6f4;
    line-height: 1.45;
}

.public-body .meal-empty {
    color: #45475a;
}

.public-body .meal-divider {
    height: 1px;
    background: #45475a;
    margin: 0.6rem 0;
}


/* ═══════════════════════════════════════════
   KIOSK VIEW  (dark Catppuccin Mocha theme)
   ═══════════════════════════════════════════ */

.kiosk-body {
    background: #1e1e2e;
    color: #cdd6f4;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Kiosk header ────────────────────────────── */
.kiosk-header {
    height: 64px;
    background: #181825;
    border-bottom: 1px solid #313244;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.kiosk-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #89b4fa;
    white-space: nowrap;
}

.kiosk-week-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #cdd6f4;
    text-align: center;
}

.kiosk-clock {
    font-size: 1.4rem;
    font-weight: 300;
    color: #a6e3a1;
    font-variant-numeric: tabular-nums;
    min-width: 110px;
    text-align: right;
    white-space: nowrap;
}

/* ── Kiosk main area fills remaining viewport ── */
.kiosk-main {
    height: calc(100vh - 64px);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.week-grid-kiosk {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.65rem;
    flex: 1;
    overflow: hidden;
}

/* ── Kiosk day cards ─────────────────────────── */
.kiosk-body .day-card {
    background: #313244;
    border: 1px solid #45475a;
    border-radius: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.kiosk-body .day-header {
    background: #45475a;
    border-bottom: 1px solid #585b70;
    padding: 0.65rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.kiosk-body .day-name {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cdd6f4;
}

.kiosk-body .day-date {
    font-size: 0.85rem;
    color: #bac2de;
}

.kiosk-body .today-badge {
    display: inline-block;
    margin-top: 0.2rem;
    background: #f38ba8;
    color: #1e1e2e;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

.kiosk-body .day-today {
    border-color: #89b4fa;
    box-shadow: 0 0 0 2px rgba(137,180,250,.35), 0 4px 16px rgba(0,0,0,.4);
}

.kiosk-body .day-today .day-header {
    background: #1e66f5;
    border-bottom-color: #1652c8;
}

.kiosk-body .day-today .day-name,
.kiosk-body .day-today .day-date { color: #fff; }

.kiosk-body .day-weekend .day-header {
    background: #3d3d56;
}

/* ── Kiosk card body ─────────────────────────── */
.kiosk-body .day-body {
    padding: 0.85rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kiosk-body .meal-section { flex: 1; }

.kiosk-body .meal-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f849c;
    margin-bottom: 0.4rem;
}

.kiosk-body .meal-label .bi-sun-fill        { color: #fab387; }
.kiosk-body .meal-label .bi-moon-stars-fill { color: #cba6f7; }

.kiosk-body .meal-text {
    font-size: 1.05rem;
    color: #cdd6f4;
    line-height: 1.5;
}

.kiosk-body .meal-empty {
    color: #45475a;
}

.kiosk-body .meal-divider {
    height: 1px;
    background: #45475a;
    margin: 0.7rem 0;
}
