:root {
  /* Primary burgundy/wine colors from hero gradient */
  --primary-color: #730c32;
  --primary-dark: #5a0a28;
  --primary-light: #8f1040;
  --secondary-color: #c0392b;
  --accent-color: #e74c3c;
  --logo-image: url('../images/TRFLogo.png');
  /* Neutral darks inspired by hero */
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --bg-primary: #0d0c0c;
  --bg-secondary: #1a1618;
  --bg-tertiary: #2a1f23;
  --border-color: #3d2830;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(115, 12, 50, 0.3);
  --shadow-md: 0 4px 12px rgba(115, 12, 50, 0.4);
  --shadow-lg: 0 8px 24px rgba(115, 12, 50, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --primary-color: #730c32;
  --primary-dark: #5a0a28;
  --primary-light: #a01448;
  --secondary-color: #c0392b;
  --accent-color: #e74c3c;
  --logo-image: url('../images/TRFLogo-Black.png');
  --text-primary: #2c1a21;
  --text-secondary: #5d4248;
  --bg-primary: #FAF9F6;
  --bg-secondary: #f0eced;
  --bg-tertiary: #e6dfe2;
  --border-color: #d4c5ca;
  
  --shadow-sm: 0 2px 4px rgba(115, 12, 50, 0.08);
  --shadow-md: 0 4px 12px rgba(115, 12, 50, 0.12);
  --shadow-lg: 0 8px 24px rgba(115, 12, 50, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.metallic-white {
 color: #ffffff;
            font-size: 22px;
            font-weight: 300;
            letter-spacing: 0.5px;
            background: rgba(255,255,255,0.1);
            padding: 20px 40px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            margin-bottom: 2.5rem;
        }

        @media (max-width: 768px) {
            .style1, .style2, .style3, .style4, .style5, .style6, .style7, .style8 {
                font-size: 18px;
                padding: 15px 25px;
            }
        }


body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

.recipe-image {
    background: linear-gradient(135deg, 
        rgba(115, 12, 50, 0.1) 0%, 
        rgba(192, 57, 43, 0.1) 100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.recipe-image[loading="lazy"] {
    opacity: 0;
}

.recipe-image[loading="lazy"].loaded,
.recipe-image:not([loading]) {
    opacity: 1;
}

/* Optional: Skeleton loader while image loads */
.recipe-image-link {
    position: relative;
    background: linear-gradient(
        90deg,
        rgba(115, 12, 50, 0.05) 0%,
        rgba(115, 12, 50, 0.1) 50%,
        rgba(115, 12, 50, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.recipe-image-link:has(img.loaded) {
    animation: none;
    background: transparent;
}

/* Picture element styling */
picture {
    display: block;
    width: 100%;
    height: 100%;
}

picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure recipe images work in picture element */
.recipe-image-link picture {
    width: 100%;
    height: 240px;
    display: block;
}

.thin { font-weight: 300; }
.thick { font-weight: 900; }

.hero {
  position: relative;
  height: 100vh;
  color: white;
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--secondary-color);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.btn-secondary:hover {
  
  background-position: center;
  color: white; /* Optional: ensure text is visible */
  border-color: transparent; /* Optional: adjust border */
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #229954;
}

.btn-danger {
  background: var(--accent-color);
  color: white;
}

.btn-danger:hover {
  background: var(--secondary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-text:hover {
  color: var(--accent-color);
}

.search-section {
  padding: 3rem 0;
  background: var(--bg-secondary);
}

.search-form {
  display: flex;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 12, 50, 0.2);
}


.category-select {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 200px;
}

.category-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 12, 50, 0.2);
}

.recipes-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.recipe-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.recipe-image-link {
  display: block;
  overflow: hidden;
}

.recipe-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image {
  transform: scale(1.1);
}

.recipe-content {
  padding: 1.5rem;
}

.recipe-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.recipe-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.recipe-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.recipe-title a:hover {
  color: var(--accent-color);
}

.recipe-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.recipe-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star {
  color: var(--border-color); /* gray or light neutral */
  font-size: 1.125rem;
}

.star.filled {
  color: #f39c12; /* yellow */
}

.star.half {
  position: relative;
  color: var(--border-color);
}

.star.half::before {
  content: '★';
  position: absolute;
  overflow: hidden;
  width: 50%;
  color: #f39c12;
  left: 0;
  top: 0;
}

.rating-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.recipe-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.recipe-time svg {
  width: 16px;
  height: 16px;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}


.trf-footer {
  width: 100%;
  padding: 3rem 1.5rem;  background: var(--bg-secondary); /* Use your variables for consistency */
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  
  /* Initial state for GSAP */
  opacity: 0;
  transform: translateY(40px);
  visibility: visible; 
  display: block !important;
}

.trf-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.trf-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.trf-footer-nav {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.trf-footer-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.trf-footer-nav a:hover {
  opacity: 0.6;
}

.trf-footer-copy {
  font-size: 0.85rem;
  color: #777;
}

/* Dark Mode Footer */
.dark .trf-footer {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #eee;
}

.dark .trf-footer-nav a {
  color: #ccc;
}

.dark .trf-footer-nav a:hover {
  opacity: 0.7;
}

.dark .trf-footer-copy {
  color: #999;
}

.dark .trf-logo {
  color: #f5f5f5;
}



.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

/* Add background to entire left side - WITH PERFECT SPACING */
.footer-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 250px;
  height: 250px;
  /* Use the variable here */
  background-image: var(--logo-image);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transition: background-image 0.3s ease; /* Smooth transition */
}

/* Ensure text sections have breathing room */
.footer-content > * {
  position: relative;
  z-index: 1;
}

.footer-sections-left {
  display: contents;
  padding-left: 3rem; /* Creates nice gap */
}



.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}

/* ============================================
   MOBILE SIMPLE FOOTER
   ============================================ */

.footer-mobile {
  display: none; /* Hidden on desktop */
  background: var(--bg-secondary);
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: 4rem;
}

.footer-mobile p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Desktop footer - default visible */
.footer-desktop {
  display: block;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .footer-content::before {
    width: 150px;
    height: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
  }
  
  .footer-sections-left {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .footer-content::before {
    width: 120px;
    height: 120px;
    opacity: 0.06;
  }
}

/* ============================================
   RESPONSIVE BEHAVIOR - MOBILE FIRST
   ============================================ */

/* MOBILE: Show simple footer, hide desktop footer */
@media (max-width: 768px) {
  /* Show mobile footer */
  .footer-mobile {
    display: block !important;
  }
  
  /* Hide desktop footer completely */
  .footer-desktop {
    display: none !important;
  }
  
  /* Also hide the logo watermark on mobile */
  .footer-desktop .footer-content::before {
    display: none !important;
  }
}

/* TABLET & DESKTOP: Show full footer, hide simple footer */
@media (min-width: 769px) {
  /* Hide mobile footer */
  .footer-mobile {
    display: none !important;
  }
  
  /* Show desktop footer */
  .footer-desktop {
    display: block !important;
  }
}

.footer-content > * {
  position: relative;
  z-index: 1;
}

.footer-sections-left {
  display: contents;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent-color);
  outline: none;
  padding-left: 4px;
}

.footer-newsletter {
  background: linear-gradient(135deg, 
    rgba(115, 12, 50, 0.15) 0%, 
    rgba(192, 57, 43, 0.1) 100%);
  border-radius: 12px;
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.footer-newsletter h4 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-newsletter p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-newsletter form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.footer-newsletter button {
  background: var(--accent-color);
  border: none;
  color: white;
  padding: 0 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter button:hover,
.footer-newsletter button:focus {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  outline: none;
}

.footer-newsletter .message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  display: none;
}

.footer-newsletter .message.success {
  display: block;
  background: rgba(39, 174, 69, 0.15);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 69, 0.3);
}

.footer-newsletter .message.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  text-decoration: underline;
  color: var(--primary-light);
  outline: none;
}

/* Responsive footer */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-newsletter {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter button {
    width: 100%;
    padding: 0.75rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
    padding: 1.5rem 1rem 0;
  }
}




.recipe-detail {
  padding: 3rem 0;
  background: var(--bg-primary);
}

.recipe-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}

.recipe-category-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.recipe-detail-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.recipe-detail-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.recipe-detail-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

.meta-value {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 600;
}

.recipe-rating-large {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recipe-rating-large .star {
  font-size: 1.5rem;
}

.rating-value {
  margin-left: 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.recipe-header-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.recipe-header-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.recipe-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.info-card svg {
  width: 32px;
  height: 32px;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.info-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 500;
}

.info-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.recipe-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.recipe-section {
  margin-bottom: 3rem;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

.ingredients-list,
.instructions-list {
  list-style: none;
  counter-reset: item;
}

.ingredients-list li,
.instructions-list li {
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  position: relative;
  padding-left: 4rem;
}

.ingredients-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  color: #27ae60;
  font-weight: bold;
  font-size: 1.25rem;
}

.instructions-list li {
  counter-increment: item;
}

.instructions-list li::before {
  content: counter(item);
  position: absolute;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.rating-widget {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 100px;
}

.rating-widget h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-star {
  font-size: 2.5rem;
  color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.rating-star:hover,
.rating-star.active {
  color: #f39c12;
  transform: scale(1.2);
}

.rating-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.comment-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 12, 50, 0.2);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comment-text {
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.btn-reply {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.875rem;
  transition: var(--transition);
}

.btn-reply:hover {
  text-decoration: underline;
}

.comment-replies {
  margin-top: 1.5rem;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment.reply {
  background: var(--bg-primary);
}

.submit-section {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
  background: var(--bg-primary);
}

.submit-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.recipe-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-section {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.form-section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(
    circle at top left,
    rgba(115, 12, 50, 1) 0%,
    rgba(13, 12, 12, 1) 50%
  );
}

.login-card {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  border: 1px solid var(--border-color);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.logo-large .logo-icon {
  font-size: 3rem;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.login-header p {
  color: var(--text-secondary);
}

.login-form {
  margin-top: 2rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(231, 76, 60, 0.15);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.link:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {    display: flex;
    flex-direction: column;
    height: 100vh;    width: 260px;
      background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
}

/* Navigation - flex: 1 pushes the footer down */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

/* Footer Container */
.sidebar-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

/* Image Styling */
.sidebar-image {
    max-width: 100%;    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.sidebar-image:hover {
    transform: scale(1.05);
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
  padding: 1.5rem 0;
  flex: 1;
}

/* Default State: Hide light logo, show dark logo */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

/* Light Theme State: Assuming 'data-theme="light"' is on the body or html tag */
[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

/* Sidebar Image Shared Styles */
.sidebar-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sidebar-image:hover {
    transform: scale(1.05);
}

/* Adjust footer background for light theme if needed */
[data-theme="light"] .sidebar-footer {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid #e1e1e1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item:hover,
.nav-item.active {
  background: var(--bg-tertiary);
  color: var(--accent-color);
}

.admin-main {
  flex: 1;
  padding: 2rem;
  background: var(--bg-primary);
  overflow-y: auto;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.admin-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.stat-icon.pending {
  background: var(--secondary-color);
}

.stat-icon.success {
  background: #27ae60;
}

.stat-icon.info {
  background: var(--primary-color);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.content-section {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
}

.badge {
  background: var(--primary-color);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
}

.pending-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pending-recipe-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.pending-recipe-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.pending-recipe-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pending-recipe-content {
  padding: 1.5rem;
}

.pending-recipe-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pending-recipe-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.recipe-meta-small {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pending-recipe-actions {
  display: flex;
  gap: 0.75rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.modal-content.modal-large {
  max-width: 1200px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary-color);
  color: white;
}

@media (max-width: 1024px) {
  .recipe-header {
    grid-template-columns: 1fr;
  }

  .recipe-body {
    grid-template-columns: 1fr;
  }

  .rating-widget {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .search-form {
    flex-direction: column;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
  }

  .recipe-detail-title {
    font-size: 2rem;
  }

  .recipe-info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .comment-replies {
    margin-left: 1rem;
    padding-left: 1rem;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Left column with enhanced styling */
.register-info {
  background: linear-gradient(135deg, 
    rgba(115, 12, 50, 0.95) 0%, 
    rgba(90, 10, 40, 0.98) 50%,
    rgba(115, 12, 50, 0.95) 100%);
  color: white;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Decorative overlay pattern */
.register-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 30px 30px;
  opacity: 0.4;
  pointer-events: none;
}

/* Enhanced logo styling */
.register-info .logo-large {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.register-info .logo-large .logo-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.register-info .logo-large .logo-text {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.register-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.register-info > p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
}

/* Enhanced benefits list */
.benefits-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.benefits-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
  padding-left: 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 20px;
  height: 20px;
  background: rgba(39, 174, 96, 0.2);
  border: 2px solid #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-list li::after {
  content: '✓';
  position: absolute;
  left: 5px;
  top: 0.15rem;
  color: #27ae60;
  font-weight: bold;
  font-size: 0.9rem;
}

.benefits-list li:hover {
  transform: translateX(5px);
  color: white;
}

/* Note styling */
.register-info .note {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.8;
  position: relative;
  z-index: 1;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}


/* ============================================
   PREMIUM PROFESSIONAL NAVBAR STYLES
   Replace old header, hamburger, and nav styles
   ============================================ */

/* Premium Navbar Container */
.premium-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 12, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(115, 12, 50, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .premium-navbar {
    background: rgba(250, 248, 249, 0.95);
    border-bottom: 1px solid rgba(115, 12, 50, 0.15);
}

.premium-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(115, 12, 50, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

/* Elegant Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(115, 12, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.brand-logo:hover .logo-icon::before {
    left: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1;
margin-bottom: 4px;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background: rgba(115, 12, 50, 0.08);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* CTA Button */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(115, 12, 50, 0.3);
    margin-left: 0.5rem;
    text-decoration: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(115, 12, 50, 0.4);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-color);
    transform: rotate(180deg);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 45px;
    height: 45px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(115, 12, 50, 0.1);
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 1.5rem;
        height: 70px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        justify-content: space-between;
        padding: 1rem;
        border-radius: 8px;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link::after {
        content: '›';
        font-size: 1.5rem;
        color: var(--text-secondary);
    }

    .nav-cta {
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .theme-toggle-btn {
        margin: 0.5rem 0 0 0;
        width: 100%;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-tagline {
        display: none;
    }

    .logo-main {
        font-size: 1.2rem;
    }
}

/* Adjust hero section for new navbar height */
#home_hero {
    margin-top: 85px;
}

@media (max-width: 900px) {
    #home_hero {
        margin-top: 70px;
    }
}

/* Standalone theme toggle for login/register pages */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: white;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Adjust submit section padding for new navbar */
.submit-section {
  padding-top: 120px;
}

.footer-legal-links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-legal-links .separator {
  color: var(--text-secondary);
}

.header {
    background: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
}

/* ============================================
   CONTACT POPUP - SMALLER & PERFECTLY CENTERED
   ============================================ */

/* Popover Base Animation */
[popover] {
  opacity: 0;
  transition: 
    opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    overlay 0.6s allow-discrete,
    display 0.6s allow-discrete;
  border: none;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3) rotate(-270deg);
  max-height: 90vh;
  overflow-y: auto;
}

[popover]:popover-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

@starting-style {
  [popover]:popover-open {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(-270deg);
  }
}

/* Backdrop Animation */
[popover]::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition: 
    display 0.6s allow-discrete,
    overlay 0.6s allow-discrete,
    background-color 0.6s;
}

[popover]:popover-open::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
}

@starting-style {
  [popover]:popover-open::backdrop {
    background-color: rgba(0, 0, 0, 0);
  }
}

/* Contact Popup Styling - MUCH SMALLER & SLEEK */
#contactPopup {
  width: min(360px, 92vw); /* Much smaller - 360px */
  max-width: 360px;
  padding: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(115, 12, 50, 0.6), 
              0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Popup Header - Sleek & Minimal */
#contactPopup h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0;
  padding: 1.25rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, 
    rgba(115, 12, 50, 0.12) 0%, 
    rgba(192, 57, 43, 0.08) 100%);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Close Button - Elegant & Compact */
#contactPopup .closer {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  opacity: 0.8;
}

#contactPopup .closer:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: rotate(90deg);
  box-shadow: 0 4px 15px rgba(115, 12, 50, 0.4);
}

/* Form Container - Tight & Clean */
#contactPopup #contactForm {
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
}

/* Form Groups - Minimal Spacing */
#contactPopup .form-group {
  margin-bottom: 1rem;
}

#contactPopup .form-group:last-of-type {
  margin-bottom: 1.25rem;
}

#contactPopup .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

#contactPopup .form-group label span {
  color: var(--accent-color);
}

#contactPopup .form-group input,
#contactPopup .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  resize: none;
}

#contactPopup .form-group input::placeholder,
#contactPopup .form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

#contactPopup .form-group input:focus,
#contactPopup .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(115, 12, 50, 0.12);
  background: var(--bg-secondary);
}

#contactPopup .form-group textarea {
  min-height: 75px;
  max-height: 100px;
}

/* Submit Button - Bold & Compact */
#contactPopup .btn-block {
  width: 100%;
  margin-top: 0;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(115, 12, 50, 0.35);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#contactPopup .btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(115, 12, 50, 0.4);
}

#contactPopup .btn-block:active {
  transform: translateY(0);
}

#contactPopup .btn-block:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status Message - Sleek */
#contactPopup #formStatus {
  display: none;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contactPopup #formStatus.success {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

#contactPopup #formStatus.error {
  background: rgba(231, 76, 60, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Light Theme Adjustments */
[data-theme="light"] #contactPopup {
  box-shadow: 0 20px 60px rgba(115, 12, 50, 0.25);
  border-color: var(--border-color);
}

[data-theme="light"] #contactPopup h2 {
  background: linear-gradient(135deg, 
    rgba(115, 12, 50, 0.06) 0%, 
    rgba(192, 57, 43, 0.04) 100%);
}

/* Responsive Design */
@media (max-width: 600px) {
  #contactPopup {
    width: 90vw;
    max-width: 340px;
  }

  #contactPopup h2 {
    font-size: 1.3rem;
    padding: 1rem 1.25rem 0.875rem 1.25rem;
  }

  #contactPopup .closer {
    top: 0.95rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  #contactPopup #contactForm {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
  }

  #contactPopup .form-group {
    margin-bottom: 0.875rem;
  }

  #contactPopup .form-group label {
    font-size: 0.8rem;
  }

  #contactPopup .form-group input,
  #contactPopup .form-group textarea {
    font-size: 0.875rem;
    padding: 0.6rem 0.7rem;
  }

  #contactPopup .btn-block {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }
}

body.popover-open {
  overflow: hidden;
}

#contactLink {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  display: block;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contactLink:hover,
#contactLink:focus {
  color: var(--accent-color);
  outline: none;
  padding-left: 4px;
}

/* Prevent autofill yellow background and text color change */
#contactPopup input:-webkit-autofill,
#contactPopup input:-webkit-autofill:hover,
#contactPopup input:-webkit-autofill:focus,
#contactPopup input:-webkit-autofill:active,
#contactPopup textarea:-webkit-autofill,
#contactPopup textarea:-webkit-autofill:hover,
#contactPopup textarea:-webkit-autofill:focus,
#contactPopup textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Additional autofill prevention for modern browsers */
#contactPopup input[data-form-type="other"],
#contactPopup textarea[data-form-type="other"] {
    background-color: var(--bg-primary) !important;
}

/* Add this to your assets/css/styles.css file */

/* Newsletter Form Styling */
.footer-newsletter form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--border-color, #ddd);
  border-radius: 5px;
  font-size: 14px;
  background: var(--input-bg, white);
  color: var(--text-color);
  transition: border-color 0.3s;
}

.footer-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
}

.footer-newsletter input[type="email"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer-newsletter button {
  padding: 12px 25px;
  background: var(--primary-color, #667eea);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-newsletter button:hover:not(:disabled) {
  background: var(--primary-hover, #5568d3);
  transform: translateY(-2px);
}

.footer-newsletter button:active:not(:disabled) {
  transform: translateY(0);
}

.footer-newsletter button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Message Display */
.footer-newsletter .message {
  margin-top: 12px;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.footer-newsletter .message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.footer-newsletter .message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme support */
[data-theme="dark"] .footer-newsletter input[type="email"] {
  background: var(--dark-input-bg, #2a2a2a);
  border-color: var(--dark-border-color, #444);
  color: var(--dark-text-color, #e0e0e0);
}

[data-theme="dark"] .footer-newsletter .message.success {
  background: #1e4620;
  color: #a8d5ac;
  border-color: #2d5f31;
}

[data-theme="dark"] .footer-newsletter .message.error {
  background: #4a1f1f;
  color: #f5a9a9;
  border-color: #6b2c2c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter button {
    width: 100%;
  }
}


    font-size: clamp(1.5rem, 5vw, 2rem);
/* ============================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   Making everything 100% responsive
   ============================================ */

/* Ultra-small devices (320px and up) */
@media (max-width: 374px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .premium-navbar {
    padding: 0 0.5rem;
  }
  
  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .logo-main {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .recipe-card {
    margin: 0 0.5rem;
  }
  
  .search-input-wrapper {
    min-width: 100%;
  }
  
  .category-select {
    min-width: 100%;
  }
}

/* Small devices (375px to 767px) */
@media (min-width: 375px) and (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 4rem 0 3rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  .metallic-white {
    font-size: 1rem;
    padding: 15px 20px;
  }
  
  .search-section {
    padding: 2rem 0;
  }
  
  .search-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search-input-wrapper,
  .category-select,
  .btn-secondary {
    width: 100%;
    min-width: 100%;
  }
  
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .recipe-card {
    max-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-newsletter {
    max-width: 100%;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter button {
    width: 100%;
  }
  
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Medium devices (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    height: 70vh;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  
  .recipe-header {
    grid-template-columns: 1fr;
  }
  
  .recipe-body {
    grid-template-columns: 1fr;
  }
  
  .recipe-info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pending-recipes-grid,
  .published-recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    max-width: 1140px;
  }
  
  .recipes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr) 340px;
  }
}

/* Extra large devices (1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  .recipes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .metallic-white {
    margin-bottom: 1.5rem;
    padding: 10px 20px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .nav-cta {
    min-height: 44px;
    min-width: 44px;
  }
  
  .recipe-card:hover {
    transform: none;
  }
  
  .nav-link:hover {
    background: rgba(115, 12, 50, 0.1);
  }
}

/* Print styles */
@media print {
  .premium-navbar,
  .search-section,
  .footer,
  .theme-toggle,
  .btn {
    display: none !important;
  }
  
  .hero {
    page-break-after: always;
  }
  
  .recipe-card,
  .recipe-detail {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .recipe-card,
  .btn,
  .nav-link {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Additional tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-menu {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }
  
  .logo-tagline {
    font-size: 0.65rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .comment-replies {
    margin-left: 1rem;
    padding-left: 1rem;
  }
}

/* Mobile Theme Toggle - FIXED VERSION */
@media (max-width: 900px) {
    .nav-menu .theme-toggle-btn {
        margin: 1rem 0 0 0;
        width: 100%;
        height: 55px;
        border-radius: 12px;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0 1.5rem;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-menu .theme-toggle-btn::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        border-radius: 12px 0 0 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu .theme-toggle-btn:hover::before {
        opacity: 1;
    }

    /* Icon styling for mobile */
    .nav-menu .theme-toggle-btn svg {
        width: 20px;
        height: 20px;
        padding: 10px;
        background: linear-gradient(135deg, 
            rgba(115, 12, 50, 0.15) 0%, 
            rgba(192, 57, 43, 0.1) 100%);
        border-radius: 50%;
        color: var(--accent-color) !important;
        flex-shrink: 0;
    }

    /* Add text label in mobile menu */
    .nav-menu .theme-toggle-btn::after {
        content: 'Switch Theme';
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
        flex: 1;
        text-align: left;
    }

    /* Dynamic text based on theme */
    [data-theme="light"] .nav-menu .theme-toggle-btn::after {
        content: 'Light Mode';
    }

    [data-theme="dark"] .nav-menu .theme-toggle-btn::after {
        content: 'Dark Mode';
    }

    .nav-menu .theme-toggle-btn:hover {
        transform: translateX(4px);
        background: var(--bg-secondary);
        border-color: var(--primary-color);
    }

    .nav-menu .theme-toggle-btn:active {
        transform: translateX(2px);
    }
}

/* ============================================
   DASHBOARD RESPONSIVE FIXES
   Add these to your styles.css file
   ============================================ */

/* Fix admin sidebar on mobile - remove sticky behavior */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Overlay when sidebar is open */
    .admin-sidebar.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 260px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Make main content full width on mobile */
    .admin-main {
        padding: 1rem;
        margin-left: 0;
        width: 100%;
        min-height: 100vh;
    }
    
    /* Adjust admin header for mobile */
    .admin-header-enhanced {
        margin-bottom: 1.5rem;
        padding-top: 0;
    }
    
    .admin-header-enhanced h1 {
        font-size: 1.75rem;
    }
    
    .admin-header-enhanced p {
        font-size: 0.95rem;
    }
}

/* Fix mobile menu toggle button positioning */
.mobile-menu-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(115, 12, 50, 0.4);
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}

/* Fix stats grid on mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* Fix recipe cards grid on mobile */
@media (max-width: 768px) {
    .pending-recipes-grid,
    .published-recipes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pending-recipe-card,
    .published-recipe-card {
        max-width: 100%;
    }
}

/* Fix search bar on mobile */
@media (max-width: 768px) {
    .search-filter-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-select {
        width: 100%;
        min-width: 100%;
    }
}

/* Fix form sections on mobile */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .form-section-title {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Fix content sections on mobile */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-header .btn {
        width: 100%;
    }
}

/* Fix empty state on mobile */
@media (max-width: 768px) {
    .empty-state-enhanced {
        padding: 3rem 1.5rem;
    }
    
    .empty-state-icon {
        width: 100px;
        height: 100px;
    }
    
    .empty-state-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .empty-state-enhanced h3 {
        font-size: 1.25rem;
    }
}

/* Fix recipe actions on very small screens */
@media (max-width: 480px) {
    .recipe-actions-enhanced {
        flex-direction: column;
    }
    
    .recipe-actions-enhanced .btn {
        width: 100%;
        flex: none;
    }
}

/* Ensure admin layout doesn't have extra top spacing */
.admin-layout {
    margin-top: 0;
    padding-top: 0;
}

.admin-main {
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .admin-main {
        padding-top: 1rem;
    }
}

/* Fix notification badge on mobile */
@media (max-width: 768px) {
    .notification-badge {
        font-size: 0.7rem;
        padding: 0.125rem 0.4rem;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .btn-sm {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .nav-item {
        padding: 1rem 1.5rem;
        min-height: 52px;
    }
}

/* Fix footer on dashboard pages for mobile */
@media (max-width: 768px) {
    footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    footer > div {
        padding: 0 1rem;
    }
    
    footer div[style*="display: flex"] {
        flex-direction: column;
        gap: 0.75rem !important;
    }
}

/* Fix modal/popup responsiveness */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .admin-layout {
        overflow-x: hidden;
        width: 100%;
    }
    
    .admin-main {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

/* Fix image upload preview on mobile */
@media (max-width: 768px) {
    .image-preview img {
        max-height: 200px;
    }
    
    .image-option-tabs {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .image-tab {
        flex: 1;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   BLUE & ROSE COLOR SCHEME TRANSFORMATION
   Replace your existing :root variables in styles.css
   ============================================ */

:root {
  /* PRIMARY BLUE GRADIENT COLORS - DARK MODE */
  --primary-color: #1e3a8a; /* Deep Royal Blue */
  --primary-dark: #1e40af; /* Darker Blue */
  --primary-light: #3b82f6; /* Bright Blue */
  --secondary-color: #2563eb; /* Electric Blue */
  --accent-color: #60a5fa; /* Sky Blue */
  --logo-image: url('../images/TRFLogo.png');
  
  /* Neutral darks with blue undertones */
  --text-primary: #f0f9ff; /* Very light blue-white */
  --text-secondary: #bfdbfe; /* Light blue-gray */
  --bg-primary: #0f172a; /* Very dark blue-gray */
  --bg-secondary: #1e293b; /* Dark blue-gray */
  --bg-tertiary: #334155; /* Medium blue-gray */
  --border-color: #475569; /* Blue-gray border */
  
  /* Shadows with blue tint */
  --shadow-sm: 0 2px 4px rgba(30, 58, 138, 0.3);
  --shadow-md: 0 4px 12px rgba(30, 58, 138, 0.4);
  --shadow-lg: 0 8px 24px rgba(30, 58, 138, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* PRIMARY ROSE GRADIENT COLORS - LIGHT MODE */
  --primary-color: #be185d; /* Deep Rose */
  --primary-dark: #9f1239; /* Darker Rose */
  --primary-light: #ec4899; /* Bright Pink */
  --secondary-color: #db2777; /* Vibrant Pink */
  --accent-color: #f472b6; /* Soft Pink */
  --logo-image: url('../images/TRFLogo-Black.png');
  
  /* Light neutrals with rose undertones */
  --text-primary: #1f2937; /* Very dark gray */
  --text-secondary: #6b7280; /* Medium gray */
  --bg-primary: #fff5f7; /* Very light rose-white */
  --bg-secondary: #ffe4e9; /* Light rose */
  --bg-tertiary: #fce7f3; /* Soft pink */
  --border-color: #fbcfe8; /* Pink border */
  
  /* Shadows with rose tint */
  --shadow-sm: 0 2px 4px rgba(190, 24, 93, 0.08);
  --shadow-md: 0 4px 12px rgba(190, 24, 93, 0.12);
  --shadow-lg: 0 8px 24px rgba(190, 24, 93, 0.15);
}

/* ============================================
   HERO SECTION - BLUE GRADIENT OVERLAY
   ============================================ */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.85) 0%,
    rgba(37, 99, 235, 0.75) 50%,
    rgba(96, 165, 250, 0.65) 100%
  );
  z-index: 0;
}

[data-theme="light"] .hero::before {
  background: linear-gradient(
    135deg,
    rgba(190, 24, 93, 0.75) 0%,
    rgba(219, 39, 119, 0.65) 50%,
    rgba(244, 114, 182, 0.55) 100%
  );
}

/* ============================================
   METALLIC WHITE - BLUE/ROSE GLASS EFFECT
   ============================================ */
.metallic-white {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.2) 0%,
    rgba(37, 99, 235, 0.15) 100%
  );
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
}

[data-theme="light"] .metallic-white {
  background: linear-gradient(
    135deg,
    rgba(190, 24, 93, 0.15) 0%,
    rgba(219, 39, 119, 0.1) 100%
  );
  border: 1px solid rgba(244, 114, 182, 0.3);
  box-shadow: 0 8px 32px rgba(190, 24, 93, 0.2);
}

/* ============================================
   BUTTONS - BLUE/ROSE GRADIENTS
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: 0 6px 25px rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #9f1239 0%, #ec4899 100%);
  box-shadow: 0 6px 25px rgba(190, 24, 93, 0.4);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-color: transparent;
}

[data-theme="light"] .btn-secondary:hover {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

/* ============================================
   NAVBAR - BLUE/ROSE ACCENTS
   ============================================ */
.premium-navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 58, 138, 0.3);
}

[data-theme="light"] .premium-navbar {
  background: rgba(255, 245, 247, 0.95);
  border-bottom: 1px solid rgba(190, 24, 93, 0.2);
}

.logo-icon {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

[data-theme="light"] .logo-icon {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
}

.nav-link::before {
  background: linear-gradient(90deg, #1e3a8a, #60a5fa);
}

[data-theme="light"] .nav-link::before {
  background: linear-gradient(90deg, #be185d, #f472b6);
}

.nav-link:hover,
.nav-link.active {
  color: #60a5fa;
  background: rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #ec4899;
  background: rgba(190, 24, 93, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.nav-cta:hover {
  box-shadow: 0 6px 25px rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .nav-cta {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
}

[data-theme="light"] .nav-cta:hover {
  box-shadow: 0 6px 25px rgba(190, 24, 93, 0.4);
}

/* ============================================
   THEME TOGGLE - BLUE/ROSE BORDER
   ============================================ */
.theme-toggle-btn:hover {
  border-color: #60a5fa;
}

[data-theme="light"] .theme-toggle-btn:hover {
  border-color: #f472b6;
}

/* ============================================
   RECIPE CARDS - BLUE/ROSE ACCENTS
   ============================================ */
.recipe-card:hover {
  border-color: #1e3a8a;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
}

[data-theme="light"] .recipe-card:hover {
  border-color: #be185d;
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.2);
}

.recipe-category {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

[data-theme="light"] .recipe-category {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

.recipe-title a:hover {
  color: #60a5fa;
}

[data-theme="light"] .recipe-title a:hover {
  color: #ec4899;
}

/* ============================================
   FOOTER - BLUE/ROSE NEWSLETTER
   ============================================ */
.footer-newsletter {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.2) 0%,
    rgba(37, 99, 235, 0.15) 100%
  );
  border: 1px solid rgba(96, 165, 250, 0.3);
}

[data-theme="light"] .footer-newsletter {
  background: linear-gradient(
    135deg,
    rgba(190, 24, 93, 0.12) 0%,
    rgba(219, 39, 119, 0.08) 100%
  );
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.footer-newsletter button {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.footer-newsletter button:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

[data-theme="light"] .footer-newsletter button {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

[data-theme="light"] .footer-newsletter button:hover {
  background: linear-gradient(135deg, #9f1239 0%, #ec4899 100%);
}

.footer-newsletter input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

[data-theme="light"] .footer-newsletter input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.footer-section a:hover,
.footer-section a:focus {
  color: #60a5fa;
}

[data-theme="light"] .footer-section a:hover,
[data-theme="light"] .footer-section a:focus {
  color: #ec4899;
}

.footer-bottom a {
  color: #60a5fa;
}

.footer-bottom a:hover {
  color: #3b82f6;
}

[data-theme="light"] .footer-bottom a {
  color: #ec4899;
}

[data-theme="light"] .footer-bottom a:hover {
  color: #f472b6;
}

/* ============================================
   CONTACT POPUP - BLUE/ROSE
   ============================================ */
#contactPopup h2 {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.15) 0%,
    rgba(37, 99, 235, 0.1) 100%
  );
}

[data-theme="light"] #contactPopup h2 {
  background: linear-gradient(
    135deg,
    rgba(190, 24, 93, 0.08) 0%,
    rgba(219, 39, 119, 0.05) 100%
  );
}

#contactPopup .closer:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

[data-theme="light"] #contactPopup .closer:hover {
  background: #be185d;
  border-color: #be185d;
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
}

#contactPopup .form-group input:focus,
#contactPopup .form-group textarea:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

[data-theme="light"] #contactPopup .form-group input:focus,
[data-theme="light"] #contactPopup .form-group textarea:focus {
  border-color: #be185d;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12);
}

#contactPopup .btn-block {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

#contactPopup .btn-block:hover {
  box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
}

[data-theme="light"] #contactPopup .btn-block {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.35);
}

[data-theme="light"] #contactPopup .btn-block:hover {
  box-shadow: 0 6px 25px rgba(190, 24, 93, 0.4);
}

/* ============================================
   SEARCH INPUT - BLUE/ROSE FOCUS
   ============================================ */
.search-input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .search-input:focus {
  border-color: #be185d;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.2);
}

.category-select:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .category-select:focus {
  border-color: #be185d;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.2);
}

/* ============================================
   ADMIN SIDEBAR - BLUE/ROSE ACCENTS
   ============================================ */
.nav-item:hover,
.nav-item.active {
  color: #60a5fa;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
  color: #ec4899;
}

.stat-icon.pending,
.stat-icon.info {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

[data-theme="light"] .stat-icon.pending,
[data-theme="light"] .stat-icon.info {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

.badge {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

[data-theme="light"] .badge {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

/* ============================================
   LOGIN/REGISTER - BLUE/ROSE GRADIENT
   ============================================ */
.login-container {
  background: radial-gradient(
    circle at top left,
    rgba(30, 58, 138, 1) 0%,
    rgba(15, 23, 42, 1) 50%
  );
}

[data-theme="light"] .login-container {
  background: radial-gradient(
    circle at top left,
    rgba(190, 24, 93, 0.3) 0%,
    rgba(255, 245, 247, 1) 50%
  );
}

.register-info {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.95) 0%,
    rgba(30, 64, 175, 0.98) 50%,
    rgba(30, 58, 138, 0.95) 100%
  );
}

[data-theme="light"] .register-info {
  background: linear-gradient(
    135deg,
    rgba(190, 24, 93, 0.95) 0%,
    rgba(159, 18, 57, 0.98) 50%,
    rgba(190, 24, 93, 0.95) 100%
  );
}

.theme-toggle {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

/* ============================================
   MOBILE THEME TOGGLE - BLUE/ROSE
   ============================================ */
@media (max-width: 900px) {
  .nav-menu .theme-toggle-btn svg {
    background: linear-gradient(
      135deg,
      rgba(30, 58, 138, 0.15) 0%,
      rgba(37, 99, 235, 0.1) 100%
    );
    color: #60a5fa !important;
  }

  [data-theme="light"] .nav-menu .theme-toggle-btn svg {
    background: linear-gradient(
      135deg,
      rgba(190, 24, 93, 0.15) 0%,
      rgba(219, 39, 119, 0.1) 100%
    );
    color: #ec4899 !important;
  }

  .nav-menu .theme-toggle-btn:hover {
    border-color: #1e3a8a;
  }

  [data-theme="light"] .nav-menu .theme-toggle-btn:hover {
    border-color: #be185d;
  }

  .nav-menu .theme-toggle-btn::before {
    background: linear-gradient(180deg, #1e3a8a, #2563eb);
  }

  [data-theme="light"] .nav-menu .theme-toggle-btn::before {
    background: linear-gradient(180deg, #be185d, #db2777);
  }
}

/* ============================================
   FORM ELEMENTS - BLUE/ROSE FOCUS
   ============================================ */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  border-color: #be185d;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.2);
}

/* ============================================
   RECIPE IMAGE - BLUE/ROSE BACKGROUND
   ============================================ */
.recipe-image {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.1) 0%,
    rgba(37, 99, 235, 0.1) 100%
  );
}

[data-theme="light"] .recipe-image {
  background: linear-gradient(
    135deg,
    rgba(190, 24, 93, 0.1) 0%,
    rgba(219, 39, 119, 0.1) 100%
  );
}

.recipe-image-link {
  background: linear-gradient(
    90deg,
    rgba(30, 58, 138, 0.05) 0%,
    rgba(30, 58, 138, 0.1) 50%,
    rgba(30, 58, 138, 0.05) 100%
  );
}

[data-theme="light"] .recipe-image-link {
  background: linear-gradient(
    90deg,
    rgba(190, 24, 93, 0.05) 0%,
    rgba(190, 24, 93, 0.1) 50%,
    rgba(190, 24, 93, 0.05) 100%
  );
}

/* ============================================
   SECTION HEADING UNDERLINE
   ============================================ */
.section-heading::after {
  background: linear-gradient(90deg, #1e3a8a, #60a5fa);
}

[data-theme="light"] .section-heading::after {
  background: linear-gradient(90deg, #be185d, #f472b6);
}

/* ============================================
   INSTRUCTIONS & INGREDIENTS - BLUE/ROSE
   ============================================ */
.ingredients-list li,
.instructions-list li {
  border-left: 3px solid #1e3a8a;
}

[data-theme="light"] .ingredients-list li,
[data-theme="light"] .instructions-list li {
  border-left: 3px solid #be185d;
}

.instructions-list li::before {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

[data-theme="light"] .instructions-list li::before {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

/* ============================================
   INFO CARDS - BLUE/ROSE HOVER
   ============================================ */
.info-card:hover {
  border-color: #1e3a8a;
}

[data-theme="light"] .info-card:hover {
  border-color: #be185d;
}

.info-card svg {
  color: #60a5fa;
}

[data-theme="light"] .info-card svg {
  color: #ec4899;
}

/* ============================================
   STAT CARDS - BLUE/ROSE HOVER
   ============================================ */
.stat-card:hover {
  border-color: #1e3a8a;
}

[data-theme="light"] .stat-card:hover {
  border-color: #be185d;
}

/* ============================================
   PENDING/PUBLISHED CARDS - BLUE/ROSE HOVER
   ============================================ */
.pending-recipe-card:hover,
.published-recipe-card:hover {
  border-color: #1e3a8a;
}

[data-theme="light"] .pending-recipe-card:hover,
[data-theme="light"] .published-recipe-card:hover {
  border-color: #be185d;
}

/* ============================================
   BTN-TEXT - BLUE/ROSE HOVER
   ============================================ */
.btn-text:hover {
  color: #60a5fa;
}

[data-theme="light"] .btn-text:hover {
  color: #ec4899;
}

/* ============================================
   BTN-REPLY - BLUE/ROSE
   ============================================ */
.btn-reply {
  color: #60a5fa;
}

[data-theme="light"] .btn-reply {
  color: #ec4899;
}

/* ============================================
   LINK CLASS - BLUE/ROSE
   ============================================ */
.link {
  color: #60a5fa;
}

.link:hover {
  color: #3b82f6;
}

[data-theme="light"] .link {
  color: #ec4899;
}

[data-theme="light"] .link:hover {
  color: #f472b6;
}

/* ============================================
   ALERT-ERROR - BLUE/ROSE
   ============================================ */
.alert-error {
  background: rgba(30, 58, 138, 0.15);
  color: #60a5fa;
  border: 1px solid #60a5fa;
}

[data-theme="light"] .alert-error {
  background: rgba(190, 24, 93, 0.15);
  color: #be185d;
  border: 1px solid #f472b6;
}

/* ============================================
   MODAL CLOSE - BLUE/ROSE
   ============================================ */
.modal-close:hover {
  background: #1e3a8a;
}

[data-theme="light"] .modal-close:hover {
  background: #be185d;
}

/* ============================================
   MOBILE MENU TOGGLE - BLUE/ROSE HOVER
   ============================================ */
.mobile-toggle:hover {
  background: rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .mobile-toggle:hover {
  background: rgba(190, 24, 93, 0.1);
}

/* ============================================
   FOOTER LEGAL LINKS - BLUE/ROSE HOVER
   ============================================ */
.footer-legal-links a:hover {
  color: #1e3a8a;
}

[data-theme="light"] .footer-legal-links a:hover {
  color: #be185d;
}

/* ============================================
   RECIPE PRINT FEATURE - STYLES
   Add this to the END of your styles.css file
   ============================================ */

/* ------------------------------
   PRINT BUTTON STYLING
------------------------------ */
.recipe-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  text-decoration: none;
}

[data-theme="light"] .btn-print {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  box-shadow: 0 4px 15px rgba(190, 24, 93, 0.3);
}

.btn-print:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
}

[data-theme="light"] .btn-print:hover {
  box-shadow: 0 6px 25px rgba(190, 24, 93, 0.4);
}

.btn-print svg {
  width: 20px;
  height: 20px;
}

.btn-print:active {
  transform: translateY(0);
}

/* ------------------------------
   PRINT-SPECIFIC STYLES
   These only apply when printing
------------------------------ */
@media print {
  /* Hide everything except recipe content */
  body * {
    visibility: hidden;
  }

  #recipe_detail,
  #recipe_detail * {
    visibility: visible;
  }

  #recipe_detail {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  /* Hide elements that shouldn't print */
  header,
  .theme-toggle,
  .recipe-actions,
  .rating-widget,
  .btn-reply,
  .comment-form,
  #recipe_comments,
  footer,
  .nav-cta,
  .btn-print,
  .btn,
  button {
    display: none !important;
    visibility: hidden !important;
  }

  /* Reset page margins */
  @page {
    margin: 1.5cm;
    size: auto;
  }

  body {
    margin: 0;
    padding: 0;
    background: white;
    color: black;
  }

  /* Recipe container */
  .recipe-detail {
    background: white;
    padding: 0;
    max-width: 100%;
    font-family: 'Georgia', serif;
  }

  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Recipe header */
  .recipe-header {
    display: block;
    margin-bottom: 2rem;
    page-break-inside: avoid;
  }

  .recipe-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 2px solid #333;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: white;
    color: black;
  }

  .recipe-detail-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: black;
    font-weight: bold;
    border-bottom: 3px solid #333;
    padding-bottom: 0.5rem;
  }

  .recipe-detail-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
  }

  .recipe-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-size: 0.875rem;
  }

  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .meta-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #666;
  }

  .meta-value {
    font-size: 0.9rem;
    color: black;
  }

  /* Recipe image - reduced size for printing */
  .recipe-header-image {
    margin: 1rem 0;
    max-width: 400px;
    page-break-inside: avoid;
  }

  .recipe-header-image img {
    width: 100%;
    height: auto;
    border: 2px solid #333;
    border-radius: 8px;
  }

  /* Info cards */
  .recipe-info-cards {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    page-break-inside: avoid;
  }

  .info-card {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #333;
    border-radius: 8px;
    text-align: center;
    background: white;
  }

  .info-card svg {
    display: none; /* Hide icons in print */
  }

  .info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: #666;
  }

  .info-value {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
  }

  /* Recipe body */
  .recipe-body {
    display: block;
  }

  .recipe-main {
    width: 100%;
  }

  .recipe-sidebar {
    display: none; /* Hide sidebar in print */
  }

  /* Sections */
  .recipe-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
  }

  .section-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: black;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
  }

  .section-heading::after {
    display: none; /* Remove decorative element */
  }

  /* Ingredients list */
  .ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ingredients-list li {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    position: relative;
    page-break-inside: avoid;
  }

  .ingredients-list li::before {
    content: '☐'; /* Checkbox for print */
    position: absolute;
    left: 0.5rem;
    font-size: 1.25rem;
    color: #333;
    font-weight: normal;
  }

  /* Instructions list */
  .instructions-list {
    list-style: none;
    counter-reset: instruction;
    padding: 0;
    margin: 0;
  }

  .instructions-list li {
    counter-increment: instruction;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-left: 3px solid #333;
    border-radius: 4px;
    background: white;
    position: relative;
    page-break-inside: avoid;
  }

  .instructions-list li::before {
    content: counter(instruction);
    position: absolute;
    left: 0.75rem;
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    background: white;
    color: black;
  }

  /* Star ratings - convert to text */
  .recipe-rating-large {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .star {
    color: #333;
    font-size: 1rem;
  }

  .star.filled {
    color: black;
  }

  .rating-value {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #666;
  }

  /* Print header/footer - add recipe title to every page */
  @page {
    @top-center {
      content: "The Recipe Files";
      font-size: 10pt;
      color: #999;
    }
    @bottom-center {
      content: counter(page);
      font-size: 10pt;
      color: #999;
    }
  }

  /* Add source URL at the bottom */
  .recipe-detail::after {
    content: "Source: " attr(data-url);
    display: block;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
    font-size: 0.75rem;
    color: #666;
    page-break-inside: avoid;
  }

  /* Ensure proper page breaks */
  .recipe-header,
  .recipe-info-cards,
  .recipe-section {
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  /* Remove shadows and fancy effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ensure black text on white background */
  p, li, span, div {
    color: black !important;
    background: transparent !important;
  }
}

/* ------------------------------
   PRINT PREVIEW MODAL (Optional)
   For showing print preview before printing
------------------------------ */
.print-preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  padding: 2rem;
  overflow-y: auto;
}

.print-preview-modal.active {
  display: block;
}

.print-preview-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.print-preview-actions {
  position: sticky;
  top: 0;
  background: white;
  padding: 1rem;
  border-bottom: 2px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  z-index: 10;
}

.print-preview-actions button {
  margin-left: 0.5rem;
}

/* ------------------------------
   MOBILE RESPONSIVE PRINT BUTTON
------------------------------ */
@media (max-width: 768px) {
  .recipe-actions {
    flex-direction: column;
  }

  .btn-print {
    width: 100%;
    justify-content: center;
  }
}