/* OnBelly.com - Health & Wellness Blog Styles */

/* CSS Variables for Theme */
:root {
  --primary-color: #2d8a6e;
  --primary-dark: #1e6b54;
  --primary-light: #4fb396;
  --secondary-color: #f4a261;
  --secondary-dark: #e08a3c;
  --accent-color: #e76f51;
  --text-dark: #2c3e50;
  --text-light: #5a6c7d;
  --text-muted: #8795a1;
  --bg-light: #fdfbf7;
  --bg-subtle: #f8f6f1;
  --bg-card: #ffffff;
  --border-color: #e8e4dd;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --gradient-primary: linear-gradient(135deg, #2d8a6e 0%, #4fb396 100%);
  --gradient-warm: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  --gradient-subtle: linear-gradient(180deg, #fdfbf7 0%, #f8f6f1 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--gradient-subtle);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

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

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

.container-narrow {
  max-width: 800px;
}

/* Header & Navigation */
header {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

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

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  padding: 4rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 138, 110, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 138, 110, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-warm {
  background: var(--gradient-warm);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
  color: white;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem 0;
  justify-content: center;
}

.category-pill {
  background: var(--bg-card);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.article-card-image {
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.article-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.article-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--primary-color);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.article-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-card-title a {
  color: var(--text-dark);
}

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

.article-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Article Page */
.article-header {
  background: var(--gradient-primary);
  padding: 4rem 0;
  color: white;
  text-align: center;
}

.article-header h1 {
  color: white;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.article-content {
  background: var(--bg-card);
  padding: 3rem;
  margin: -2rem auto 2rem;
  max-width: 800px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.article-content h2 {
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.article-content h3 {
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-widget li:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

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

.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

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

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

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

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Page Header */
.page-header {
  background: var(--gradient-primary);
  padding: 3rem 0;
  text-align: center;
  color: white;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* Static Page Content */
.page-content {
  background: var(--bg-card);
  padding: 3rem;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-content h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Related Articles */
.related-articles {
  padding: 3rem 0;
  background: var(--bg-subtle);
}

/* Newsletter */
.newsletter-section {
  background: var(--gradient-primary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  margin: 2rem 0;
}

.newsletter-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.newsletter-form button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--secondary-dark);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

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

/* Image with gradient overlay colors for different categories */
.article-card-image.nutrition { background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); }
.article-card-image.fitness { background: linear-gradient(135deg, #eb5757 0%, #f2994a 100%); }
.article-card-image.mental-health { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.article-card-image.wellness { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.article-card-image.sleep { background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%); }
.article-card-image.yoga { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.article-card-image.diet { background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%); }
.article-card-image.supplements { background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%); }
.article-card-image.skincare { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.article-card-image.beauty { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.article-card-image.weight-loss { background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%); }
.article-card-image.biohacking { background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%); }
.article-card-image.home-remedies { background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%); }

/* Responsive Design */
@media (max-width: 992px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

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

  .hero {
    padding: 3rem 0;
  }

  .article-content {
    padding: 1.5rem;
    margin: -1rem 1rem 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Utility Classes */
.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-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Print Styles */
@media print {
  header, footer, .sidebar, .newsletter-section {
    display: none;
  }

  .article-content {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
}
