/*
 Theme Name: Healthy Newsroom
 Theme URI: https://example.com
 Author: AI Generated
 Description: A science-focused health news theme: AI-assisted, human-reviewed health articles.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: healthy-newsroom
*/

/* === Global styles from design === */
:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --card-bg: #10182c;
  --accent: #3dd5b0;
  --accent-soft: rgba(61, 213, 176, 0.15);
  --accent-strong: #00b894;
  --text-main: #f5f7ff;
  --text-muted: #a2a9c5;
  --border-subtle: #222a3f;
  --danger: #ff7675;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #112 0%, #050816 45%, #02030a 100%);
  color: var(--text-main);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top notice */
.top-bar {
  background: linear-gradient(90deg, rgba(61, 213, 176, 0.09), rgba(39, 60, 117, 0.8));
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.35rem 0;
  text-align: center;
}

.top-bar span {
  opacity: 0.8;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.96), rgba(5, 8, 22, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #3dd5b0, #192542);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.logo-text span:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.3rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 0.7rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-main);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #041013;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(61, 213, 176, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 25px rgba(61, 213, 176, 0.48);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw + 1.4rem, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-title span.highlight {
  background: linear-gradient(90deg, var(--accent), #74b9ff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  max-width: 34rem;
  font-size: 0.95rem;
}

.hero-subtitle strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(61, 213, 176, 0.8);
}

.hero-tag-danger {
  border-color: rgba(255, 118, 117, 0.45);
  background: rgba(255, 118, 117, 0.08);
  color: #ffb3b3;
}

.hero-tag-danger .hero-tag-dot {
  background: var(--danger);
  box-shadow: 0 0 9px rgba(255, 118, 117, 0.8);
}

/* Hero right card */
.hero-card {
  border-radius: 24px;
  background: radial-gradient(circle at 5% 0%, rgba(61, 213, 176, 0.25), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(116, 185, 255, 0.32), transparent 55%),
              var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.065);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.hero-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(5, 8, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-card-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.hero-card-row {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.hero-chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.03), rgba(255,255,255,0.2), rgba(255,255,255,0.03));
  margin: 0.7rem 0;
}

.hero-card-list {
  list-style: none;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.hero-card-list li span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card-footer strong {
  color: var(--accent);
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.9);
}

/* Section */
section {
  padding: 2.4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.pill {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.5);
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-pill {
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-body {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.article-thumb {
  height: 120px;
  background: radial-gradient(circle at 0 0, rgba(61, 213, 176, 0.4), transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(116, 185, 255, 0.4), transparent 50%),
              #050816;
}

.article-content {
  padding: 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.article-tag-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
}

.tag {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.tag-ai {
  border-color: rgba(61, 213, 176, 0.5);
  color: var(--accent);
}

.article-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.article-excerpt {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.article-meta strong {
  color: var(--text-main);
}

.article-footer-link {
  padding: 0.7rem 0.9rem 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.76rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
  cursor: pointer;
}

.article-footer-link span:last-child {
  font-size: 0.9rem;
}

/* Submit + Chatroom */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.cta-card {
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 60%),
              var(--card-bg);
  border-radius: 18px;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.cta-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cta-body {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.cta-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.cta-list li {
  margin-bottom: 0.3rem;
}

.cta-list li::before {
  content: "• ";
  color: var(--accent);
}

.badge-soft {
  display: inline-flex;
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.badge-soft span {
  color: var(--accent);
  margin-left: 0.25rem;
}

/* Newsletter */
.newsletter {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(5,8,22,0.75);
  border: 1px dashed rgba(255,255,255,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.newsletter-text {
  max-width: 22rem;
  color: var(--text-muted);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-input {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.45rem 0.8rem;
  background: rgba(0,0,0,0.3);
  color: var(--text-main);
  font-size: 0.8rem;
  min-width: 180px;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
  padding: 1.2rem 0 2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid,
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none; /* simple mobile nav for now */
  }
}

@media (max-width: 650px) {
  .feature-grid,
  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.2rem;
  }
}
