/* ============================================
   GelatinTrick.org - Global Stylesheet
   Theme: Clean Medical / Health & Wellness
   ============================================ */

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

:root {
  --primary: #0a8f6c;
  --primary-dark: #067a5b;
  --primary-light: #e8f5f0;
  --accent: #ff6b35;
  --accent-dark: #e55a28;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-alt: #f7faf9;
  --bg-section: #f0f7f4;
  --border: #e0e8e4;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --content-width: 800px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text); line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
h4 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
p { margin-bottom: 1.2rem; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.content-wrap { max-width: var(--content-width); margin: 0 auto; }
.site-main { display: block; padding: 1rem 0 3rem; }
.content-article { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; font-size: 1.05rem; }
.content-article h1 { color: var(--primary-dark); }
.content-article h2 { color: var(--primary-dark); border-bottom: 2px solid var(--primary-light); padding-bottom: 0.5rem; margin-top: 2rem; }
.content-article h3 { color: var(--text); margin-top: 1.5rem; }
.content-article ul, .content-article ol { margin: 1rem 0 1.5rem 1.5rem; }
.content-article li { margin-bottom: 0.5rem; }
.content-article p { margin: 0 0 1rem; }
.content-article .toc { background: var(--primary-light); border-radius: var(--radius); padding: 1rem 1.5rem; margin: 1.5rem 0; }
.content-article .toc h2 { border: none; padding: 0; margin: 0 0 0.5rem; font-size: 1.1rem; }

/* ============ HEADER / NAV ============ */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.logo span { color: var(--accent); }

/* Nav */
.main-nav { display: flex; gap: 0; }
.main-nav a {
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, #fef9f4 100%);
  padding: 4rem 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--text);
  max-width: 750px;
  margin: 0 auto 1.2rem;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-light);
}
.hero-badge svg { width: 18px; height: 18px; fill: var(--primary); }

/* CTA Buttons */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,107,53,0.35);
}
.cta-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.45); }

.cta-btn-secondary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}
.cta-btn-secondary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* ============ CONTENT SECTIONS ============ */
.section { padding: 3.5rem 20px; }
.section-alt { background: var(--bg-alt); }
.section-green { background: var(--bg-section); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { color: var(--primary-dark); }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0.5rem auto 0; }

/* Article Content */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 1.05rem;
}
.article-content h2 { color: var(--primary-dark); border-bottom: 2px solid var(--primary-light); padding-bottom: 0.5rem; }
.article-content h3 { color: var(--text); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.highlight-box h3 { color: var(--primary-dark); margin-top: 0; }

.warning-box {
  background: #fff8f0;
  border: 1px solid #ffa940;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.warning-box h4 { color: #d4700a; margin-top: 0; }

/* Info Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 0.8rem; }
.card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1rem; }
.card a { font-weight: 600; font-size: 0.9rem; }
.card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--primary); }

/* Recipe Card */
.recipe-card {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}
.recipe-card h3 { color: var(--primary); font-size: 1.5rem; text-align: center; margin-bottom: 1.5rem; }
.recipe-steps { counter-reset: step; }
.recipe-steps li {
  counter-increment: step;
  list-style: none;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.2rem;
}
.recipe-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Image Placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e8f0ed 100%);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 1.5rem 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.img-placeholder svg { width: 60px; height: 60px; fill: var(--primary); opacity: 0.5; margin-bottom: 1rem; }
.img-placeholder p { color: var(--text-muted); font-size: 0.9rem; }

/* SVG Illustration */
.illustration {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  display: block;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table thead { background: var(--primary); color: #fff; }
.data-table th { padding: 1rem; text-align: left; font-weight: 600; font-family: var(--font); }
.data-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) { background: var(--bg-alt); }
.data-table tr:hover { background: var(--primary-light); }

/* FAQ */
.faq-list { max-width: var(--content-width); margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); font-weight: 300; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item.active .faq-answer { padding: 1rem 1.5rem; max-height: 500px; }

/* Testimonial */
.testimonial {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.testimonial-author { font-weight: 700; color: var(--primary-dark); margin-top: 1rem; font-size: 0.9rem; }
.testimonial-stars { color: #ffc107; font-size: 1.1rem; letter-spacing: 2px; }

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* Author Box */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
}
.author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 0.3rem; }
.author-info p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Internal Link Boxes */
.related-articles {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}
.related-articles h3 { color: var(--primary-dark); margin-bottom: 1rem; text-align: center; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.related-link {
  display: block;
  background: var(--bg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.related-link:hover { border-color: var(--primary); background: var(--primary-light); }

/* TOC */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc h4 { margin: 0 0 1rem; color: var(--primary-dark); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.toc li:last-child { border-bottom: none; }
.toc a { font-size: 0.95rem; color: var(--text); }
.toc a:hover { color: var(--primary); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 20px;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-section .cta-btn { background: #fff; color: var(--primary-dark); }
.cta-section .cta-btn:hover { background: #f0f0f0; color: var(--primary-dark); }

/* ============ FOOTER ============ */
.site-footer {
  background: #1a2332;
  color: #ccc;
  padding: 3rem 20px 1.5rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2d3a4a;
}
.footer-about h3, .footer-col h4 { color: #fff; margin-bottom: 1rem; font-family: var(--font); }
.footer-about p { font-size: 0.9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #aab; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #778;
}
.footer-bottom a { color: #9aa; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 2.5rem 15px; }
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 2.5rem 15px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.active { display: flex; }
  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .cta-btn { padding: 0.85rem 1.8rem; font-size: 1rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Main Content & Post Content (about, contact, disclaimer pages) */
.main-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 3rem;
}
.post-content {
  font-size: 1.05rem;
}
.post-content h1 { margin-bottom: 1.5rem; }
.post-content h2 { color: var(--primary-dark); border-bottom: 2px solid var(--primary-light); padding-bottom: 0.5rem; }
.post-content section { margin-bottom: 2rem; }
.post-content ul { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content .intro-text { font-size: 1.1rem; color: var(--text-light); line-height: 1.8; }

/* Contact Form */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,143,108,0.1);
}
.form-group.checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-group.checkbox input { margin-top: 0.3rem; }
.form-group.checkbox label { font-weight: 400; font-size: 0.9rem; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; }

/* CTA Button (alternate class name used on some pages) */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,107,53,0.35);
  border: none;
  cursor: pointer;
}
.cta-button:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.45); }

/* Inline CTA banner */
.inline-cta {
  background: linear-gradient(135deg, #fff8f0, #fef3ec);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.inline-cta p { color: var(--text); margin-bottom: 1rem; }

/* Schema/SEO hidden content */
.schema-data { display: none; }

/* Print */
@media print {
  .site-header, .site-footer, .cta-btn, .cta-section { display: none; }
  body { color: #000; background: #fff; }
}
