/* BabyProCare Theme - Beautiful Baby & Parenting Design */

/* === CSS Variables === */
:root {
  --color-primary: #FF8C94;
  --color-primary-dark: #E87882;
  --color-secondary: #7EC8E3;
  --color-secondary-dark: #5DB5D4;
  --color-accent: #FFE5B4;
  --color-accent-light: #FFF4E0;
  --color-bg: #FFF8F5;
  --color-bg-warm: #FEF0EB;
  --color-card: #FFFFFF;
  --color-text: #4A4A4A;
  --color-text-light: #7A7A7A;
  --color-text-muted: #999999;
  --color-border: #F0E0D8;
  --color-border-light: #F5EBE6;
  --color-green: #8FD9A8;
  --color-green-light: #E8F5EC;
  --color-purple: #C8B5E3;
  --color-purple-light: #F0EBF8;
  
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 2px 8px rgba(255, 140, 148, 0.08);
  --shadow-md: 0 4px 16px rgba(255, 140, 148, 0.12);
  --shadow-lg: 0 8px 32px rgba(255, 140, 148, 0.15);
  
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

/* === Header & Navigation === */
.site-header {
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

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

.logo-icon {
  font-size: 1.5rem;
}

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

.nav-desktop a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-warm) 50%, var(--color-card) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(60px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(50px);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* === Category Pills === */
.categories-section {
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Category colors */
.pill-pregnancy {
  background: var(--color-purple-light);
  color: #8B6FBE;
  border-color: var(--color-purple);
}

.pill-baby {
  background: var(--color-green-light);
  color: #5BAF75;
  border-color: var(--color-green);
}

.pill-baby-health-and-wellness {
  background: #FFF0E0;
  color: #D4956A;
  border-color: #F5C99A;
}

.pill-parenting {
  background: #E0F0FF;
  color: #5A9FD4;
  border-color: #A3D4F7;
}

.pill-nutrition-and-diet {
  background: #F0FFF0;
  color: #6ABF6A;
  border-color: #A3D4A3;
}

.pill-baby-gear-essentials {
  background: #FFF0F0;
  color: #D47070;
  border-color: #F0B0B0;
}

.pill-default {
  background: var(--color-accent-light);
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* === Post Cards === */
.posts-section {
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border-light);
}

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

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-warm);
}

.post-card-image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-bg-warm));
}

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

.post-card-category {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

.post-card h3 a:hover {
  color: var(--color-primary);
}

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

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

.post-card-meta time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* === Single Post === */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.post-article {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border-light);
}

.post-categories {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-category-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--color-accent-light);
  color: var(--color-text);
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.post-featured-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

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

.post-content strong {
  color: var(--color-text);
  font-weight: 700;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* === List Page === */
.list-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.list-header {
  text-align: center;
  margin-bottom: 3rem;
}

.list-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.list-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* === Page Template === */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-article {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.page-article h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* === Footer === */
.site-footer {
  background: var(--color-text);
  color: white;
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* === Related Posts === */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border-light);
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* === Breadcrumbs === */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

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

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .header-container {
    height: 60px;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .post-article {
    padding: 1.5rem;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
  
  .page-article {
    padding: 1.5rem;
  }
  
  .page-article h1 {
    font-size: 1.75rem;
  }
}

/* === Utilities === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

/* === 404 Error Page === */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-emoji {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.error-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--color-card);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  border: 2px solid var(--color-primary);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
