/* ==========================================================================
   PORTAL BEM-ESTAR FEMININO - DESIGN SYSTEM & STYLES (FACEBOOK ADS COMPLIANT)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Warm Editorial Lifestyle */
  --bg-primary: #FAF7F5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F5EFEA;
  --bg-soft-accent: #EFE4DC;
  
  --text-main: #2D2523;
  --text-muted: #6E615D;
  --text-light: #A0938E;
  
  --accent-rose: #C88A7B;
  --accent-rose-hover: #B27668;
  --accent-sage: #5B7B6D;
  --accent-sage-light: #E7EFEB;
  --accent-gold: #D4A359;
  
  --border-subtle: #ECE4DE;
  --border-accent: #DBCDC4;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Layout & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(45, 37, 35, 0.04);
  --shadow-md: 0 8px 24px rgba(45, 37, 35, 0.08);
  --shadow-lg: 0 16px 40px rgba(45, 37, 35, 0.12);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-sage));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Compliance Notice Bar */
.compliance-top-bar {
  background-color: var(--accent-sage);
  color: #FFFFFF;
  font-size: 0.82rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.compliance-top-bar svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Header & Navigation */
.main-header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition-fast);
}

.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-sage));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-rose);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-rose);
  transition: width var(--transition-fast);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  width: 220px;
  transition: all var(--transition-fast);
}

.search-input:focus {
  width: 280px;
  border-color: var(--accent-rose);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(200, 138, 123, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
}

.hero-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.hero-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-image-wrapper img {
  transform: scale(1.04);
}

.category-tag {
  display: inline-block;
  background-color: var(--accent-sage-light);
  color: var(--accent-sage);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

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

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-rose);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 20px;
  transition: gap var(--transition-fast);
}

.read-more-btn:hover {
  gap: 14px;
  color: var(--accent-rose-hover);
}

/* Category Filter Bar */
.category-bar-section {
  max-width: 1200px;
  margin: 40px auto 24px;
  padding: 0 24px;
}

.category-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--text-main);
}

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

.pill-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover, .pill-btn.active {
  background-color: var(--accent-rose);
  color: #FFFFFF;
  border-color: var(--accent-rose);
  box-shadow: 0 4px 12px rgba(200, 138, 123, 0.25);
}

/* Articles Grid */
.articles-grid-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.article-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 600;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Interactive Self-Care Checklist Widget */
.widget-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.checklist-widget {
  background: linear-gradient(135deg, #FFF9F6, #F4ECE6);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.widget-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.widget-header h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.widget-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.check-item {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.check-item:hover {
  border-color: var(--accent-rose);
  transform: translateY(-2px);
}

.check-item.checked {
  background-color: var(--accent-sage-light);
  border-color: var(--accent-sage);
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.check-item.checked .custom-checkbox {
  background-color: var(--accent-sage);
  border-color: var(--accent-sage);
  color: white;
}

.check-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

.widget-score-bar {
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  height: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.widget-score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-sage));
  transition: width 0.4s ease;
}

.widget-score-text {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-sage);
}

/* Article Detail Modal / View */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(45, 37, 35, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 20px;
}

.article-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-container {
  background-color: var(--bg-surface);
  max-width: 840px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin-bottom: 40px;
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.close-modal-btn:hover {
  background-color: var(--accent-rose);
  color: white;
  border-color: var(--accent-rose);
}

.article-hero-banner {
  height: 380px;
  width: 100%;
  position: relative;
}

.article-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header-content {
  padding: 40px 48px 24px;
}

.article-header-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--text-main);
  margin: 16px 0 20px;
}

.article-body-content {
  padding: 0 48px 48px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3D3330;
}

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

.article-body-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin: 36px 0 16px;
}

.article-body-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 28px 0 12px;
}

.article-body-content ul, .article-body-content ol {
  margin: 0 0 24px 24px;
}

.article-body-content li {
  margin-bottom: 10px;
}

.callout-box {
  background-color: var(--bg-soft-accent);
  border-left: 4px solid var(--accent-rose);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: italic;
}

.disclaimer-box {
  background-color: var(--accent-sage-light);
  border: 1px solid var(--accent-sage);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 0.88rem;
  color: #2D4037;
}

/* Meta Compliance Footer */
.meta-footer {
  background-color: #231C1A;
  color: #C5BBB6;
  padding: 60px 24px 36px;
  font-size: 0.86rem;
  border-top: 1px solid #362D2A;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #A0938E;
  line-height: 1.6;
}

.footer-column h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #A0938E;
}

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

.footer-disclaimer-meta {
  background-color: #1A1413;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid #2E2422;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #8C807B;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  color: #706460;
  font-size: 0.8rem;
  border-top: 1px solid #2E2422;
  padding-top: 24px;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-image-wrapper {
    min-height: 280px;
  }
  .hero-content {
    padding: 32px 24px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-header-content, .article-body-content {
    padding: 24px;
  }
  .article-header-title {
    font-size: 1.75rem;
  }
  .header-container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .search-input:focus {
    width: 200px;
  }
}
