/* ============================================
   NxtLifestyle — Premium Reading Experience
   Design System v3.0 - Clean & Glow Aesthetic
   ============================================ */

/* --- NEW Google Fonts (Inter for body, keep Playfair Display for headings) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Premium Color Variables --- */
:root {
  /* Clean & Glow Palette */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-warm: #FDF8F6;
  --bg-hero: linear-gradient(135deg, #FDF8F6 0%, #F5EDE8 100%);

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #888888;
  --text-light: #AAAAAA;

  /* Accent Colors by Category */
  --accent-sage: #8A9A5B;
  --accent-sage-light: #E8EDE0;
  --accent-rose: #C48B8B;
  --accent-rose-light: #F5E6E6;
  --accent-gold: #C9A96E;
  --accent-gold-light: #F5EDE0;
  --accent-blue: #4A6FA5;
  --accent-blue-light: #E0E8F5;
  --accent-peach: #E8A598;
  --accent-peach-light: #FDE8E4;

  /* Brand */
  --rose-gold: #B5636A;
  --rose-gold-dark: #9A4F55;
  --charcoal: #1A1A1A;
  --soft-blush: #F8E1E7;
  --warm-beige: #FDF2F4;
  --sage-green: #8FAF9C;

  /* Typography */
  --font-heading: 'Playfair Display', 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Shadows - Premium Soft */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(12px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --content-max: 720px;
  --container-max: 1200px;
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* Headings - Serif with tight letter-spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.75em; }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.5em; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }

/* Body text */
p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* ============================================
   ARTICLE HERO - Cinematic with Parallax
   ============================================ */
.article-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: 160px 0 80px;
  background: var(--bg-hero);
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(253, 248, 246, 0.3) 0%, rgba(253, 248, 246, 0.95) 100%);
  z-index: 1;
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Category Tag - Pill Shape */
.article-category {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-sage);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.article-category[data-category="Comparisons"] { background: var(--accent-blue); }
.article-category[data-category="Skincare"] { background: var(--accent-rose); }
.article-category[data-category="Anti-Aging"] { background: var(--accent-gold); }
.article-category[data-category="Holistic Healing"] { background: var(--accent-sage); }
.article-category[data-category="Makeup"] { background: var(--accent-peach); }
.article-category[data-category="Learn"] { background: var(--accent-blue); }
.article-category[data-category="Skin Concerns"] { background: var(--accent-rose); }
.article-category[data-category="Beauty Tools"] { background: var(--accent-gold); }

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 auto var(--space-md);
  max-width: 800px;
}

.article-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   ARTICLE CONTENT - 700px Centered
   ============================================ */
.article-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.article-content {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .article-content {
    font-size: 1rem;
    line-height: 1.6;
  }
  .article-main {
    padding: var(--space-2xl) var(--space-md);
  }
}

/* Drop Cap for first paragraph */
.article-content > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 4.5rem;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 8px;
  color: var(--rose-gold);
  font-weight: 700;
}

/* Content Headings */
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--soft-blush);
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Blockquotes - Editorial Style */
.article-content blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 3px solid var(--rose-gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

@media (max-width: 768px) {
  .article-content blockquote {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }
}

/* Images in content */
.article-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-content img.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FLOATING READ TIME & PROGRESS INDICATOR
   ============================================ */
.read-time-indicator {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: var(--shadow-card);
  transition: opacity var(--transition-base);
}

@media (max-width: 1200px) {
  .read-time-indicator {
    display: none;
  }
}

.read-time-indicator .read-icon {
  font-size: 1.2rem;
}

.read-time-indicator .read-time-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.read-time-indicator .progress-bar-mini {
  width: 3px;
  height: 60px;
  background: var(--soft-blush);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.read-time-indicator .progress-bar-mini::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--scroll-progress, 0%);
  background: var(--rose-gold);
  border-radius: 2px;
  transition: height 0.1s linear;
}

/* ============================================
   STICKY HEADER - Blur on Scroll
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   CARD COMPONENTS - Soft Shadow Cards
   ============================================ */
.article-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.article-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

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

.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ============================================
   PILL BUTTONS - Thumb Friendly
   ============================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 44px;
}

.btn-pill-primary {
  background: var(--rose-gold);
  color: white;
}

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

.btn-pill-outline {
  background: transparent;
  color: var(--rose-gold);
  border: 2px solid var(--rose-gold);
}

.btn-pill-outline:hover {
  background: var(--rose-gold);
  color: white;
}

/* Category Tags as Pills */
.tag-pill {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: var(--accent-sage-light);
  color: var(--accent-sage);
  transition: all var(--transition-fast);
}

.tag-pill:hover {
  background: var(--accent-sage);
  color: white;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRODUCT CARDS - Updated
   ============================================ */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* ============================================
   NEWSLETTER BAR - Glassmorphism
   ============================================ */
.newsletter-bar {
  background: linear-gradient(135deg, var(--warm-beige) 0%, var(--soft-blush) 100%);
  padding: var(--space-3xl) 0;
}

.newsletter-inline {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: var(--space-lg) auto 0;
}

.newsletter-inline input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  background: var(--bg-secondary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-inline input:focus {
  border-color: var(--rose-gold);
}

.newsletter-inline button {
  padding: 14px 28px;
  background: var(--rose-gold);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-inline button:hover {
  background: var(--rose-gold-dark);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .newsletter-inline {
    flex-direction: column;
  }
}

/* ============================================
   FOOTER - Updated Grid
   ============================================ */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-lg);
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--rose-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ============================================
   CTA BUTTON IN NAV
   ============================================ */
.nav-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--rose-gold);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-cta .btn-cta:hover {
  background: var(--rose-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

@media (max-width: 1024px) {
  .nav-cta {
    display: none;
  }
}

/* ============================================
   MEGA MENU - Glassmorphism
   ============================================ */
.mega-menu {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mega-featured-card {
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-dark) 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: block;
  transition: transform var(--transition-fast);
}

.mega-featured-card:hover {
  transform: scale(1.02);
  color: white;
}

.mega-featured-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mega-featured-cta {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ============================================
   INGREDIENT LINKS
   ============================================ */
.ingredient-link {
  color: var(--rose-gold);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.ingredient-link:hover {
  color: var(--rose-gold-dark);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-buttons-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.share-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.share-fb { background: #1877F2; color: white; }
.share-tw { background: #000; color: white; }
.share-pn { background: #E60023; color: white; }

.share-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: white;
}

/* ============================================
   AD CONTAINERS
   ============================================ */
.ad-container {
  margin: 2rem 0;
  text-align: center;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-widget {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.toc-widget h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.toc-list a:hover {
  color: var(--rose-gold);
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--soft-blush);
}

.related-articles h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
