/* Main Stylesheet for HealthSnackIdeas.com
   Optimized for performance and SEO
   Last updated: 2025-05-06
*/

:root {
  --primary: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: #c8e6c9;
  --accent: #ff9800;
  --accent-dark: #f57c00;
  --text-dark: #333333;
  --text-light: #757575;
  --background: #ffffff;
  --background-alt: #f5f5f5;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  text-align: center;
  line-height: 1.4;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Header Styles */
header {
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 0;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
}

.logo h1 span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 10px 5px;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background-color: var(--primary-light);
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: var(--shadow);
  padding-right: 60px;
}

.search-container button {
  position: absolute;
  right: 5px;
  top: 5px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container button:hover {
  background-color: var(--primary-dark);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--background-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Styles */
.card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.card-meta span {
  display: flex;
  align-items: center;
}

.card-meta svg {
  margin-right: 5px;
}

.card-description {
  margin-bottom: 15px;
  color: var(--text-light);
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.card-tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-footer {
  margin-top: auto;
}

/* Feature Box */
.feature-box {
  padding: 30px;
  background-color: var(--background);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 2.5rem;
}

.feature-box h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-box p {
  color: var(--text-light);
}

/* Article Styles */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.article-header {
  margin-bottom: 30px;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.article-meta {
  color: var(--text-light);
  margin-bottom: 20px;
}

.article-image {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
}

.article-content img {
  margin: 20px 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.article-tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Table of Contents */
.toc {
  background-color: var(--background-alt);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.toc h3 {
  margin-bottom: 15px;
}

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

.toc ul li {
  margin-bottom: 10px;
}

.toc ul li a {
  color: var(--text-dark);
}

.toc ul li a:hover {
  color: var(--primary);
}

/* FAQ Section */
.faq {
  margin: 40px 0;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.faq-answer {
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s;
}

.footer-social a:hover {
  background-color: var(--accent);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links ul {
  list-style: none;
  margin-left: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Subscription Form */
.subscription {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background);
}

.subscription-container {
  max-width: 600px;
  margin: 0 auto;
}

.subscription h2 {
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.subscription p {
  margin-bottom: 30px;
  color: var(--text-light);
}

.subscription-form {
  display: flex;
  margin-bottom: 20px;
}

.subscription-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.subscription-form button {
  padding: 15px 30px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.subscription-form button:hover {
  background-color: var(--primary-dark);
}

.subscription-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  background-color: var(--background-alt);
  margin-bottom: 30px;
}

.breadcrumbs ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
}

.breadcrumbs ul li {
  display: flex;
  align-items: center;
}

.breadcrumbs ul li:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: var(--text-light);
}

.breadcrumbs ul li a {
  color: var(--primary);
}

.breadcrumbs ul li:last-child a {
  color: var(--text-light);
  pointer-events: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pagination ul {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
}

.pagination ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background);
  color: var(--text-dark);
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: background-color 0.3s;
}

.pagination ul li a:hover, .pagination ul li a.active {
  background-color: var(--primary);
  color: white;
}

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  header, footer, nav, .search-container, .subscription {
    display: none;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .article {
    max-width: 100%;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 500px;
    page-break-inside: avoid;
  }
  
  p, blockquote, ul, ol, dl, table {
    page-break-inside: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  nav {
    margin-top: 20px;
  }
  
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .subscription-form {
    flex-direction: column;
  }
  
  .subscription-form input {
    border-radius: 50px;
    margin-bottom: 10px;
  }
  
  .subscription-form button {
    border-radius: 50px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 50px 0;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
}

/* Accessibility Enhancements */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: more) {
  :root {
    --primary: #006400;
    --primary-dark: #004d00;
    --primary-light: #e6f5e6;
    --accent: #cc7000;
    --text-dark: #000000;
    --text-light: #333333;
  }
  
  .card, .feature-box {
    border: 1px solid #000;
  }
  
  a {
    text-decoration: underline;
  }
}

/* -------------------- */
/* Additional CSS from index.html */
/* -------------------- */

/* Categories Section */
.categories {
  padding: 80px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.category-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

.category-content {
  padding: 20px;
  text-align: center;
}

.category-content h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.category-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* Featured Snacks */
.featured-snacks {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.snacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.snack-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.snack-card:hover {
  transform: translateY(-5px);
}

.snack-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.snack-content {
  padding: 20px;
}

.snack-content h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.snack-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.snack-meta span {
  display: flex;
  align-items: center;
}

.snack-meta svg {
  margin-right: 5px;
}

.snack-description {
  margin-bottom: 15px;
  color: var(--text-light);
}

.snack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.snack-tag {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Quick Ideas Section */
.quick-ideas {
  padding: 80px 0;
}

.ideas-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.idea-card {
  display: flex;
  align-items: center;
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.idea-card:hover {
  transform: translateX(5px);
}

.idea-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.idea-content {
  padding: 20px;
  flex-grow: 1;
}

.idea-content h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.idea-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.nutrition-facts {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.nutrition-fact {
  display: flex;
  align-items: center;
}

.nutrition-fact svg {
  margin-right: 5px;
}

/* Plant-Based Snack Spotlight Section */
/* Reusing the featured-snacks styling for a consistent look */
#plant-based {
  padding: 80px 0;
}

/* Nutrition Tips */
.nutrition-tips {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tip-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform 0.3s;
}

.tip-card:hover {
  transform: translateY(-5px);
}

.tip-icon {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 2.5rem;
}

.tip-card h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.tip-card p {
  color: var(--text-light);
}

/* Mobile Menu Responsive Design */
@media (max-width: 768px) {
  nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  
  .idea-card {
    flex-direction: column;
    text-align: center;
  }
  
  .idea-img {
    width: 100%;
    height: 150px;
  }
  
  .nutrition-facts {
    justify-content: center;
  }
}