/* Taghavian Family Cookbook - Pop Art Inspired Styles */
:root {
  --primary: #6B2D5B;
  --primary-dark: #4A1F3F;
  --accent: #E85D04;
  --accent-yellow: #FFBA08;
  --accent-teal: #2A9D8F;
  --cream: #FDF6E3;
  --warm-bg: #FFF8F0;
  --text: #1A1A1A;
  --muted: #5C5C5C;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.12);
  --pop-shadow: 4px 4px 0 #1A1A1A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--warm-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography - bold, cookbook feel */
h1, h2, h3, .recipe-title {
  font-family: 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}

/* Header / Nav */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}
.logo span {
  color: var(--accent-yellow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--accent-yellow);
}

/* Hero / Cover */
.hero {
  position: relative;
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 3rem 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-shadow: 4px 4px 0 #000, -2px -2px 0 #E85D04;
  margin-bottom: 0.5rem;
  color: white;
}
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  opacity: 0.95;
}

/* Dedication */
.dedication {
  background: var(--cream);
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom: 6px solid var(--accent);
}
.dedication blockquote {
  font-size: 1.3rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--primary-dark);
}
.dedication p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
}

/* TOC Section */
.toc-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.toc-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 0 var(--accent-yellow);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.toc-item {
  background: white;
  border: 3px solid var(--text);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--pop-shadow);
}
.toc-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--text);
  background: var(--cream);
}
.toc-item .num {
  background: var(--primary);
  color: white;
  font-weight: 900;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.toc-item .name {
  flex: 1;
  margin-left: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.toc-item .time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Recipe Page Layout */
.recipe-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.recipe-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.recipe-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.recipe-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--text);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 0 var(--accent-yellow);
}
.meta-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--muted);
}
.meta-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.meta-icon {
  font-size: 1.2rem;
}

.recipe-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 2rem;
  display: block;
  border: 4px solid var(--text);
  border-radius: 16px;
  box-shadow: var(--pop-shadow);
  background: white;
}

/* Notes box */
.notes-box {
  background: #FFF3CD;
  border: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.notes-box h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Ingredients & Directions */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.ingredients, .directions {
  background: white;
  border: 3px solid var(--text);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--pop-shadow);
}
.ingredients h2, .directions h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--accent-yellow);
  padding-bottom: 0.4rem;
}

.ingredients ul {
  list-style: none;
}
.ingredients li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  border-bottom: 1px dashed #eee;
}
.ingredients li:last-child {
  border-bottom: none;
}
.ingredients li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.section-label {
  font-weight: 800;
  color: var(--primary);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.directions ol {
  padding-left: 1.5rem;
}
.directions li {
  margin-bottom: 0.9rem;
  padding-left: 0.5rem;
}
.directions li::marker {
  font-weight: 900;
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}
.site-footer p {
  opacity: 0.85;
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--accent-yellow);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}
.back-link:hover {
  color: var(--accent);
}

/* Print friendly */
@media print {
  .site-header, .site-footer, .back-link { display: none; }
  body { background: white; }
  .ingredients, .directions { box-shadow: none; border: 1px solid #ccc; }
}

/* Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}