/* healthyhappygirl.com - Fresh & Vibrant Theme */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --secondary: #f39c12;
  --accent: #e74c3c;
  --bg-light: #f8fdf7;
  --bg-cream: #feffef;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
  --shadow-lg: 0 10px 40px rgba(46, 204, 113, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; }

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand span { font-size: 1.8rem; }

.navbar-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-menu a:hover, .navbar-menu a.active {
  background: var(--primary);
  color: #fff;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .navbar { padding: 1rem; flex-wrap: wrap; }
  .navbar-toggle { display: block; }
  .navbar-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.3rem;
  }
  .navbar-menu.active { display: flex; }
  .navbar-menu a { padding: 0.8rem 1rem; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #1abc9c 100%);
  padding: 8rem 2rem 5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero { padding: 6rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(46, 204, 113, 0.1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #1abc9c 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease;
}

.card-link:hover { gap: 0.6rem; }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.tool-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
}

.tool-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Articles */
.article-list {
  display: grid;
  gap: 2rem;
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 300px 1fr;
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
}

.article-img {
  height: 100%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(26, 188, 156, 0.1) 100%);
}

.article-content {
  padding: 1.8rem;
}

.article-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #1abc9c 100%);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.article-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card h2 a:hover { color: var(--primary); }

.article-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.read-more:hover { gap: 0.6rem; }

@media (max-width: 768px) {
  .article-card { grid-template-columns: 1fr; }
  .article-img { height: 200px; }
}

/* Article Page */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 1rem 4rem;
}

.article-header {
  margin-bottom: 2rem;
}

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

.article-featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-dark);
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li { margin-bottom: 0.8rem; }

.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: #f0fdf4;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
}

/* Tool Page */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 1rem 4rem;
}

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

.tool-header h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.tool-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.tool-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.9rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  background: linear-gradient(135deg, var(--primary) 0%, #1abc9c 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
}

.result-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e8fdf5 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}

.result-box.show { display: block; }

.result-box h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: #fff;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

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

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

/* Page headers */
.page-header {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 50%, #2ecc71 100%);
  padding: 8rem 2rem 4rem;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* About page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Privacy/Terms */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Related articles */
.related-articles {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e8e8e8;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.breadcrumbs span { margin: 0 0.5rem; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* CSS Gradient Headers */
.header-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
  min-height: 200px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1abc9c 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
