@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Lato:wght@300;400;700&family=Satisfy&display=swap');

:root {
  --teal:        #4A9FA5;
  --teal-dark:   #2D7A80;
  --teal-light:  #A8D8DB;
  --teal-pale:   #E0F2F3;
  --cream:       #FAF7F0;
  --tile-beige:  #E8E0D0;
  --tile-line:   #D4C9B5;
  --text-dark:   #2C2C2C;
  --text-mid:    #555550;
  --text-light:  #888880;
  --red-accent:  #C0392B;
  --border:      rgba(0,0,0,0.12);
  --shadow:      0 4px 20px rgba(0,0,0,0.12);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-sm:   8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--tile-beige);
  background-image: linear-gradient(var(--tile-line) 1px, transparent 1px), linear-gradient(90deg, var(--tile-line) 1px, transparent 1px);
  background-size: 60px 40px;
  color: var(--text-dark);
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* ── Navigation ── */
nav { background: white; border-bottom: 2px solid var(--border); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; border: 2px solid var(--teal-light); }
.nav-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--text-dark); letter-spacing: 0.05em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); padding: 0.4rem 0.75rem; border-radius: 20px; border: 1.5px solid transparent; transition: all 0.2s; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a.active { border-color: var(--red-accent); color: var(--red-accent); }
.nav-icons { display: flex; align-items: center; gap: 1rem; }
.nav-icon-btn { background: none; border: none; cursor: pointer; color: var(--text-mid); padding: 0.25rem; transition: color 0.2s; }
.nav-icon-btn:hover { color: var(--teal-dark); }

/* ── Page Banner ── */
.page-banner { background: var(--teal-pale); padding: 1.75rem 2rem; border-bottom: 1px solid var(--teal-light); display: flex; align-items: center; justify-content: space-between; }

/*Page Banner Text --*/
.page-banner-text {position:relative; right: 15%; text-align: left; justify-content: left; align-items: left;}
/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.25rem; border-radius: 100px; font-family: 'Lato', sans-serif; font-size: 0.875rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal-dark); }
.btn-outline:hover { background: var(--teal-pale); }
.btn-danger { background: var(--red-accent); color: white; }
.btn-danger:hover { opacity: 0.85; }
.btn-icon { background: none; border: 2px solid var(--text-light); color: var(--text-mid); border-radius: 50%; width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.btn-icon:hover { border-color: var(--teal); color: var(--teal); }
.btn-add-new { display: flex; align-items: center; gap: 0.5rem; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-dark); font-family: 'Lato', sans-serif; transition: color 0.2s; }
.btn-add-new .circle-plus { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--text-dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all 0.2s; }
.btn-add-new:hover { color: var(--teal-dark); }
.btn-add-new:hover .circle-plus { border-color: var(--teal-dark); }

/* ── Search Bar ── */
.search-bar { display: flex; align-items: center; gap: 0.5rem; background: white; border: 1.5px solid var(--border); border-radius: 100px; padding: 0.5rem 1rem; width: 220px; }
.search-bar input { border: none; outline: none; font-family: 'Lato', sans-serif; font-size: 0.9rem; color: var(--text-dark); background: transparent; width: 100%; }

/* ── Cards ── */
.card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.recipe-card { display: flex; align-items: center; border-radius: var(--radius-sm); }
.recipe-card-img { width: 80px; height: 70px; flex-shrink: 0; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.recipe-card-img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-card-info { padding: 0.6rem 0.75rem; flex: 1; }
.recipe-card-title { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.15rem; }
.recipe-card-category { font-size: 0.8rem; color: var(--text-light); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-mid); margin-bottom: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
.form-control { width: 100%; padding: 0.65rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Lato', sans-serif; font-size: 0.95rem; color: var(--text-dark); background: white; transition: border-color 0.2s; outline: none; }
.form-control:focus { border-color: var(--teal); }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }
.error-msg { color: var(--red-accent); font-size: 0.85rem; margin-top: 0.5rem; display: none; }
.error-msg.visible { display: block; }

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-muted { color: var(--text-light); font-size: 0.85rem; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  #navWelcome {
    display: none !important;
  }
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-title { font-size: 1.2rem; }
  .nav-logo { width: 50px; height: 50px; }
  .container, .container-wide { padding: 1rem; }
  h1 { font-size: 1.5rem; }
  .nav-links { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Shared "add new" button — used on Recipes, Meal Plans, Shopping Lists
   ══════════════════════════════════════════════════════════════════ */
.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #35595F;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 100px;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  cursor: pointer;
}

.btn-new:hover { background: rgba(255,255,255,0.9); }

.btn-new-circle {
  width: 36px;
  height: 36px;
  background: #98D0D6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-new:hover .btn-new-circle { background: #35595F; }

.btn-new-circle svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2.5;
}
