
/*
Theme Name: Fat Fairy Farms - Gothic Fairy Cooking
Theme URI: https://flexicodes.com/
Author: Flexicodes
Author URI: https://flexicodes.com/
Description: A dark, mystical WordPress theme inspired by gothic fairy aesthetics for cooking and recipe sites. Features elegant typography, atmospheric imagery, and sophisticated dark color palette perfect for magical culinary adventures.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: mythic-gothic-recipes
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@import url('assets/css/theme.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* Gothic Fairy Theme - Dark, mystical, enchanted design system */

:root {
  /* Gothic Fairy Color Palette */
  --background: 220, 10%, 8%;        /* Deep charcoal */
  --foreground: 45, 15%, 88%;        /* Warm cream */
  
  --card: 220, 15%, 12%;              /* Darker card background */
  --card-foreground: 45, 15%, 88%;    /* Warm cream text */
  
  --primary: 45, 25%, 75%;            /* Warm golden accent */
  --primary-foreground: 220, 10%, 8%; /* Dark text on light */
  
  --secondary: 220, 20%, 15%;         /* Slightly lighter dark */
  --secondary-foreground: 45, 15%, 88%;
  
  --muted: 220, 15%, 18%;             /* Muted dark sections */
  --muted-foreground: 45, 10%, 65%;   /* Muted cream text */
  
  --accent: 280, 15%, 25%;            /* Deep mystical purple */
  --accent-foreground: 45, 15%, 88%;
  
  --destructive: 0, 62%, 45%;
  --destructive-foreground: 45, 15%, 88%;
  
  --border: 220, 20%, 20%;            /* Subtle dark borders */
  --input: 220, 15%, 15%;             /* Dark input backgrounds */
  --ring: 45, 25%, 75%;               /* Golden focus rings */
  
  --radius: 0.75rem;
  
  /* Gothic Fairy Specific Colors */
  --mystical: 280, 20%, 20%;          /* Deep mystical purple */
  --parchment: 45, 25%, 85%;          /* Aged paper color */
  --shadow: 220, 30%, 5%;             /* Deep shadows */
  --glow: 45, 40%, 80%;               /* Warm glow effect */
  
  /* Typography Scale */
  --font-script: 'Dancing Script', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  
  /* Gradients */
  --gradient-mystical: linear-gradient(135deg, hsl(var(--background)), hsl(var(--mystical)));
  --gradient-parchment: linear-gradient(180deg, hsla(var(--parchment), 0.1), hsla(var(--parchment), 0.05));
  --gradient-glow: radial-gradient(circle, hsla(var(--glow), 0.2), transparent);
  
  /* Shadows */
  --shadow-mystical: 0 10px 40px -10px hsla(var(--shadow), 0.8);
  --shadow-glow: 0 0 30px hsla(var(--glow), 0.3);
  --shadow-vintage: inset 0 1px 0 hsla(var(--parchment), 0.2), 0 1px 3px hsla(var(--shadow), 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-serif);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

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

/* Typography */
.font-script {
  font-family: var(--font-script);
}

.font-serif {
  font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

/* Recipe Page Actions */
.recipe-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.recipe-title {
    flex: 1;
    margin: 0;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #8B5A3C;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #2D1810;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.action-btn:hover {
    background: #8B5A3C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 90, 60, 0.3);
}

.dark-mode-toggle {
    min-width: 50px;
    justify-content: center;
}

.dark-mode-toggle .icon-light {
    display: none;
}

.dark-mode-toggle .icon-dark {
    display: inline;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e8e8e8;
}

body.dark-mode .recipe-single {
    background: rgba(20, 20, 20, 0.95);
}

body.dark-mode .parchment-box {
    background: rgba(40, 40, 40, 0.95);
    border-color: #555;
    color: #e8e8e8;
}

body.dark-mode .action-btn {
    background: rgba(60, 60, 60, 0.95);
    border-color: #666;
    color: #e8e8e8;
}

body.dark-mode .action-btn:hover {
    background: #666;
    color: white;
}

body.dark-mode .dark-mode-toggle .icon-light {
    display: inline;
}

body.dark-mode .dark-mode-toggle .icon-dark {
    display: none;
}

body.dark-mode .recipe-search {
    background: rgba(40, 40, 40, 0.95);
    border-color: #666;
    color: #e8e8e8;
}

body.dark-mode .recipe-search::placeholder {
    color: #999;
}

body.dark-mode .search-autocomplete {
    background: rgba(40, 40, 40, 0.98);
    border-color: #666;
}

body.dark-mode .autocomplete-item {
    border-bottom-color: rgba(102, 102, 102, 0.3);
}

body.dark-mode .autocomplete-item:hover {
    background: rgba(102, 102, 102, 0.2);
}

body.dark-mode .autocomplete-type {
    background: rgba(102, 102, 102, 0.3);
    color: #ccc;
}

body.dark-mode .autocomplete-text {
    color: #e8e8e8;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .print-hidden,
    .recipe-actions,
    .recipe-navigation,
    .site-header,
    .site-footer {
        display: none !important;
    }
    
    .recipe-single {
        background: white !important;
        box-shadow: none !important;
    }
    
    .parchment-box {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .recipe-title {
        font-size: 24pt;
        margin-bottom: 1rem;
        page-break-after: avoid;
    }
    
    .recipe-quick-info {
        page-break-after: avoid;
    }
    
    .recipe-parts-grid {
        display: block !important;
    }
    
    .ingredients-section,
    .cooking-steps-section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .recipe-featured-image img,
    .gallery-image {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    .recipe-gallery {
        page-break-before: always;
    }
    
    .gallery-grid {
        display: block !important;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
        page-break-inside: avoid;
    }
}

@media screen and (max-width: 768px) {
    .recipe-header-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .recipe-actions {
        width: 100%;
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Recipe Archive Styles */
/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.recipe-search {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #8B5A3C;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    color: #2D1810;
    transition: all 0.3s ease;
}

.recipe-search:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 1);
}

.recipe-search::placeholder {
    color: #8B5A3C;
    opacity: 0.7;
}

.search-icon {
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    color: #8B5A3C;
    pointer-events: none;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #8B5A3C;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(139, 90, 60, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.autocomplete-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-type {
    font-size: 0.75rem;
    color: #8B5A3C;
    background: rgba(139, 90, 60, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.autocomplete-text {
    color: #2D1810;
    font-weight: 500;
}

.recipe-archive-container {
  min-height: 100vh;
  padding: 2rem 0;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 3rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px hsla(var(--glow), 0.3);
}

.archive-description {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

.recipe-archive-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-mystical);
  position: sticky;
  top: 2rem;
  max-height: 80vh;
  overflow-y: auto;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.filter-title {
  font-size: 1.5rem;
  color: hsl(var(--primary));
  margin: 0;
}

.clear-all-filters,
.clear-all-filters-small {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-all-filters:hover,
.clear-all-filters-small:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section-title {
  font-size: 1.1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: calc(var(--radius) * 0.5);
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.filter-checkbox:hover {
  background: hsl(var(--muted));
}

.filter-checkbox.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filter-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  opacity: 0;
  position: absolute;
}

.checkmark {
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(var(--border));
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -1px;
  width: 6px;
  height: 10px;
  border: solid hsl(var(--primary-foreground));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-label {
  flex: 1;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
}

.filter-count {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

/* Main Content */
.recipe-main-content {
  min-height: 400px;
}

.sort-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-label {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.sort-select {
  background: hsl(var(--input));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 0.5);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.results-info {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* Active Filters */
.active-filters {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.active-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.active-filters-title {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) * 0.5);
  font-size: 0.875rem;
}

.remove-filter {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-left: 0.25rem;
  line-height: 1;
}

.remove-filter:hover {
  opacity: 0.7;
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.recipe-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-mystical);
}

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

.recipe-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.05);
}

.recipe-difficulty {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) * 0.5);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.recipe-difficulty.easy {
  background: hsl(120, 50%, 35%);
}

.recipe-difficulty.medium {
  background: hsl(45, 60%, 45%);
}

.recipe-difficulty.hard {
  background: hsl(0, 60%, 45%);
}

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

.recipe-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.recipe-card-title a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.recipe-card-title a:hover {
  color: hsl(var(--primary));
}

.recipe-card-excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.recipe-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsla(var(--background), 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  text-align: center;
  color: hsl(var(--foreground));
}

.mystical-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid hsl(var(--muted));
  border-top: 3px solid hsl(var(--primary));
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.no-results-content h3 {
  font-size: 2rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.no-results-content p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: hsl(var(--primary));
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .recipe-archive-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filter-sidebar {
    position: static;
    max-height: none;
  }

  .sort-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .archive-title {
    font-size: 2rem;
  }

  .active-filters-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

/* Custom Components */
.parchment-box {
  background: var(--gradient-parchment);
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-vintage);
  border-radius: var(--radius);
  padding: 2rem;
}

.mystical-glow {
  box-shadow: var(--shadow-glow);
}

.gothic-section {
  background: var(--gradient-mystical);
  padding: 5rem 0;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: hsla(var(--background), 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  text-align: center;
}

.site-title {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: hsl(var(--primary));
  text-decoration: none;
  margin: 0;
}

.site-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.main-navigation {
  display: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: hsl(var(--primary));
}

.header-cta {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-mystical);
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    hsla(var(--background), 0.4), 
    hsla(var(--background), 0.6), 
    hsla(var(--background), 0.8)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-mystical);
  background-size: cover;
  background-position: center;
}

.hero-image:first-child {
  aspect-ratio: 3/4;
}

.hero-image:last-child {
  aspect-ratio: 1/1;
  margin-top: 2rem;
}

.hero-welcome {
  text-align: center;
  padding: 0 2rem;
}

.hero-welcome h2 {
  font-family: var(--font-script);
  font-size: 3rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.hero-welcome h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.hero-welcome p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.hero-cta {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-script);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Featured Recipe Section */
.latest-novel {
  padding: 5rem 0;
  background: var(--gradient-mystical);
}

.novel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.novel-cover {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.novel-cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-mystical);
}

.novel-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  box-shadow: var(--shadow-glow);
}

.novel-info h2 {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.novel-info .section-label {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
  display: block;
}

.novel-info p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.recipe-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.recipe-meta span {
  background-color: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  border: 1px solid hsla(var(--primary), 0.3);
}

.novel-cta {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  display: inline-block;
  text-decoration: none;
}

.novel-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.novel-subtitle {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
}

/* Featured Interview Section */
.featured-interview {
  padding: 5rem 0;
  background-color: hsl(var(--muted));
}

.interview-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.interview-content .section-label {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
  display: block;
}

.interview-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
  line-height: 1.5;
}

.interview-content p {
  font-family: var(--font-serif);
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.interview-link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-color: hsla(var(--primary), 0.3);
  font-family: var(--font-serif);
  transition: all 0.2s ease;
}

.interview-link:hover {
  color: hsl(var(--glow));
  text-decoration-color: hsla(var(--glow), 0.5);
}

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 0;
  background: var(--gradient-mystical);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

.newsletter-content p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto 1rem;
}

.newsletter-form input {
  flex: 1;
  background-color: hsla(var(--background), 0.5);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
}

.newsletter-form input::placeholder {
  color: hsl(var(--muted-foreground));
}

.newsletter-form button {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-glow);
}

.newsletter-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-serif);
}

/* Footer Styles */
.site-footer {
  background-color: hsl(var(--card));
  padding: 3rem 0 1rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
  font-family: var(--font-serif);
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
  font-family: var(--font-serif);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Recipe Single Page Styles */
.recipe-single {
    padding: 2rem 0;
}

.recipe-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recipe-meta-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.recipe-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--foreground);
    margin-bottom: 2rem;
    text-shadow: var(--shadow-mystical);
}

.recipe-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.recipe-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-mystical);
}

.recipe-quick-info {
    margin-bottom: 3rem;
}

.recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.recipe-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.stat-value {
    font-family: var(--font-script);
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.difficulty-easy {
    color: #10b981;
}

.difficulty-medium {
    color: #f59e0b;
}

.difficulty-hard {
    color: #ef4444;
}

.recipe-content {
    margin-bottom: 3rem;
}

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

.section-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-content {
    font-family: var(--font-serif);
    line-height: 1.8;
    color: var(--muted-foreground);
}

.recipe-parts {
    margin-bottom: 3rem;
}

.parts-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-parts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ingredients-section,
.cooking-steps-section {
    padding: 2rem;
}

.ingredients-title,
.steps-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.ingredient-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    color: var(--muted-foreground);
    line-height: 1.6;
}

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

.step-group {
    margin-bottom: 2rem;
}

.method-label {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cooking-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.cooking-step {
    counter-increment: step-counter;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    color: var(--muted-foreground);
    line-height: 1.6;
    position: relative;
    padding-left: 3rem;
}

.cooking-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: var(--gradient-mystical);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 0.875rem;
}

.cooking-step:last-child {
    border-bottom: none;
}

.recipe-gallery {
    margin-top: 2rem;
}

.gallery-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.recipe-ingredients-tags {
    margin-bottom: 2rem;
}

.ingredients-tags-title {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.ingredient-tag {
    padding: 0.5rem 1rem;
    background: var(--gradient-mystical);
    color: white;
    border-radius: 1.5rem;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.ingredient-tag:hover {
    transform: scale(1.05);
}

.recipe-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--gradient-mystical);
    color: white;
    transition: transform 0.3s ease;
    max-width: 200px;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-mystical);
}

.nav-label {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.nav-title {
    font-family: var(--font-script);
    font-size: 1.125rem;
    font-weight: 600;
}

.prev-recipe {
    text-align: left;
}

.next-recipe {
    text-align: right;
    margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-images {
    order: 2;
  }
  
  .hero-welcome {
    order: 1;
  }
  
  .novel-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    max-width: 300px;
  }
  
  .recipe-meta {
    justify-content: center;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-title {
    font-size: 2rem;
  }
  
  .recipe-title {
    font-size: 2.5rem;
  }
  
  .recipe-parts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .recipe-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .recipe-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-link {
    max-width: 100%;
  }
  
  .next-recipe {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .main-navigation {
    display: block;
  }
}