/* Potty Training Mama - Design System */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Pacifico&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* CSS Variables */
:root {
  --pink: #FADADD;
  --pink-dark: #f5c6cb;
  --pink-accent: #e8a5ab;
  --cream: #FFF8F0;
  --sage: #B2C9AD;
  --sage-dark: #9ab894;
  --white: #ffffff;
  --text-dark: #2d2d2d;
  --text-muted: #6b7280;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

a {
  color: #e8707a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #d45a64;
}

img {
  max-width: 100%;
  height: auto;
}

/* Brand Header */
.brand-header {
  background: var(--pink);
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--pink-dark);
}

.brand-header .brand-name {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: #d45a64;
  margin: 0;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.brand-header .tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* Navigation */
.main-nav {
  background: var(--white);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #eee;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.main-nav a {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover {
  color: #d45a64;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink-accent);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Image */
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
}

.hero-wrapper {
  position: relative;
  margin-bottom: 0;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* Main Content */
.main-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Article Header */
.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Author Byline */
.author-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
}

.author-info {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 700;
  color: var(--text-dark);
}

.author-date {
  color: var(--text-muted);
}

/* Quick Answer Box */
.quick-answer {
  background: var(--cream);
  border-left: 4px solid var(--sage);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.quick-answer-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
  display: block;
}

.quick-answer p {
  margin: 0;
  font-size: 1.05rem;
}

.quick-answer strong {
  color: var(--text-dark);
}

/* Section Headers */
.main-content h2 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink);
}

/* Lists */
.main-content ul, .main-content ol {
  padding-left: 24px;
}

.main-content li {
  margin-bottom: 12px;
}

.main-content li strong {
  color: var(--text-dark);
}

/* Callout Box */
.callout {
  background: #FEF9E7;
  border-left: 4px solid #F4D03F;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

.callout strong {
  font-family: 'Nunito', sans-serif;
  display: block;
  margin-bottom: 8px;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.product-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #f9f9f9;
  flex-shrink: 0;
}

.product-card-content {
  flex: 1;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.product-card p {
  font-size: 0.95rem;
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-cta {
  display: inline-block;
  background: var(--pink);
  color: #d45a64;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 24px;
  transition: all 0.2s ease;
}

.product-cta:hover {
  background: var(--pink-dark);
  color: #c04a54;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Product Mention (inline) */
.product-mention {
  background: var(--cream);
  border: 1px solid #e5e7eb;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.product-mention p {
  margin: 0;
}

.product-mention a {
  font-weight: 600;
}

/* Related Questions - Pill Cards */
.related-questions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--pink);
}

.related-questions h2 {
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 20px;
}

.related-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-pill {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--pink-dark);
  padding: 12px 20px;
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.related-pill:hover {
  background: var(--pink);
  border-color: var(--pink-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: #d45a64;
}

/* Table of Contents */
.toc-wrapper {
  position: relative;
}

.toc-sidebar {
  display: none;
}

.toc-inline {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.toc-inline summary {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
}

.toc-inline ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.toc-inline li {
  margin-bottom: 8px;
}

.toc-inline a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toc-inline a:hover {
  color: #d45a64;
}

/* Footer */
.site-footer {
  background: linear-gradient(to bottom, var(--cream), var(--pink));
  padding: 48px 24px;
  text-align: center;
  margin-top: 64px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: #d45a64;
  margin-bottom: 16px;
}

.footer-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 8px 0;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--pink-dark);
}

.footer-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Homepage Specific */
.hero-home {
  background: linear-gradient(135deg, var(--pink) 0%, var(--cream) 100%);
  padding: 80px 24px;
  text-align: center;
}

.hero-home h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: #d45a64;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.hero-home .tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-home-image {
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 32px;
}

/* Article Grid */
.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  text-align: center;
  margin: 64px 0 32px;
  color: var(--text-dark);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.article-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-content {
  padding: 20px;
}

.article-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

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

.article-card h3 a:hover {
  color: #d45a64;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.article-card .read-more {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #d45a64;
}

/* About Section */
.about-section {
  background: var(--cream);
  padding: 64px 24px;
  margin: 64px 0;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--pink);
  margin-bottom: 24px;
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Newsletter CTA */
.newsletter-section {
  background: var(--pink);
  padding: 64px 24px;
  text-align: center;
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.newsletter-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid var(--pink-dark);
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--pink-accent);
}

.newsletter-form button {
  background: #d45a64;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: #c04a54;
  transform: translateY(-1px);
}

.newsletter-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Desktop TOC Sidebar */
@media (min-width: 1100px) {
  .toc-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
  }
  
  .toc-sidebar {
    display: block;
    position: sticky;
    top: 80px;
    width: 240px;
    flex-shrink: 0;
    height: fit-content;
    order: 2;
  }
  
  .toc-sidebar-inner {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 20px;
  }
  
  .toc-sidebar h3 {
    font-size: 0.9rem;
    margin: 0 0 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .toc-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .toc-sidebar li {
    margin-bottom: 8px;
  }
  
  .toc-sidebar a {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all 0.2s ease;
  }
  
  .toc-sidebar a:hover,
  .toc-sidebar a.active {
    color: #d45a64;
    border-left-color: var(--sage);
  }
  
  .toc-inline {
    display: none;
  }
  
  .article-main {
    flex: 1;
    min-width: 0;
  }
  
  .main-content {
    max-width: none;
    padding: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .brand-header .brand-name {
    font-size: 1.6rem;
  }
  
  .hero-image {
    height: 280px;
  }
  
  .article-header h1 {
    font-size: 1.7rem;
  }
  
  .main-content h2 {
    font-size: 1.2rem;
  }
  
  .product-card {
    flex-direction: column;
    text-align: center;
  }
  
  .product-card img {
    margin: 0 auto;
  }
  
  .related-pills {
    flex-direction: column;
  }
  
  .related-pill {
    text-align: center;
  }
  
  .hero-home h1 {
    font-size: 2.2rem;
  }
  
  .hero-home .tagline {
    font-size: 1.1rem;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    width: 100%;
  }
}

/* Print */
@media print {
  .main-nav,
  .toc-sidebar,
  .toc-inline,
  .related-questions,
  .site-footer,
  .newsletter-section {
    display: none;
  }
}
