/* ============================================================
 * Custom look & feel for upstream Mealie — warm, modern, "ready for cooking".
 *
 * Injected by the nginx front proxy (nginx/default.conf, sub_filter) into every
 * HTML page, so Mealie itself stays the unmodified upstream image.
 * Colors come from the THEME_LIGHT_* / THEME_DARK_* env vars in docker-compose.yml;
 * this file covers what the color API can't reach: type, shape, shadow, surface.
 *
 * Ported from the former fork (mbaumannn/mealie, frontend/app/assets/style-overrides.scss
 * + small template tweaks). If an upstream UI change makes a selector stop matching,
 * the result is just slightly less styled — never broken.
 * ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@400..700&display=swap");

/* --- Type: an editorial serif for titles/headings, a clean sans for the UI. --- */

.v-application {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px;
}

h1, h2, h3,
.text-h1, .text-h2, .text-h3, .text-h4, .text-h5,
.v-toolbar-title,
.v-card-title {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

/* --- Shape: softer, friendlier roundness throughout. --- */

.v-card,
.v-sheet:not(.v-navigation-drawer):not(.v-app-bar),
.v-text-field .v-field,
.v-select .v-field,
.v-textarea .v-field,
.v-alert,
.v-expansion-panel {
  border-radius: 18px !important;
}

.v-chip {
  border-radius: 10px !important;
}

.v-btn:not(.v-btn--icon):not(.v-btn--fab) {
  border-radius: 12px !important;
}

/* Flatten Material's hard "elevated" button shadow. */
.v-btn--variant-elevated {
  box-shadow:
    0 1px 2px rgba(30, 30, 20, 0.06),
    0 2px 6px rgba(30, 30, 20, 0.08) !important;
}

/* --- Shadow: diffused and soft instead of hard-edged elevation. --- */

.v-card.elevation-1, .v-card.elevation-2, .v-card.elevation-3, .v-card.elevation-4,
.v-sheet.elevation-1, .v-sheet.elevation-2, .v-sheet.elevation-3, .v-sheet.elevation-4 {
  box-shadow:
    0 1px 2px rgba(30, 30, 20, 0.04),
    0 8px 24px rgba(30, 30, 20, 0.06) !important;
}

/* --- Surface: warm cream canvas in light mode, white cards on top. --- */

.v-theme--light {
  --v-theme-background: 251, 248, 243;
  --v-theme-surface: 255, 255, 255;
}

.v-theme--light.v-application,
.v-theme--light .v-navigation-drawer,
.v-theme--light .v-app-bar {
  background-color: rgb(var(--v-theme-background)) !important;
}

.v-theme--light .v-app-bar {
  box-shadow: 0 1px 0 rgba(30, 30, 20, 0.08) !important;
}

/* The app bar sits on cream now, so its text and icons go dark. */
.v-theme--light .v-app-bar,
.v-theme--light .v-app-bar .v-toolbar-title,
.v-theme--light .v-app-bar .v-icon,
.v-theme--light .v-app-bar .v-btn {
  color: rgb(40, 38, 33) !important;
}

/* --- Cooking-mode readability. --- */

.v-card-text {
  line-height: 1.6;
}

.v-checkbox .v-selection-control__input,
.v-checkbox-btn .v-selection-control__input {
  transform: scale(1.15);
}

/* --- Recipe explorer: replaces the fork's template tweaks. --- */

/* Tighter spacing under the search box, and no divider above the recipe grid. */
.search-container.pb-8 {
  padding-bottom: 8px !important;
}

.search-container + hr.v-divider {
  display: none !important;
}

/* Filter / sort / settings buttons: soft "tonal" primary instead of solid accent. */
.search-container .v-btn.bg-accent {
  background-color: rgba(var(--v-theme-primary), 0.12) !important;
  color: rgb(var(--v-theme-primary)) !important;
  box-shadow: none !important;
}

.search-container .v-btn.bg-accent .v-icon {
  color: rgb(var(--v-theme-primary)) !important;
}
