
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Work+Sans:wght@400;600&display=swap');

:root {
  --ink: #2b1f1a;
  --accent: #e07a5f;
  --accent-strong: #c95b40;
  --mint: #81b29a;
  --sand: #f4f1de;
  --night: #3d405b;
}

html, body {
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(129, 178, 154, 0.2), transparent 45%),
              radial-gradient(circle at 80% 10%, rgba(224, 122, 95, 0.18), transparent 40%),
              linear-gradient(180deg, #fffaf2 0%, #f4f1de 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.2px;
  color: var(--night);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(61, 64, 91, 0.1);
}

.main-nav button {
  background: transparent;
  border-radius: 0;
  padding: 0.35rem 0.2rem;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(61, 64, 91, 0.7);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

.main-nav button.active {
  color: var(--night);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

button {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 6px 16px rgba(224, 122, 95, 0.25);
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(224, 122, 95, 0.3);
}

input, textarea {
  border-radius: 12px;
  border: 1px solid rgba(61, 64, 91, 0.2);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  width: 100%;
}

.expander {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  border: 1px solid rgba(61, 64, 91, 0.1);
  margin-bottom: 1rem;
}

.expander-header {
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.expander-content {
    padding: 0 1rem 1rem 1rem;
    display: none;
}
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.recipe-card, .ingredient-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    border: 1px solid rgba(61, 64, 91, 0.1);
    padding: 1.5rem;
}

.recipe-card h3 {
    margin-top: 0;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(61, 64, 91, 0.1);
}

.ingredient-list li:last-child {
    border-bottom: none;
}

/* Controls */
.controls-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.controls-bar input {
    flex: 2;
    min-width: 200px;
}

.controls-bar select {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(61, 64, 91, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    color: var(--ink);
}

/* Card Updates */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    margin: 0;
    padding-right: 1rem;
}

.star-rating {
    display: flex;
    cursor: pointer;
}

.star {
    font-size: 1.4rem;
    color: rgba(61, 64, 91, 0.15); 
    transition: color 0.1s;
    line-height: 1;
    padding: 0 2px;
}

.star.filled {
    color: #e76f51; /* Burnt orange to match palette */
}

.star:hover {
    transform: scale(1.1);
}

/* User Notes */
.user-notes {
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(61, 64, 91, 0.2);
    padding-top: 1rem;
}

.user-notes textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box; /* Fix padding issues */
}
