/* 
  MyCrochetKit "Modern PWA" Design System 
  - Premium Dark Mode Base
  - Vibrant Green Accents
  - Professional Typography
*/

:root {
  --primary: #4a7c59; /* Forest Green for Headers */
  --primary-light: rgba(74, 124, 89, 0.1);
  --accent: #8b5cf6; /* PWA Purple */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- HEADER MOCKUP (TO MATCH PWA) --- */
.app-header-mockup {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.navlink {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.navlink:hover,
.navlink.active {
  color: var(--white);
}

.navlink.special {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 99px;
}

/* --- HERO SECTION --- */
.featured-header-green {
  background: linear-gradient(135deg, #1e3a2f 0%, #064e3b 100%);
  padding: 6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.meta-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.badge.date {
  color: #10b981;
}
.badge.time {
  color: var(--text-muted);
}

.featured-header-green h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.subtitle {
  font-size: 1.25rem;
  color: #a7f3d0;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

/* --- ARTICLE CONTENT --- */
.article-body {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

article.prose {
  font-size: 1.125rem;
  color: var(--text-main);
}

article.prose p {
  margin-bottom: 2rem;
}

article.prose h2 {
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

article.prose img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin: 2.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- FORMULA / CALLOUT BOX --- */
.key-takeaway,
.highlight-box {
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  position: relative;
}

.key-takeaway::after {
  content: "💡";
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 2rem;
}

/* --- PWA SIDEBAR MOCKUP --- */
@media (min-width: 1200px) {
  body.blog-view {
    padding-left: 280px; /* Simulate Sidebar space */
  }
}

/* --- LEAD MAGNET & SOCIAL --- */
.lead-magnet {
  background: var(--slate-800);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  margin-top: 6rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lead-magnet h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.lead-magnet p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.lead-magnet form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.lead-magnet input {
  flex: 1;
  background: var(--bg-darker);
  border: 1px solid var(--slate-700);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  outline: none;
}

.lead-magnet button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s;
}

.lead-magnet button:hover {
  transform: scale(1.02);
}

.social-share-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  color: white;
  background: var(--slate-800);
  transition: all 0.2s;
}

.share-btn:hover {
  transform: translateY(-4px);
  background: var(--slate-700);
}

.blog-footer-cta {
  margin-top: 6rem;
  text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05));
  padding: 4rem 1.5rem;
  border-radius: 32px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .lead-magnet form {
    flex-direction: column;
  }
  .featured-header-green h1 {
    font-size: 2.5rem;
  }
}
