/* ===============================
   THEME VARIABLES
   =============================== */

/* DARK – default */
:root {
  --bg-main: #0b1220;
  --bg-nav: rgba(11,18,32,0.85);
  --bg-card: #111a2e;

  --primary: #4f8cff;
  --text-main: #e6eaf2;
  --text-muted: #a9b1c7;

  --border: #1e2a45;
}

/* LIGHT */
html[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-nav: rgba(255,255,255,0.9);
  --bg-card: #ffffff;

  --primary: #1e40af;
  --text-main: #0b1220;
  --text-muted: #475569;

  --border: #e2e8f0;
}

/* ===============================
   BASE
   =============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top right, #1b2f5a, var(--bg-main));
  color: var(--text-main);
  line-height: 1.65;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at top left, #eef2ff, var(--bg-main));
}

/* ===============================
   NAVBAR
   =============================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
}

.nav-menu a {
  margin-left: 24px;
  color: var(--text-main);
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--primary);
}


/* spacing pentru butonul dark / light */
#themeToggle {
  margin-left: 20px;
}

/* stil curat pentru buton dark / light */
#themeToggle {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

#themeToggle:hover {
  opacity: 0.8;
}




/* ===============================
   HERO BLOG
   =============================== */

.blog-hero {
  padding: 110px 20px 90px;
  text-align: center;
}

/* FIX IMPORTANT: TITLU FARA ALBASTRU */
.blog-hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  margin-bottom: 16px;
  color: var(--text-main); /* NU albastru */
}

/* daca exista span in titlu */
.blog-hero h1 span {
  color: var(--text-main);
}

.blog-hero p {
  color: var(--text-muted);
  max-width: 700px;
  margin: auto;
}

/* ===============================
   CONTENT
   =============================== */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

/* LISTA – EXACT CA IN DESIGNUL TAU */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* ===============================
   CARD
   =============================== */

.post-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 22px;
}

.post-content h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.post-content h2 a {
  color: var(--text-main);
  text-decoration: none;
}

.post-content h2 a:hover {
  color: var(--primary);
}

.post-content p {
  color: var(--text-muted);
}

/* ===============================
   ARTICLE PAGE (daca exista)
   =============================== */

.article-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 40px;
}

.article {
  max-width: 800px;
  margin: auto;
}

.article h1 {
  font-size: clamp(32px, 6vw, 44px);
  color: var(--text-main);
}

.article p {
  font-size: 18px;
  margin-bottom: 22px;
  color: var(--text-main);
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  text-align: center;
  padding: 60px 20px 30px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
