﻿/* -------------------
   Base Typography & Layout
-------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fffbea;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Main content area */
main {
  margin-left: 220px;
  max-width: 800px;
  padding: 2rem 2rem 2rem 1rem;
  margin-top: 1rem;
}

/* -------------------
   Header
-------------------- */
header {
  margin-left: 220px;
  padding: 20px;
  background: linear-gradient(135deg, #f7d821, #ffd700);
  color: #333;
  border-radius: 12px;
}

header h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2.5rem;
  font-weight: 700;
}

header p {
  color: #555;
  font-style: italic;
  font-size: 1.1rem;
}

/* -------------------
   Desktop Logo (Top Left)
-------------------- */
.desktop-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 900;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.desktop-logo img {
  height: 50px;
  width: auto;
}

/* -------------------
   Access Controls (Top Right)
-------------------- */
.access-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.access-controls span {
  margin-right: 1rem;
  color: #666;
  font-size: 0.9rem;
  white-space: nowrap;
}

.access-btn {
  background: #f57c00;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.access-btn:hover {
  background: #e56b00;
  transform: translateY(-1px);
}

/* -------------------
   Headings
-------------------- */
h1, h2, h3 {
  font-weight: 700;
  margin-top: 2rem;
}

h1 {
  color: #333;
}

h2 {
  color: #333;
  font-size: 1.6rem;
  border-bottom: 2px solid #f7d821;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  color: #6d4c41;
  font-size: 1.3rem;
}

/* -------------------
   Recipe Cards
-------------------- */
.recipe-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.recipe-card h3 {
  color: #f57c00;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ffe0b2;
  padding-bottom: 0.5rem;
}

.recipe-card.highlighted {
  border: 3px solid #9c27b0;
  box-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

/* -------------------
   Recipe Actions (Favorites + Stars)
-------------------- */
.recipe-actions {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  margin: 1rem -1.5rem -1.5rem -1.5rem;
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.recipe-actions button {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.recipe-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Favorite button styles */
.favorite-toggle {
  background: #e1bee7;
  color: #7b1fa2;
}

.favorite-toggle:hover {
  background: #d1a3d8;
}

.favorite-toggle.active {
  background: #9c27b0;
  color: white;
}

/* Star button styles */
.doodle-star button {
  background: linear-gradient(135deg, #ffcc80, #ffe0b2);
  color: #f57c00;
  box-shadow: 0 2px 6px rgba(245, 124, 0, 0.2);
}

.doodle-star button:hover {
  background: linear-gradient(135deg, #ffb74d, #ffcc80);
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

/* -------------------
   Tags
-------------------- */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  align-items: center;
}

.tag {
  display: inline-block;
  white-space: nowrap;
  padding: 0.4em 0.75em;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tag colors */
.tag.green { background-color: #66bb6a; }
.tag.blue { background-color: #42a5f5; }
.tag.skyblue { background-color: #81d4fa; }
.tag.navy { background-color: #283593; }
.tag.teal { background-color: #008080; }
.tag.aqua { background-color: #00bcd4; }
.tag.lightgreen { background-color: #aed581; }
.tag.orange { background-color: #ff7043; }
.tag.red { background-color: #ef5350; }
.tag.gray { background-color: #b0bec5; }
.tag.yellow { background-color: #f7d821; color: #333; }
.tag.brown { background-color: #8d6e63; }
.tag.beige { background-color: #f5f5dc; color: #333; }
.tag.olive { background-color: #8bc34a; }
.tag.pink { background-color: #ec407a; }
.tag.lavender { background-color: #e1bee7; }
.tag.hotpink { background-color: #ff69b4; }
.tag.gold { background-color: #ffd700; }
.tag.purple { background-color: #ba68c8; }

/* -------------------
   Nutrition Block
-------------------- */
.nutrition-block {
  background: #f5f5f5;
  border-left: 5px solid #f7d821;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  color: #333;
}

.nutri-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.nutri-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.nutri-list li {
  font-size: 0.9rem;
  color: #333;
}

/* -------------------
   TOC Sidebar
-------------------- */
#sidebar {
  position: fixed;
  top: 140px;
  left: 20px;
  width: 170px;
  background: #fffbea;
  border: 2px solid #f7d821;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 999;
}

#sidebar summary {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.5rem;
  color: #333;
}

#sidebar ul {
  list-style: none;
  padding-left: 0;
}

#sidebar ul li {
  margin: 0.3rem 0;
}

#sidebar a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 0.3rem 0;
  transition: all 0.2s ease;
  border-radius: 4px;
}

#sidebar a:hover {
  color: #333;
  font-weight: bold;
  background-color: #f7d821;
  padding: 0.3rem 0.5rem;
}

/* -------------------
   Modals
-------------------- */
.rating-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
  font-family: inherit;
}

.rating-star {
  cursor: pointer;
  font-size: 3rem;
  margin: 0 0.3rem;
  opacity: 0.3;
  transition: all 0.3s ease;
  user-select: none;
}

.rating-star:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.rating-star.active {
  opacity: 1;
  transform: scale(1.2);
}

/* -------------------
   Success Messages & Animations
-------------------- */
.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  z-index: 15000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 300px;
  font-weight: 600;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes starFloat {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  50% { opacity: 1; transform: translate(-50%, -70%) scale(1.3); }
  100% { opacity: 0; transform: translate(-50%, -90%) scale(1); }
}

/* -------------------
   Mobile Menu Bar
-------------------- */
.mobile-menu-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f7d821, #ffd700);
  border-top: 2px solid #e6c91e;
  padding: 0.5rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  justify-content: space-around;
  align-items: center;
}

.menu-btn {
  background: none;
  border: none;
  color: #333;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 60px;
  text-align: center;
}

.menu-btn:hover,
.menu-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.menu-icon {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.menu-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

/* TOC Overlay */
.toc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  padding: 2rem;
}

.toc-popup {
  background: white;
  border-radius: 16px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin: auto;
  max-width: 400px;
}

.toc-header {
  background: #f7d821;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.toc-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  color: #333;
  border-radius: 4px;
}

.close-btn:hover {
  background: rgba(0,0,0,0.1);
}

.toc-content {
  padding: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

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

.toc-content ul li {
  margin: 0.5rem 0;
}

.toc-content a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.toc-content a:hover {
  background: #f7d821;
  border-left-color: #f57c00;
  font-weight: 600;
}

.toc-content ul ul {
  margin-left: 1rem;
}

.toc-content ul ul a {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

/* -------------------
   Section Anchors
-------------------- */
section[id] {
  scroll-margin-top: 2rem;
}

/* -------------------
   Mobile Responsive
-------------------- */
@media (max-width: 768px) {
  /* Hide desktop elements */
  .desktop-logo {
    display: none;
  }
  
  .access-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
}

.access-controls.show {
  display: block !important;
}
/* Sign In Button */
.sign-in-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.sign-in-button {
  background: rgba(255, 255, 255, 0.95);
  color: #2d5016;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  border: 2px solid #2d5016;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.sign-in-button:hover {
  background: #2d5016;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.access-header {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}
  
  #sidebar {
    display: none !important;
  }
  
  /* Show mobile menu */
  .mobile-menu-bar {
    display: flex !important;
  }
  
  /* Reset layout for mobile */
  main {
    margin-left: 0;
    padding: 1rem 1rem 80px 1rem;
    max-width: none;
    margin-top: 120px;
  }
  
  header {
    margin-left: 0;
    padding: 0.75rem;
    text-align: center;
  }
  
  header h1 {
    font-size: 1.3rem !important;
    line-height: 1.2;
  }
  
  header p {
    font-size: 0.8rem !important;
    margin: 0.25rem 0 0 0 !important;
  }
  
  /* Mobile recipe cards */
  .recipe-card {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .recipe-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .recipe-actions button {
    min-width: auto;
    width: 100%;
  }
  
  /* Mobile tags */
  .tag-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  /* Mobile modals */
  .rating-modal .modal-content {
    padding: 1.5rem !important;
    margin: 1rem !important;
    max-width: 90% !important;
  }
  
  .rating-star {
    font-size: 2.2rem !important;
    margin: 0 0.1rem !important;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.15rem;
  }
}

/* Desktop only styles */
@media (min-width: 769px) {
  .mobile-menu-bar {
    display: none !important;
  }
  
  .toc-overlay {
    display: none !important;
  }
}
/* DESKTOP HEADER WITH HAMBURGER MENU */
/* SIMPLE DESKTOP HEADER - KEEP IT MINIMAL */
.desktop-header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.desktop-logo {
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.desktop-logo img {
  height: 50px;
  width: auto;
}

/* Remove all the complex hamburger menu CSS I added */

.menu-content {
  padding: 1.5rem;
}

.welcome-section {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.welcome-text {
  color: #666;
  font-weight: 600;
  font-size: 1rem;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

.menu-item:hover {
  background: #f7d821;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.menu-text {
  flex: 1;
  text-align: left;
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideInLeft {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* Hide on mobile */
@media (max-width: 768px) {
  .desktop-header {
    display: none !important;
  }
  
  .desktop-menu-overlay {
    display: none !important;
  }
}

/* HAMBURGER MENU STYLES - ADD THESE TO style.css */
.hamburger-menu {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
  margin-left: 80px; /* Position next to logo */
}

.hamburger-menu span {
  width: 24px;
  height: 3px;
  background: #f57c00;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.desktop-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
}

.desktop-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.menu-header {
  background: linear-gradient(135deg, #f7d821, #ffd700);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e6c91e;
}

.menu-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.close-menu-btn:hover {
  background: rgba(0,0,0,0.1);
}