/* Vintage Recipe Card Styles - White Maple Lane Brand */
:root {
  --card-background: #fefdf8;
  --paper-white: #fffef9;
  --ink-black: #2d2d2d;
  --logo-gold: #d4af37;
  --rule-line: #d4c5b1;
  --vintage-brown: #8b7355;
  --shadow-soft: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-paper: 0 2px 8px rgba(0,0,0,0.08);
  --border-vintage: 2px solid #d4c5b1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Times New Roman', 'Georgia', serif;
  line-height: 1.6;
  color: var(--ink-black);
  background: #f5f3ef;
  background-image: 
    radial-gradient(circle at 25% 25%, #f9f7f1 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, #f9f7f1 0%, transparent 50%);
}

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

/* Header - Logo Style */
.site-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0 0.5rem;
  position: relative;
}

.site-title {
  font-family: 'Georgia', serif;
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--ink-black);
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

/* Logo-inspired decorative elements */
.site-title::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--logo-gold);
  border-radius: 2px;
}

/* Removed RECIPES subtitle */

/* Hide navigation completely */
.main-nav {
  display: none;
}

/* Recipe Card - The Main Event */
.recipe-container {
  background: var(--card-background);
  border: var(--border-vintage);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 2rem auto;
  max-width: 700px;
  position: relative;
}

/* Vintage paper texture overlay */
.recipe-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      var(--rule-line) 24px,
      var(--rule-line) 25px
    );
  opacity: 0.1;
  pointer-events: none;
  border-radius: 6px;
}

.recipe-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--rule-line);
  position: relative;
  z-index: 1;
}

.recipe-title {
  font-family: 'Georgia', serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--ink-black);
  margin: 0 0 0.75rem 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Recipe Photo Container - Simple Portrait Display */
.recipe-photo {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
  border: 3px solid var(--rule-line);
  border-radius: 8px;
  box-shadow: var(--shadow-paper);
  position: relative;
  background: var(--paper-white);
  overflow: visible;
  height: auto;
}

/* Recipe Image - Always show full image */
.recipe-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.recipe-description {
  font-style: italic;
  color: var(--ink-black);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Recipe Meta - Index Card Style */
.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.meta-item {
  text-align: center;
}

.meta-label {
  display: block;
  font-weight: bold;
  color: var(--ink-blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.meta-value {
  display: block;
  font-size: 1rem;
  color: var(--ink-black);
}

/* Action Buttons - Minimal */
.recipe-actions {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--vintage-brown);
  background: var(--paper-white);
  color: var(--vintage-brown);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--vintage-brown);
  color: var(--paper-white);
}

#unit-toggle {
  border-color: var(--logo-gold);
  color: var(--logo-gold);
}

#unit-toggle:hover {
  background: var(--logo-gold);
  color: var(--ink-black);
}

/* Recipe Content - Clean Typography */
.recipe-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.recipe-intro {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--paper-white);
  border-left: 4px solid var(--logo-gold);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.recipe-section {
  margin-bottom: 2.5rem;
}

.recipe-section h2 {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  color: var(--ink-black);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--logo-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

/* Ingredients - Simple List */
.ingredients-list h3 {
  color: var(--vintage-brown);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  font-weight: bold;
}

.ingredients-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule-line);
  font-size: 0.95rem;
  line-height: 1.4;
}

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

/* Instructions - Numbered and Clean */
.instructions-list ol {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.instructions-list li {
  counter-increment: step-counter;
  margin-bottom: 1.5rem;
  padding-left: 3rem;
  position: relative;
  line-height: 1.6;
  font-size: 0.95rem;
}

.instructions-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--logo-gold);
  color: var(--ink-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.instructions-list li p {
  margin: 0;
}

.instructions-list li strong {
  color: var(--vintage-brown);
}

/* Notes and Tips - Sidebar Style */
.recipe-notes,
.recipe-tips {
  background: var(--paper-white);
  padding: 1.5rem;
  border: 1px solid var(--rule-line);
  border-radius: 4px;
  margin-top: 1rem;
}

.recipe-notes h2,
.recipe-tips h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.recipe-notes ul,
.recipe-tips ul {
  margin: 0;
  padding-left: 1.2rem;
}

.recipe-notes li,
.recipe-tips li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Tags - Simple and Clean */
.recipe-tags {
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--rule-line);
  background: var(--paper-white);
}

.recipe-tags h4 {
  margin: 0 0 1rem 0;
  color: var(--vintage-brown);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag {
  display: inline-block;
  background: none;
  color: var(--ink-black);
  border: 1px solid var(--rule-line);
  padding: 0.25rem 0.5rem;
  margin: 0.25rem;
  font-size: 0.8rem;
  border-radius: 3px;
  text-transform: lowercase;
}

/* Home Page Recipe Grid */
.recipes-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.recipe-card {
  background: var(--card-background);
  border: var(--border-vintage);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: transform 0.2s ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.recipe-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--rule-line);
}

.recipe-card-content {
  padding: 1.5rem;
}

.recipe-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: var(--ink-blue);
  font-family: 'Georgia', serif;
}

.recipe-card p {
  color: var(--ink-black);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-style: italic;
}

.recipe-card .recipe-meta {
  font-size: 0.8rem;
  color: var(--ink-black);
  gap: 1rem;
  justify-content: flex-start;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--rule-line);
  color: var(--ink-black);
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.main-site-link {
  color: var(--vintage-brown);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.main-site-link:hover {
  color: var(--logo-gold);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.social-links a {
  color: var(--vintage-brown);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.social-links a:hover {
  color: var(--logo-gold);
  transform: translateY(-3px) scale(1.1);
}

.social-links svg {
  width: 48px;
  height: 48px;
}

.copyright {
  color: var(--vintage-brown);
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.7;
}

/* Hide Modern Interactive Elements */
.ingredient-checkbox,
.instruction-checkbox,
.servings-adjuster,
.nutrition-info,
.recipe-sharing {
  display: none;
}

/* Print Styles */
@media print {
  @page {
    margin: 0.5in;
    size: letter;
  }
  
  body {
    background: white;
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
  }
  
  .site-header,
  .recipe-actions,
  .site-footer,
  .recipe-tags {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .recipe-container {
    border: none;
    box-shadow: none;
    margin: 0;
    max-width: none;
    page-break-inside: avoid;
  }
  
  .recipe-container::before {
    display: none;
  }
  
  .recipe-header {
    padding: 0 0 1rem 0;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
  
  .recipe-title {
    color: #000;
    font-size: 18pt;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
  }
  
  .recipe-photo {
    max-width: 300px;
    margin: 1rem auto;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
  
  .recipe-image {
    max-height: 250px;
    object-fit: contain;
  }
  
  .recipe-description {
    font-size: 10pt;
    margin-bottom: 1rem;
    page-break-after: avoid;
  }
  
  .recipe-meta {
    margin-bottom: 1rem;
    page-break-after: avoid;
  }
  
  .recipe-content {
    padding: 1rem 0;
  }
  
  .recipe-section {
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }
  
  .recipe-section h2 {
    color: #000;
    font-size: 14pt;
    page-break-after: avoid;
    margin-top: 0.5rem;
  }
  
  .ingredients-list {
    page-break-inside: avoid;
  }
  
  .ingredients-list h3 {
    page-break-after: avoid;
    font-size: 12pt;
  }
  
  .ingredients-list ul {
    page-break-inside: avoid;
  }
  
  .ingredients-list li {
    page-break-inside: avoid;
    font-size: 10pt;
    padding: 0.25rem 0;
  }
  
  .instructions-list ol {
    page-break-inside: auto;
  }
  
  .instructions-list li {
    page-break-inside: avoid;
    margin-bottom: 0.75rem;
    font-size: 10pt;
  }
  
  .instructions-list li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 10pt;
  }
  
  .recipe-notes,
  .recipe-tips {
    page-break-inside: avoid;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .recipe-notes h2,
  .recipe-tips h2 {
    font-size: 12pt;
    margin-top: 0;
  }
  
  .recipe-notes li,
  .recipe-tips li {
    font-size: 9pt;
  }
  
  .meta-label {
    color: #000;
    font-size: 9pt;
  }
  
  .meta-value {
    font-size: 10pt;
  }
  
  /* Force new page for very long recipes if needed */
  .instructions-section {
    page-break-before: auto;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1rem 0.5rem;
  }
  
  .recipe-container {
    margin: 1rem 0;
  }
  
  .recipe-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .recipe-title {
    font-size: 1.8rem;
  }
  
  .recipe-content {
    padding: 1.5rem 1rem;
  }
  
  .recipe-meta {
    gap: 1rem;
  }
  
  .instructions-list li {
    padding-left: 2.5rem;
  }
  
  .instructions-list li::before {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.8rem;
  }
}