@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --bg: #faf8f3;
  --ink: #1a1814;
  --ink-soft: #54504a;
  --ink-faint: #8a857c;
  --paper: #ffffff;
  --line: #e6e1d6;
  --accent: #c1272d;
  --accent-soft: #f7e9e4;
  --gold: #b08534;
  --net: #2d4a7c;
  --net-soft: #e8eef7;
  --shadow: 0 1px 2px rgba(26,24,20,.04), 0 8px 24px rgba(26,24,20,.05);
  --radius: 14px;
}

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

/* Previne scroll orizontal pe mobile */
html { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(193,39,45,.025), transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(45,74,124,.02), transparent 35%);
}

a { color: inherit; }

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: var(--bg);
  font-family: 'Lora', serif;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 7px 0;
}
.topbar .wrap {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ff8a8f; font-weight: 500;
}
.theme-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; padding: 2px 6px; line-height: 1;
  opacity: .7; transition: opacity .2s;
}
.theme-btn:hover { opacity: 1; }
.topbar .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(193,39,45,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(193,39,45,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(193,39,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(193,39,45,0); }
}

/* ── Masthead ─────────────────────────────────────────────── */
header.mast {
  text-align: center;
  padding: 30px 20px 22px;
  border-bottom: 2px solid var(--ink);
  max-width: 720px; margin: 0 auto;
}
.mast .kicker {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 10px;
  font-family: 'Lora', serif;
}
.mast h1 {
  font-family: 'Lora', serif;
  font-weight: 700; font-size: 46px;
  line-height: .95; letter-spacing: -.02em; margin-bottom: 12px;
}
.mast .tagline { font-style: italic; color: var(--ink-soft); font-size: 16px; }
.mast nav {
  margin-top: 18px; display: flex; gap: 22px; justify-content: center;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); font-family: 'Lora', serif; font-weight: 500;
  flex-wrap: wrap;
}
.mast nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: .2s; }
.mast nav a:hover, .mast nav a.on { color: var(--ink); border-color: var(--accent); }

/* ── Container ────────────────────────────────────────────── */
main { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }

/* ── Edition divider ──────────────────────────────────────── */
.edition {
  display: flex; align-items: center; gap: 14px;
  margin: 38px 0 22px;
}
.edition::before, .edition::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.edition .label {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.edition .clock { color: var(--accent); font-weight: 700; }

/* ── News card ────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26,24,20,.05), 0 14px 36px rgba(26,24,20,.09);
}
.card .cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Lora', serif; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 11px;
}
.card .cat .emoji { font-size: 17px; }
.card .cat .tag {
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 9px; border-radius: 20px;
}
.card h2 {
  font-family: 'Lora', serif; font-weight: 700;
  font-size: 22px; line-height: 1.22;
  letter-spacing: -.01em; margin-bottom: 8px;
  overflow-wrap: break-word; word-break: break-word;
}
.card h2 a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent),var(--accent));
  background-size: 0% 2px; background-repeat: no-repeat;
  background-position: 0 100%; transition: background-size .3s;
}
.card h2 a:hover { background-size: 100% 2px; }
.card .article-date {
  display: block; font-size: 12px; color: var(--ink-faint);
  font-family: 'Lora', serif; margin-bottom: 10px; margin-top: -4px;
}
.card p { color: var(--ink-soft); font-size: 17px; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
.card p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); transition: .2s; }
.card p a:hover { border-bottom-color: var(--accent); }
.card .meta {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  font-family: 'Lora', serif; font-size: 13px; color: var(--ink-faint);
}
.card .meta .src { font-style: italic; overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.card .meta .share { display: flex; gap: 14px; flex-shrink: 0; }
.card .meta .share a { text-decoration: none; color: var(--ink-faint); transition: .2s; }
.card .meta .share a:hover { color: var(--accent); }


/* ── Net section ──────────────────────────────────────────── */
.net-banner {
  margin: 36px 0 18px;
  background: var(--net); color: #eaf0fb;
  border-radius: var(--radius); padding: 16px 22px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.net-banner .ico { font-size: 22px; }
.net-banner .txt h3 {
  font-family: 'Lora', serif; font-size: 18px; font-weight: 600; letter-spacing: .02em;
}
.net-banner .txt span { font-size: 13px; opacity: .8; font-style: italic; }
.card.net { border-color: var(--net-soft); }
.card.net .cat .tag { background: var(--net-soft); color: var(--net); }
.card.net p a { color: var(--net); border-bottom-color: var(--net-soft); }
.card.net h2 a { background-image: linear-gradient(var(--net),var(--net)); }

/* ── Media ────────────────────────────────────────────────── */
.media {
  margin-top: 14px; border-radius: 10px; overflow: hidden; position: relative;
}
.media img {
  width: 100%; display: block; object-fit: cover; max-height: 400px;
}
.media video {
  width: 100%; display: block; border-radius: 10px;
}
.media-placeholder {
  background: linear-gradient(135deg,#3a4f78,#2d4a7c);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 13px; font-style: italic;
  font-family: 'Lora', serif;
}
.tg-video-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 8px;
  background: #229ED9; color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 600;
  font-family: 'Lora', serif;
  max-width: 100%; transition: opacity .2s;
}
.tg-video-btn:hover { opacity: .85; }

/* ── Pin badge ────────────────────────────────────────────── */
.card .pin-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: #fff;
  font-family: 'Lora', serif; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.card.ad .pin-badge { top: 40px; }

/* ── Ad card ──────────────────────────────────────────────── */
.card.ad {
  border-left: 6px solid var(--ad-bar, var(--gold));
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
}
.card.ad .ad-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #fff;
  font-family: 'Lora', serif; font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}

/* ── Article page ─────────────────────────────────────────── */
.article-body { font-size: 19px; line-height: 1.65; margin-top: 20px; overflow-wrap: break-word; word-break: break-word; }
.article-body a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); text-decoration: none; }
.article-body a:hover { border-bottom-color: var(--accent); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); font-size: 14px; text-decoration: none;
  margin-bottom: 24px; transition: color .2s;
}
.back-link:hover { color: var(--accent); }

/* ── Archive ──────────────────────────────────────────────── */
.archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-top: 24px;
}
.archive-grid a {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; text-align: center;
  text-decoration: none; font-family: 'Lora', serif;
  font-size: 15px; color: var(--ink-soft); transition: .2s;
}
.archive-grid a:hover { border-color: var(--accent); color: var(--ink); }

/* ── Static pages ────────────────────────────────────────── */
.page-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.page-content h2 {
  font-family: 'Lora', serif; font-weight: 700;
  font-size: 28px; line-height: 1.2; margin-bottom: 18px;
}
.page-content h3 {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: 20px; margin-top: 28px; margin-bottom: 10px;
  color: var(--ink);
}
.page-content p {
  color: var(--ink-soft); font-size: 17px; line-height: 1.6;
  margin-bottom: 12px;
}
.page-content ul {
  color: var(--ink-soft); font-size: 17px; line-height: 1.6;
  margin: 0 0 12px 24px;
}
.page-content a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.page-content a:hover { border-bottom-color: var(--accent); }
.page-date { font-size: 14px; color: var(--ink-faint); font-style: italic; margin-top: -10px; }
.contact-list { margin: 18px 0; display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 18px;
}
.contact-icon { font-size: 24px; }
.contact-item strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 2px; }
.contact-item a { font-size: 17px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 40px;
  padding: 32px 0 28px;
  font-family: 'Lora', serif;
}
.footer .wrap {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
  text-align: center;
}
.footer-brand {
  font-size: 28px; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}
.footer-nav a {
  color: rgba(250,248,243,.65);
  text-decoration: none; padding-bottom: 2px;
  border-bottom: 1px solid transparent; transition: .2s;
}
.footer-nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.footer-copy {
  font-size: 12px; color: rgba(250,248,243,.4);
  letter-spacing: .03em;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 32px;
}
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: 8px; font-size: 14px;
  text-decoration: none; border: 1px solid var(--line);
  color: var(--ink-soft); transition: .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--ink); }
.pagination .current {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* ── Dark mode (auto + manual toggle) ────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110;
    --ink: #e8e4dc;
    --ink-soft: #b0aba2;
    --ink-faint: #7a756c;
    --paper: #1c1b19;
    --line: #2e2c28;
    --accent: #e04850;
    --accent-soft: #3a1a1c;
    --gold: #d4a24a;
    --net: #5b8fd6;
    --net-soft: #1a2538;
    --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25);
  }
  :root:not([data-theme="light"]) body {
    background-image:
      radial-gradient(circle at 15% 10%, rgba(224,72,80,.04), transparent 40%),
      radial-gradient(circle at 85% 5%, rgba(91,143,214,.03), transparent 35%);
  }
  :root:not([data-theme="light"]) .topbar,
  :root:not([data-theme="light"]) .footer { background: #0a0a09; }
  :root:not([data-theme="light"]) .card.ad { background: linear-gradient(135deg, #1a1f2a 0%, #1c1b19 100%); }
  :root:not([data-theme="light"]) .media img { opacity: .92; }
  :root:not([data-theme="light"]) .contact-item { background: #161514; }
  :root:not([data-theme="light"]) .tg-video-btn { background: #1a7aad; }
}
[data-theme="dark"] {
  --bg: #111110;
  --ink: #e8e4dc;
  --ink-soft: #b0aba2;
  --ink-faint: #7a756c;
  --paper: #1c1b19;
  --line: #2e2c28;
  --accent: #e04850;
  --accent-soft: #3a1a1c;
  --gold: #d4a24a;
  --net: #5b8fd6;
  --net-soft: #1a2538;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25);
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 15% 10%, rgba(224,72,80,.04), transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(91,143,214,.03), transparent 35%);
}
[data-theme="dark"] .topbar,
[data-theme="dark"] .footer { background: #0a0a09; }
[data-theme="dark"] .card.ad { background: linear-gradient(135deg, #1a1f2a 0%, #1c1b19 100%); }
[data-theme="dark"] .media img { opacity: .92; }
[data-theme="dark"] .contact-item { background: #161514; }
[data-theme="dark"] .tg-video-btn { background: #1a7aad; }

/* ── Push subscribe button ────────────────────────────────── */
.subscribe-bar { text-align: center; margin-top: 12px; }
.push-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 20px;
  font-family: 'Lora', serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: .02em;
}
.push-btn:hover { background: #a01f24; transform: scale(1.03); }
.push-btn.active {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
}
.push-btn.active:hover { background: var(--accent-soft); }

@media (prefers-color-scheme: dark) {
  :not([data-theme="light"]) .push-btn.active { border-color: #333; color: #999; }
  :not([data-theme="light"]) .push-btn.active:hover { background: #1a1a1a; }
}
[data-theme="dark"] .push-btn.active { border-color: #333; color: #999; }
[data-theme="dark"] .push-btn.active:hover { background: #1a1a1a; }

@media (max-width: 640px) {
  body { font-size: 19px; }
  .mast h1 { font-size: 36px; }
  .mast nav { gap: 14px; font-size: 12px; }
  .card { padding: 18px 16px 14px; }
  .card h2 { font-size: 22px; }
  .card p { font-size: 18px; }
  .card .meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card .meta .share { flex-wrap: wrap; gap: 10px; }
  .article-body { font-size: 20px; }
  .tg-video-btn { font-size: 15px; padding: 10px 14px; }
  .topbar .wrap { gap: 8px; }
  .edition .label { font-size: 11px; }
  .pagination { flex-wrap: wrap; gap: 6px; }
  .pagination a, .pagination span { padding: 6px 12px; font-size: 13px; }
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lb {
  display: flex; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lb[hidden] { display: none; }
.lb img { max-width: 96vw; max-height: 96vh; object-fit: contain; border-radius: 6px; }
.lb-close {
  position: fixed; top: 14px; right: 18px; background: none; border: none;
  color: #fff; font-size: 30px; cursor: pointer; line-height: 1; padding: 4px;
  opacity: .75;
}
.lb-close:hover { opacity: 1; }
.lb-trigger { cursor: zoom-in; }
.media:has(img.lb-trigger)::after {
  content: '';
  position: absolute;
  bottom: 8px; right: 8px;
  width: 26px; height: 26px;
  background: rgba(0,0,0,.42) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10%2C2 14%2C2 14%2C6'/%3E%3Cpolyline points='6%2C14 2%2C14 2%2C10'/%3E%3Cline x1='14' y1='2' x2='9' y2='7'/%3E%3Cline x1='2' y1='14' x2='7' y2='9'/%3E%3C/svg%3E") center/13px no-repeat;
  border-radius: 5px;
  pointer-events: none;
  transition: background-color .15s;
}
.media:has(img.lb-trigger):hover::after {
  background-color: rgba(0,0,0,.65);
}
