/* ============================================================
   ALLISON AESTHETIC — striped cream theme
============================================================ */

:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  background: repeating-linear-gradient(
    90deg,
    #c8d5c2 0px,
    #c8d5c2 15px,
    #dae2d5 15px,
    #dae2d5 30px,
    #c8d5c2 30px,
    #c8d5c2 45px
  );

  color: #40312f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER — solid brown nav bar
============================================================ */

.site-header {
  width: 100%;
  background-color: #40312f; /* solid brown */
  color: #c8d5c2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 60px;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: lowercase;
}

/* ============================================================
   NAV — clean tabs
============================================================ */

.site-nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  background: transparent;        /* blends into brown bar */
  color: #c8d5c2;                 /* cream text */
  border: 2px solid transparent;  /* no box until hover */
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.25s ease;
}

.nav-link:hover {
  background: #c8d5c2;
  color: #40312f;
  border-color: #40312f;
}

.nav-link.active {
  background: #c8d5c2;
  color: #40312f;
  border-color: #40312f;
}

/* ============================================================
   SOLID STRIPE
============================================================ */

.header-stripe {
  height: 10px;
  background: #40312f; /* solid brown */
}

/* ============================================================
   MAIN CONTAINER
============================================================ */

.container {
  max-width: 1400px;
  width: 100%;
  margin: 40px auto;
  background: #dae2d5;
  border: 2px solid #40312f;
  padding: 40px 60px;
}

/* ============================================================
   SECTIONS
============================================================ */

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

h2 {
  margin-bottom: 24px;
  color: #40312f;
  font-weight: 700;
  font-size: 1.6rem;
}

/* ============================================================
   PLANNER HEADER (button next to title)
============================================================ */

.planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reset-btn {
  background: #40312f;
  color: #c8d5c2;
  border: 2px solid #c8d5c2;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   FORM CARDS
============================================================ */

.form-card {
  background: #c8d5c2;
  border: 2px solid #40312f;
  padding: 24px;
  margin-bottom: 40px;
}

.form-card input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px;
  border: 2px solid #40312f;
  background: #dae2d5;
}

.form-card button {
  background: #40312f;
  color: #dae2d5;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
}

/* ============================================================
   GRID LAYOUTS
============================================================ */

.library-grid,
.planner-grid {
  display: grid;
  gap: 28px;
}

.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.planner-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
}

/* ============================================================
   PLANNER
============================================================ */

.planner-day {
  background: #c8d5c2;
  border: 2px solid #40312f;
  padding: 20px;
  min-height: 260px;
}

.meal-slot {
  margin-top: 14px;
  padding: 14px;
  background: #dae2d5;
  border: 2px solid #40312f;
  min-height: 70px;
}

.add-meal-btn {
  background: #40312f;
  color: #dae2d5;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  margin-top: 10px;
}

/* ============================================================
   MODAL
============================================================ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #c8d5c2;
  border: 2px solid #40312f;
  padding: 32px;
  width: 520px;
}

/* ============================================================
   FOOTER
============================================================ */

.thin-footer {
  width: 100%;
  background: #40312f;
  color: #c8d5c2;

  padding: 0 20px;
  line-height: 0.1;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;

  margin-top: auto;
  border-radius: 0; /* SHARP */
}

