/* 
  MyCrochetKit "Authority" Design System 
  - Clean, high-contrast, professional
  - Matches Crochet Pricing Guide and Hook Charts
*/

:root {
  --primary: #4a7c59;
  --primary-dark: #064e3b;
  --secondary: #8b5cf6;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- HEADER --- */
.site-header {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}
.text-accent {
  color: var(--secondary) !important;
}

.brand {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

/* --- HERO --- */
.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  padding: 5rem 0;
  color: white;
  text-align: center;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- CONTENT --- */
.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.metadata {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.content-wrapper {
  padding: 0;
}

article {
  font-size: 1.125rem;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 3rem 0 1.5rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.5rem;
}

/* TABLE DESIGN */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: var(--bg-alt);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

/* CALLOUT BOX */
.callout-box,
.highlight-box {
  background: #f0fdf4;
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

/* --- FOOTER & CTA --- */
.lead-magnet {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
  margin: 4rem 0;
}

.lead-magnet h3 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 900;
}

.site-footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s;
  color: inherit;
}

.site-footer a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* --- BLOG SPECIFICS --- */
.blog-header-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.social-share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  color: white;
  transition: transform 0.2s, filter 0.2s;
}

.share-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.share-btn.pinterest {
  background: #e60023;
}
.share-btn.facebook {
  background: #1877f2;
}
.share-btn.twitter {
  background: #000000;
}

.silo-links {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.silo-links ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.silo-links a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.silo-links a:hover {
  text-decoration: underline;
}
