/* Luxi Health Blog — shared styles for static blog pages */

:root {
  --amber: 38 91% 55%;
  --deep-amber: 36 88% 44%;
  --cream: 45 100% 94%;
  --teal: 172 57% 39%;
  --mint: 166 45% 93%;
  --charcoal: 216 28% 17%;
  --gray: 220 9% 46%;
  --light-gray: 210 20% 98%;
  --background: 45 100% 99%;
  --foreground: 216 28% 17%;
  --border: 38 30% 88%;
  --shadow-soft: 0 4px 24px -4px hsl(216 28% 17% / 0.08);
  --shadow-lift: 0 20px 40px -10px hsl(216 28% 17% / 0.12);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: hsl(45 100% 99%);
  color: hsl(216 28% 17%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Header */
.blog-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(45 100% 99% / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(38 30% 88% / 0.5);
}

.blog-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .blog-header .header-inner { height: 5rem; }
}

.blog-header .logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: hsl(var(--charcoal));
}

.blog-header .logo img {
  height: 2.5rem;
  width: auto;
  transition: transform 0.3s;
}

.blog-header .logo:hover img { transform: scale(1.05); }

.blog-header .logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--charcoal));
}

/* Desktop Nav */
.blog-header nav.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-header nav.desktop-nav { display: flex; gap: 2rem; }
}

.blog-header nav a {
  font-weight: 500;
  color: hsl(var(--gray));
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.blog-header nav a:hover,
.blog-header nav a.active {
  color: hsl(var(--amber));
}

.blog-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 2px; width: 0;
  background: hsl(var(--amber));
  transition: width 0.3s;
}

.blog-header nav a:hover::after,
.blog-header nav a.active::after {
  width: 100%;
}

/* Header badges */
.blog-header .badges {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .blog-header .badges { display: flex; }
}

.blog-header .badges a { transition: opacity 0.2s; }
.blog-header .badges a:hover { opacity: 0.8; }
.blog-header .badges img { height: 2.25rem; width: auto; }

/* Mobile menu button */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-btn:hover { background: hsl(var(--cream)); }

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--charcoal));
}

/* Mobile nav */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid hsl(38 30% 88% / 0.5);
}

.mobile-nav.open { display: block; }

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: hsl(var(--gray));
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: hsl(var(--cream));
  color: hsl(var(--amber));
}

.mobile-nav .mobile-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid hsl(38 30% 88% / 0.5);
}

.mobile-nav .mobile-badges img { height: 3rem; width: auto; }

/* Main content */
main { padding-top: 4rem; }
@media (min-width: 768px) { main { padding-top: 5rem; } }

/* Blog index hero */
.blog-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, hsl(45 100% 97%) 0%, hsl(45 80% 94%) 100%);
}

.blog-hero .badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--teal) / 0.1);
  color: hsl(var(--teal));
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  color: hsl(var(--charcoal));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .blog-hero h1 { font-size: 3rem; }
}

.blog-hero p {
  font-size: 1.125rem;
  color: hsl(var(--gray));
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Blog cards grid */
.blog-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.blog-card .card-date {
  font-size: 0.875rem;
  color: hsl(var(--teal));
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: hsl(var(--charcoal));
  margin-bottom: 0.75rem;
}

.blog-card .card-excerpt {
  font-size: 0.9375rem;
  color: hsl(var(--gray));
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card .read-more {
  font-weight: 600;
  color: hsl(var(--amber));
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}

.blog-card:hover .read-more { gap: 0.625rem; }

/* Article page */
.article-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, hsl(45 100% 97%) 0%, hsl(45 80% 94%) 100%);
}

@media (min-width: 768px) {
  .article-hero { padding: 5rem 0 3rem; }
}

.article-hero .container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--teal));
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: gap 0.2s;
}

.article-hero .back-link:hover { gap: 0.625rem; }

.article-hero .article-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--teal));
  margin-bottom: 0.75rem;
}

.article-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: hsl(var(--charcoal));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-hero h1 { font-size: 2.5rem; }
}

.article-hero .article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: hsl(var(--gray));
}

.article-hero .article-author img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
}

.article-hero .article-author strong {
  color: hsl(var(--charcoal));
}

/* Article content */
.article-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

.article-content h2 {
  font-size: 1.5rem;
  color: hsl(var(--charcoal));
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  color: hsl(var(--charcoal));
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--gray));
  margin-bottom: 1.25rem;
}

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

.article-content li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: hsl(var(--gray));
  margin-bottom: 0.5rem;
}

.article-content a {
  color: hsl(var(--teal));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.article-content a:hover {
  color: hsl(var(--amber));
}

.article-content strong {
  color: hsl(var(--charcoal));
  font-weight: 600;
}

.article-content blockquote {
  border-left: 4px solid hsl(var(--amber));
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: hsl(var(--cream));
  border-radius: 0 0.75rem 0.75rem 0;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: hsl(var(--charcoal));
  font-style: italic;
}

/* CTA box in articles */
.article-cta {
  background: linear-gradient(135deg, hsl(172 57% 39%) 0%, hsl(172 50% 45%) 100%);
  color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta h3 {
  color: white;
  margin-top: 0;
}

.article-cta p {
  color: rgba(255,255,255,0.9);
}

.article-cta a.cta-btn {
  display: inline-block;
  background: white;
  color: hsl(var(--teal));
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta a.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Footer */
.blog-footer {
  background: hsl(var(--charcoal));
  color: white;
  padding: 4rem 0;
}

.blog-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .blog-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.blog-footer .brand-col {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .blog-footer .brand-col { grid-column: span 1; }
}

.blog-footer .brand-col a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: white;
  margin-bottom: 1rem;
}

.blog-footer .brand-col a img {
  height: 2.5rem;
  width: auto;
}

.blog-footer .brand-col a span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.blog-footer .brand-col p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.blog-footer .socials {
  display: flex;
  gap: 0.75rem;
}

.blog-footer .socials a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-footer .socials a:hover {
  background: hsl(var(--amber));
  color: hsl(var(--charcoal));
}

.blog-footer .socials a svg {
  width: 1rem;
  height: 1rem;
}

.blog-footer .link-col h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-footer .link-col ul {
  list-style: none;
  padding: 0;
}

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

.blog-footer .link-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.blog-footer .link-col a:hover {
  color: hsl(var(--amber));
}

.blog-footer .footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .blog-footer .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.blog-footer .footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.blog-footer .footer-bottom .sun-icon {
  display: inline-block;
  color: hsl(var(--amber));
  vertical-align: middle;
  margin: 0 0.25rem;
}
