/* ============================================
   FOOD WORLD - UNIFIED CSS SYSTEM
   Mobile-First Responsive Design
   ============================================ */

/* Google Fonts - Consolidated Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
  /* Color Palette */
  --primary-color: #c7871c;
  --secondary-color: #f1bd78;
  --accent-color: #86373e;
  --cream: #f7efe6;
  --light-cream: #f3d7c4;
  --text-dark: #2b2b2b;
  --text-light: #666;
  --text-white: #ffffff;
  --glass: rgba(255,255,255,0.55);
  --glow: rgba(255,240,230,0.65);
  --shadow-light: rgba(0,0,0,0.1);
  --shadow-medium: rgba(0,0,0,0.15);
  --shadow-dark: rgba(0,0,0,0.2);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* Breakpoints */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --large: 1200px;
  
  /* Container */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #ffffff 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container System */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 576px) {
  .container {
    max-width: var(--container-sm);
    padding: 0 var(--spacing-md);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 992px) {
  .container {
    max-width: var(--container-lg);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* ============================================
   NAVIGATION SYSTEM
   ============================================ */

/* Top Navigation Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-medium);
  transition: all 0.3s ease;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-white);
  font-weight: 600;
  font-size: 1.2rem;
  font-family: var(--font-secondary);
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* Search Container */
.search-container {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-container input[type="text"] {
  width: 90%;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 2.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 25px;
  background: rgba(255,255,255,0.9);
  outline: none;
  font-size: 0.9rem;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.search-container input[type="text"]:focus {
  background: var(--text-white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(199,135,28,0.1);
}

.search-container input[type="text"]::placeholder {
  color: var(--text-light);
}

#search-icon {
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

#clear-btn {
  position: absolute;
  right: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  display: none;
  user-select: none;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.8);
}

#search:not(:placeholder-shown) ~ #clear-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

#clear-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

#search:focus ~ #search-icon {
  color: var(--primary-color);
}

/* Suggestions Dropdown */
.suggestions {
  position: fixed;
  top: 80px;
  background: var(--text-white);
  border-radius: var(--radius-md);
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 32px var(--shadow-dark);
  z-index: 2000;
  display: none;
  width: 280px;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.suggestions div {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.suggestions div:last-child {
  border-bottom: none;
}

.suggestions div:hover {
  background: var(--cream);
  color: var(--accent-color);
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  height: calc(100vh - 70px);
  width: 0;
  background: var(--text-white);
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.3s ease;
  z-index: 999;
  box-shadow: 2px 0 20px var(--shadow-dark);
  border-right: 1px solid rgba(0,0,0,0.1);
}

.sidebar.active {
  width: 280px;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-secondary);
}

.sidebar a:hover {
  background: var(--cream);
  color: var(--accent-color);
  transform: translateX(5px);
}

.sidebar a i {
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* ============================================
   HERO SECTION (INDEX.HTML)
   ============================================ */

.page-surface {
  width: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251,239,230,0.95), rgba(243,215,196,0.95)),
              radial-gradient(1000px 450px at 90% 85%, rgba(255,255,255,0.14), transparent 8%),
              linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.01));
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px var(--shadow-medium);
  backdrop-filter: blur(10px);
  margin: var(--spacing-md);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  max-width: var(--container-xl);
  width: 100%;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-copy {
  text-align: center;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-copy {
    text-align: left;
  }
}

.eyebrow {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 25px;
  background: var(--glass);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--accent-color);
  font-family: var(--font-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-copy h1 {
  font-size: 2.5rem;
  margin: 0 0 var(--spacing-md);
  line-height: 1.1;
  font-weight: 700;
  color: var(--accent-color);
  font-family: var(--font-secondary);
}

@media (min-width: 768px) {
  .hero-copy h1 {
    font-size: 3.5rem;
  }
}

.hero-copy .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 var(--spacing-lg);
  color: var(--text-dark);
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  box-shadow: 0 8px 25px rgba(134,55,62,0.3);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-white);
  font-size: 1rem;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(134,55,62,0.4);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.cta:focus {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

/* Floating Stage */
.floating-stage {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .floating-stage {
    height: 500px;
  }
}

.ground-shadow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: 60%;
  height: 80px;
  background: radial-gradient(closest-side, rgba(0,0,0,0.15), transparent 60%);
  filter: blur(20px);
  z-index: 2;
}

.floating {
  position: absolute;
  transform-origin: center center;
  transition: filter 0.3s ease;
  will-change: transform, filter;
  z-index: 3;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.floating img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px var(--shadow-medium);
  transition: all 0.3s ease;
}

.floating::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  border-radius: var(--radius-lg);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 40px var(--glow);
}

.floating:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.floating:hover img {
  transform: scale(1.05);
  box-shadow: 0 20px 50px var(--shadow-dark);
}

.floating:focus {
  outline: 3px solid var(--glow);
  outline-offset: 6px;
}

/* Depth Sizes */
.depth-1 { width: 120px; height: 120px; }
.depth-2 { width: 150px; height: 150px; }
.depth-3 { width: 180px; height: 180px; }
.depth-4 { width: 100px; height: 100px; }

@media (min-width: 768px) {
  .depth-1 { width: 140px; height: 140px; }
  .depth-2 { width: 180px; height: 180px; }
  .depth-3 { width: 220px; height: 220px; }
  .depth-4 { width: 120px; height: 120px; }
}

/* ============================================
   MAIN CONTENT SECTIONS
   ============================================ */

.main-content {
  margin-top: 90px;
  min-height: calc(100vh - 90px);
  padding: var(--spacing-lg) 0;
}

/* Category Buttons */
.category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
  padding: 0 var(--spacing-md);
}

.cat-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: var(--text-white);
  border-radius: 25px;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(134,55,62,0.3);
}

.cat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(134,55,62,0.4);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.cat-btn:focus {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
}

/* ============================================
   RECIPE GRID SYSTEM
   ============================================ */

.recipe-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.recipe-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  background: var(--text-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-light);
}

.recipe-card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.recipe-card {
  width: 100%;
  cursor: pointer;
}

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

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

.recipe-card h3 {
  padding: var(--spacing-md);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-dark);
  text-align: center;
}

/* Food Grid (for categories) */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.food-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  background: var(--text-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-light);
  cursor: pointer;
}

.food-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.food-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.food-card h3 {
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: var(--text-dark);
  text-align: center;
}

/* ============================================
   RECIPE PAGE STYLES
   ============================================ */

.recipe-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(135deg, var(--cream), var(--light-cream));
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) var(--spacing-md);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.recipe-header h1 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-secondary);
  font-weight: 700;
}

.recipe-header img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px var(--shadow-medium);
  margin: var(--spacing-md) 0;
}

.recipe-section {
  background: var(--text-white);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.recipe-section h2 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.recipe-section h2::before {
  content: " ";
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 2px;
}

.recipe-section ul, .recipe-section ol {
  margin-left: var(--spacing-lg);
  color: var(--text-dark);
  line-height: 1.8;
}

.recipe-section li {
  margin-bottom: var(--spacing-xs);
}

.recipe-section strong {
  color: var(--accent-color);
  font-weight: 600;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px var(--shadow-medium);
  margin: var(--spacing-md) 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* ============================================
   EDUCATIONAL CONTENT STYLES
   ============================================ */

.content-container {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.education-section {
  background: var(--text-white);
  padding: var(--spacing-xl);
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px var(--shadow-light);
}

.education-section h1 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: var(--spacing-xl);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 2.5rem;
}

.education-section h2 {
  color: var(--accent-color);
  margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--cream);
  padding-bottom: var(--spacing-sm);
}

.education-section h3 {
  color: var(--primary-color);
  margin: var(--spacing-lg) 0 var(--spacing-md) 0;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.3rem;
}

.education-section ul, .education-section ol {
  margin-left: var(--spacing-lg);
  line-height: 1.8;
  color: var(--text-dark);
}

.education-section li {
  margin-bottom: var(--spacing-xs);
}

.education-section p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  color: var(--text-dark);
}

.highlight {
  font-weight: 600;
  color: var(--accent-color);
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile Styles */
@media (max-width: 767px) {
  .topbar {
    height: 60px;
    padding: 0 var(--spacing-sm);
  }
  
  .logo-section {
    font-size: 1rem;
  }
  
  .toggle-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .search-container {
    max-width: 200px;
  }
  
  .search-container input[type="text"] {
    font-size: 0.8rem;
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) 2rem;
  }
  
  .suggestions {
    width: 200px;
    top: 70px;
  }
  
  .sidebar {
    top: 60px;
    height: calc(100vh - 60px);
  }
  
  .main-content {
    margin-top: 80px;
  }
  
  .page-surface {
    margin: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-sm);
    min-height: calc(100vh - 100px);
  }
  
  .hero-copy h1 {
    font-size: 2rem;
  }
  
  .hero-copy .lead {
    font-size: 1rem;
  }
  
  .cta {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .floating-stage {
    height: 300px;
  }
  
  .recipe-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }
  
  .food-grid {
    grid-template-columns: 1fr;
  }
  
  .recipe-header h1 {
    font-size: 2rem;
  }
  
  .education-section h1 {
    font-size: 2rem;
  }
  
  .education-section h2 {
    font-size: 1.5rem;
  }
  
  .education-section h3 {
    font-size: 1.1rem;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .recipe-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .recipe-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .food-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .recipe-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */

*:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--glow);
  outline-offset: 2px;
}

/* Mobile responsive navbar styling - Exact Pizza.html Mobile Styles */
@media (max-width: 767px) {
  .topbar {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    height: auto;
    min-height: 60px;
  }
  
  .logo-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .logo-section i {
    font-size: 18px;
  }
  
  .logo-section span {
    font-size: 14px;
    font-weight: 600;
  }
  
  .search-container {
    position: relative;
    max-width: 100%;
    margin: 0;
    flex: 1;
  }
  
  .search-container input[type="text"] {
    width: 100% !important;
    padding: 12px 45px 12px 45px !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    border-radius: 25px !important;
    background: rgba(255,255,255,0.95) !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  }
  
  .search-container input[type="text"]:focus {
    background: var(--text-white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(199,135,28,0.2), 0 4px 20px rgba(0,0,0,0.15) !important;
    outline: none !important;
  }
  
  .search-container input[type="text"]::placeholder {
    color: var(--text-light) !important;
    font-size: 13px !important;
  }
  
  #search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--primary-color) !important;
    font-size: 16px !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }
  
  #clear-btn {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 2 !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  #clear-btn:hover {
    background: var(--accent-color) !important;
    transform: translateY(-50%) scale(1.1) !important;
  }
  
  #search:not(:placeholder-shown) ~ #clear-btn {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .suggestions {
    position: fixed !important;
    top: 70px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    background: var(--text-white) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    z-index: 2000 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
  }
  
  .suggestions div {
    padding: 12px 16px !important;
    cursor: pointer !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    font-size: 14px !important;
  }
  
  .suggestions div:last-child {
    border-bottom: none !important;
  }
  
  .suggestions div:hover {
    background: var(--cream) !important;
    color: var(--accent-color) !important;
    padding-left: 20px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .topbar,
  .sidebar,
  .toggle-btn,
  .search-container,
  .cta,
  .floating-stage {
    display: none !important;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  .page-surface {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
