/* =============================================
   hormonicdata.com — Design System & Base Styles
   ============================================= */

/* Design Tokens */
:root {
  --bg:             #0f0a14;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --accent:         #f472b6;
  --accent-muted:   rgba(244, 114, 182, 0.12);
  --accent-border:  rgba(244, 114, 182, 0.2);
  --text:           #ffffff;
  --text-muted:     rgba(255, 255, 255, 0.5);
  --text-subtle:    rgba(255, 255, 255, 0.3);
  --border:         rgba(255, 255, 255, 0.07);

  --radius-card:    12px;
  --radius-pill:    20px;
  --radius-stat:    10px;
  --radius-input:   8px;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;

  --px: 20px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Typography Scale */
h1 {
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.section {
  padding: var(--space-xl) 0;
}

/* Accent label pill */
.label-pill {
  display: inline-block;
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

/* Category tag (smaller, inline) */
.tag {
  display: inline-block;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* TL;DR / callout box */
.tldr {
  background: rgba(244, 114, 182, 0.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  padding: var(--space-md);
}

.tldr-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.tldr p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

/* Sources list */
.sources {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-top: var(--space-xl);
}

.sources-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.sources li + li {
  margin-top: 6px;
}

.sources a {
  color: rgba(244, 114, 182, 0.7);
  font-size: 12px;
  line-height: 1.6;
}

.sources a:hover {
  color: var(--accent);
}

/* FAQ accordion */
details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

details summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: var(--space-md);
  font-size: 14px;
}

/* Form elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  width: 100%;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

/* Articles grid */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Filter pills row */
.filters {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filters::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-muted);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  :root {
    --px: 40px;
  }

  .articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stats-grid {
    gap: var(--space-md);
  }
}
