/*
Theme Name: PrahaDnes
Theme URI: https://prahadnes.cz
Author: PrahaDnes
Author URI: https://prahadnes.cz
Description: Prémiové téma WordPress pro web s aktualitami z Prahy. Karusel posledních článků, rubriky pro dopravu, kulturu, počasí, radnici a sport. Optimalizováno pro SEO (Schema.org, Open Graph, sitemap), volitelný modul tržních dat (CoinGecko + Frankfurter), plně v češtině.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prahadnes
Tags: news, local-news, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --gold: #C9A84C;
  --gold-light: #F0D890;
  --gold-dark: #8B6914;
  --ink: #0D0E0F;
  --ink-2: #1A1B1E;
  --ink-3: #2C2D32;
  --gray-1: #3E3F45;
  --gray-2: #6B6C73;
  --gray-3: #9B9CA3;
  --gray-4: #D1D2D8;
  --gray-5: #EAEBF0;
  --gray-6: #F5F6FA;
  --white: #FFFFFF;
  --green: #1A7A4A;
  --green-bg: #E8F5EE;
  --red: #C42B2B;
  --red-bg: #FDEAEA;
  --blue: #1A4FA0;
  --blue-bg: #E8F0FA;
  --surface: #FAFBFE;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  word-wrap: break-word;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ── TOP BAR / TICKER ── */
.topbar {
  background: var(--ink);
  color: var(--gray-3);
  font-size: 12px;
  padding: 6px 0;
  font-family: 'DM Mono', monospace;
  border-bottom: 1px solid var(--ink-3);
  overflow: hidden;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar-label {
  color: var(--gold);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker {
  display: flex;
  gap: 40px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.ticker:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item { display: flex; gap: 10px; align-items: center; }
.tick-name { color: var(--gray-3); }
.tick-val { color: var(--white); font-weight: 500; }
.tick-chg.up { color: #4ADE80; }
.tick-chg.dn { color: #F87171; }

/* ── HEADER ── */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--gold-light); }
.site-logo span { color: var(--gold); }
.site-logo img { max-height: 44px; width: auto; }

.main-nav { flex: 1; display: flex; gap: 2px; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.main-nav ul li a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-3);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: block;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
  background: #1E1F24;
  color: var(--gold);
}

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header-search-form {
  display: flex;
  align-items: center;
  background: #1A1B1E;
  border: 1px solid #2E2F36;
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
  height: 36px;
}
.header-search-form input[type="search"] {
  background: none;
  border: none;
  outline: none;
  color: var(--gray-3);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  width: 160px;
}
.header-search-form input[type="search"]::placeholder { color: var(--gray-1); }
.header-search-form button {
  background: none;
  border: none;
  color: var(--gray-2);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  display: flex;
  align-items: center;
}
.btn-subscribe {
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  height: 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-subscribe:hover { opacity: 0.88; }

/* ── LIVE BANNER ── */
.live-banner {
  background: var(--ink-2);
  border-bottom: 1px solid #1A1B1E;
  padding: 10px 0;
}
.live-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.live-pill {
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.live-dot {
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-time { color: var(--gold); font-family: 'DM Mono', monospace; font-size: 13px; flex-shrink: 0; }
.live-text { color: var(--gray-4); font-size: 13px; }
.live-text strong { color: var(--white); font-weight: 500; }

/* ── LIVE BANNER CAROUSEL ── */
.live-carousel {
  position: relative;
  flex: 1;
  height: 20px;
  overflow: hidden;
}
.live-carousel-item {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-4);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-carousel-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.live-carousel-item:hover .live-carousel-title { color: var(--gold-light); }
.live-carousel-cat { color: var(--gold); font-weight: 600; white-space: nowrap; }
.live-carousel-title { color: var(--white); font-weight: 500; }

/* ── MAIN LAYOUT ── */
.site-main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── HERO GRID (HOME) ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--gray-5);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  background: linear-gradient(165deg, #0D1117 0%, #1a2332 60%, #0D1117 100%);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  overflow: hidden;
}
.hero-main .post-thumbnail {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-main .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-main-content { position: relative; z-index: 1; }
.hero-chart-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  opacity: 0.12;
  z-index: 0;
}
.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--gold-light); }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-3);
}
.hero-author { color: var(--gray-4); font-weight: 500; }
.hero-time-badge {
  background: rgba(255,255,255,0.07);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.hero-side { background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 0; }
.side-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-item:first-child { padding-top: 0; }
.side-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.side-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.side-title:hover { color: var(--gold-dark); }
.side-time { font-size: 11px; color: var(--gray-3); font-family: 'DM Mono', monospace; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more::after { content: '→'; }

/* ── CARDS GRID (HOME & ARCHIVE) ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-5);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-img {
  height: 160px;
  background: linear-gradient(135deg, #1a2332 0%, #0D1117 100%);
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  opacity: 0.15;
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.card-title a { color: inherit; }
.card:hover .card-title a { color: var(--gold-dark); }
.card-excerpt { font-size: 13px; color: var(--gray-2); line-height: 1.5; flex: 1; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--gray-5);
}
.card-author { font-size: 12px; color: var(--gray-2); font-weight: 500; }
.card-time { font-size: 11px; color: var(--gray-3); font-family: 'DM Mono', monospace; }

/* ── MARKETS BAR ── */
.markets-bar {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-5);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.markets-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; }
.market-item { display: flex; flex-direction: column; gap: 4px; }
.market-item-link {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 10px;
  margin: -10px;
  transition: background 0.15s;
}
.market-item-link:hover { background: var(--gray-6); }
.market-item-link:hover .market-name { color: var(--gold-dark); }
.market-name { font-size: 11px; color: var(--gray-2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.market-val { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 500; color: var(--ink); }
.market-chg {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 100px;
  width: fit-content;
}
.market-chg.up { color: var(--green); background: var(--green-bg); }
.market-chg.dn { color: var(--red); background: var(--red-bg); }
.sparkline { margin-top: 6px; }

/* ── CONTENT SPLIT (HOME) ── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 40px;
}

/* ── ARTICLE LIST (HOME) ── */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-5);
}
.article-row:first-child { padding-top: 0; }
.article-thumb {
  width: 100px;
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a2332 0%, #0D1117 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.article-row-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.article-row-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.article-row-title a { color: inherit; }
.article-row:hover .article-row-title a { color: var(--gold-dark); }
.article-row-time { font-size: 11px; color: var(--gray-3); font-family: 'DM Mono', monospace; }

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-4) transparent;
  padding-right: 2px;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--gray-3); }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.widget {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-5);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  flex-shrink: 0;
}
.widget-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.widget-body,
.widget-body-wrap { padding: 16px 20px; }

/* ── WIDGETS NATIFS WORDPRESS (recherche, catégories, archives, articles récents…) ── */
.widget-body-wrap > h2,
.widget-body-wrap > h3,
.widget-body-wrap .widgettitle {
  padding: 14px 20px;
  margin: -16px -20px 16px;
  border-bottom: 1px solid var(--gray-5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-2);
  font-family: 'DM Sans', sans-serif;
}
.widget-body-wrap ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-body-wrap ul ul { margin-top: 8px; margin-left: 16px; }
.widget-body-wrap li {
  font-size: 13px;
  color: var(--gray-1);
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-5);
}
.widget-body-wrap li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-body-wrap li a {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.15s;
}
.widget-body-wrap li a:hover { color: var(--gold-dark); }
.widget-body-wrap select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-5);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
}

/* Formulaire de recherche natif (widget Search) */
.widget-body-wrap .search-form,
.widget-body-wrap form[role="search"] {
  display: flex;
  gap: 8px;
}
.widget-body-wrap .search-form label,
.widget-body-wrap form[role="search"] label { flex: 1; }
.widget-body-wrap .search-form .search-field,
.widget-body-wrap input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-5);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.widget-body-wrap .search-field:focus,
.widget-body-wrap input[type="search"]:focus { border-color: var(--gold); }
.widget-body-wrap .search-submit,
.widget-body-wrap button[type="submit"] {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.widget-body-wrap .search-submit:hover,
.widget-body-wrap button[type="submit"]:hover { background: var(--gold-dark); }

/* Widget Recent Comments / Tag cloud */
.widget-body-wrap .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-body-wrap .tagcloud a {
  background: var(--gray-6);
  border: 1px solid var(--gray-5);
  color: var(--gray-2) !important;
  font-size: 12px !important;
  padding: 4px 12px;
  border-radius: 100px;
  transition: all 0.15s;
}
.widget-body-wrap .tagcloud a:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold); }

/* Newsletter */
.newsletter-widget { background: var(--ink); }
.newsletter-widget .widget-head { background: var(--ink); border-color: #222; color: var(--gray-3); }
.newsletter-widget .widget-body,
.newsletter-widget .widget-body-wrap { padding: 20px; }
.nl-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.nl-sub { font-size: 13px; color: var(--gray-3); margin-bottom: 16px; line-height: 1.5; }
.nl-form input[type="email"] {
  width: 100%;
  background: #1A1B1E;
  border: 1px solid #2E2F36;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.nl-form input[type="email"]:focus { border-color: var(--gold); }
.nl-form input[type="email"]::placeholder { color: var(--gray-1); }
.nl-form button {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.nl-form button:hover { opacity: 0.88; }

/* Trending */
.trend-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-5);
}
.trend-item:last-child { border-bottom: none; padding-bottom: 0; }
.trend-item:first-child { padding-top: 0; }
.trend-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-5);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.trend-info { flex: 1; }
.trend-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.trend-title a { color: inherit; }
.trend-item:hover .trend-title a { color: var(--gold-dark); }
.trend-time { font-size: 11px; color: var(--gray-3); margin-top: 2px; font-family: 'DM Mono', monospace; }

/* Expert card */
.expert-section { margin-bottom: 40px; }
.expert-card {
  background: var(--ink-2);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.expert-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.expert-role { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.expert-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.expert-quote { font-size: 17px; color: var(--gray-4); line-height: 1.65; font-style: italic; }
.expert-quote::before { content: '\201C\00A0'; color: var(--gold); font-size: 24px; font-style: normal; }
.expert-quote::after { content: '\00A0\201D'; color: var(--gold); font-size: 24px; font-style: normal; }

/* ── ARCHIVE PAGE ── */
.archive-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-5);
}
.archive-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}
.archive-desc { font-size: 15px; color: var(--gray-2); max-width: 600px; }
.archive-count { font-size: 12px; color: var(--gray-3); margin-top: 8px; font-family: 'DM Mono', monospace; }

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.archive-posts-wrap .cards-grid { margin-bottom: 0; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-5);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
  border: 1px solid var(--gray-5);
  background: var(--white);
  transition: all 0.15s;
}
.pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold-dark); }
.pagination .page-numbers.current { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.pagination .prev, .pagination .next { width: auto; padding: 0 16px; gap: 6px; }

/* ── SINGLE POST ── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

/* Post header */
.post-header { margin-bottom: 32px; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-3);
  margin-bottom: 20px;
}
.post-breadcrumb a { color: var(--gold-dark); }
.post-breadcrumb span { color: var(--gray-4); }

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-5);
  border-bottom: 1px solid var(--gray-5);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.author-role { font-size: 11px; color: var(--gray-3); }

.post-meta-sep { color: var(--gray-4); }
.post-meta-date { font-size: 13px; color: var(--gray-2); font-family: 'DM Mono', monospace; }
.post-meta-read { font-size: 12px; color: var(--gray-3); background: var(--gray-6); padding: 4px 12px; border-radius: 100px; }

/* Featured image */
.post-featured-image {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
}
.post-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.post-featured-image figcaption {
  font-size: 12px;
  color: var(--gray-3);
  padding: 10px 0;
  font-style: italic;
}

/* Post content */
.post-content { font-size: 16px; line-height: 1.8; color: var(--ink); }
.post-content p { margin-bottom: 24px; }
.post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-5);
}
.post-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--ink);
}
.post-content h4 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.post-content ul, .post-content ol { margin: 0 0 24px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--ink-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.post-content blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--gray-4);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}
.post-content a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold); }
.post-content img { border-radius: 10px; margin: 24px 0; max-width: 1200px; width: 100%; height: auto; display: block; }

/* ── EMBEDS VIDÉO (YouTube etc.) — pleine largeur, responsive 16:9 ──
   La structure HTML est désormais reconstruite proprement côté PHP
   (prahadnes_wrap_video_embeds), donc plus besoin de neutraliser
   un éventuel padding natif Gutenberg : il n'existe plus dans le DOM final. */
.post-content .video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding-top: 56.25%; /* ratio 16:9 */
  margin: 32px 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
}
.post-content .video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  margin: 0;
}
.post-content iframe:not(.video-embed-wrap iframe) {
  max-width: 100%;
}
.post-content figure.video-embed-figure {
  margin: 32px 0;
}
.post-content figure.video-embed-figure figcaption {
  font-size: 13px;
  color: var(--gray-3);
  text-align: center;
  margin-top: 10px;
}
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.post-content .table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content .table-scroll-wrap table { margin: 0; }
.post-content pre,
.post-content code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-content .wp-block-columns {
  flex-wrap: wrap;
}
.post-content table th {
  background: var(--ink-2);
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-5);
  font-size: 14px;
}
.post-content table tr:hover td { background: var(--gray-6); }
.post-content .wp-caption { text-align: center; }
.post-content .wp-caption-text { font-size: 12px; color: var(--gray-3); font-style: italic; margin-top: 6px; }

/* TOC intégré (sans plugin) */
.post-toc {
  background: var(--gray-6);
  border: 1px solid var(--gray-5);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.post-toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-toc ol { margin: 0 0 0 20px; }
.post-toc li { margin-bottom: 6px; font-size: 14px; }
.post-toc a { color: var(--gray-1); }
.post-toc a:hover { color: var(--gold-dark); }

/* Post footer */
.post-tags { margin: 40px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags-label { font-size: 12px; font-weight: 600; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.06em; }
.tag-pill {
  background: var(--gray-6);
  border: 1px solid var(--gray-5);
  color: var(--gray-2);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  transition: all 0.15s;
}
.tag-pill:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Author box */
.author-box {
  background: var(--white);
  border: 1px solid var(--gray-5);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
}
.author-box-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.author-box-role { font-size: 12px; color: var(--gold-dark); font-weight: 600; margin-bottom: 10px; }
.author-box-bio { font-size: 14px; color: var(--gray-2); line-height: 1.6; }

/* Related posts */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--gray-5); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.nav-previous, .nav-next {
  background: var(--white);
  border: 1px solid var(--gray-5);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-previous:hover, .nav-next:hover { border-color: var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.nav-next { text-align: right; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-3); margin-bottom: 6px; }
.nav-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.nav-previous:hover .nav-post-title,
.nav-next:hover .nav-post-title { color: var(--gold-dark); }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-new { background: var(--blue-bg); color: var(--blue); }
.badge-exclu { background: rgba(201,168,76,0.12); color: var(--gold-dark); border: 1px solid rgba(201,168,76,0.3); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  margin-top: 40px;
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-3);
}
.footer-brand-desc { font-size: 13px; color: var(--gray-2); line-height: 1.6; max-width: 280px; margin-top: 12px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--gray-3); transition: color 0.15s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-2);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--gray-2); }
.footer-legal a:hover { color: var(--gold); }

/* WordPress alignments */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-block-image.alignfull { max-width: 100%; }

/* ── STICKY SHARE BUTTONS (flottant à gauche) ── */
.share-sticky {
  position: sticky;
  top: 100px;
  float: left;
  margin-left: -76px;
  width: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  z-index: 10;
}
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-5);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.share-btn-copy:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.share-btn-facebook:hover { background: #1877F2; color: white; border-color: #1877F2; }
.share-btn-x:hover { background: #000; color: white; border-color: #000; }
.share-btn-linkedin:hover { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-btn-whatsapp:hover { background: #25D366; color: white; border-color: #25D366; }
.share-btn-telegram:hover { background: #26A5E4; color: white; border-color: #26A5E4; }
.share-btn-email:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.share-count {
  margin-top: 6px;
  font-size: 11px;
  color: var(--gray-3);
  font-family: 'DM Mono', monospace;
  text-align: center;
}

/* ── BLOC MAILLAGE INTERNE AUTOMATIQUE ── */
.inline-related-box {
  background: var(--gray-6);
  border: 1px solid var(--gray-5);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 28px 0;
}
.inline-related-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.inline-related-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.inline-related-thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.inline-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inline-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.inline-related-link:hover .inline-related-title { color: var(--gold-dark); }

/* ── BLOC VALEUR LIVE (CPT Hodnoty) ── */
.valeur-live-box {
  background: linear-gradient(165deg, #0D1117 0%, #1a2332 100%);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}
.valeur-live-main { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.valeur-live-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.valeur-live-amount {
  font-family: 'DM Mono', monospace;
  font-size: 42px;
  font-weight: 500;
  color: var(--white);
}
.valeur-live-currency { font-size: 20px; color: var(--gray-3); }
.valeur-live-updated {
  font-size: 11px;
  color: var(--gray-3);
  margin-top: 16px;
}

/* ── FOOTER SOCIALS HOVER ── */
.footer-socials a:hover { background: var(--gold) !important; }


@media (max-width: 1300px) {
  .share-sticky {
    position: static;
    float: none;
    margin-left: 0;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
    max-height: none;
  }
}

@media (max-width: 960px) {
  .site-main { padding: 24px 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 340px; }
  .hero-side { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
  .content-split { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; overflow-y: visible; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .post-title { font-size: 28px; }
  .expert-card { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .valeur-live-amount { font-size: 30px; }
  .valeur-live-box { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .site-main { padding: 20px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-inner { gap: 12px; padding: 0 16px; }
  .header-search-form { display: none; }
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { padding: 0 16px; }
  .archive-title { font-size: 24px; }
  .archive-header { padding-bottom: 16px; }
  .live-inner { gap: 8px; padding: 0 16px; }
  .live-time { display: none; }
  .live-carousel-cat { display: none; }
  .topbar-inner { padding: 0 16px; gap: 16px; }
  .share-sticky { gap: 8px; }
  .share-btn { width: 40px; height: 40px; }
  .share-count { width: 100%; margin-top: 0; }
  .hero-title { font-size: 22px; }
  .hero-main { padding: 20px; min-height: 280px; }
  .hero-category { font-size: 10px; padding: 3px 10px; }
  .post-title { font-size: 22px; }
  .post-meta-bar { gap: 10px; row-gap: 8px; }
  .markets-bar { padding: 16px; }
  .market-val { font-size: 15px; }
  .sparkline { display: none; }
  .author-box { flex-direction: column; text-align: center; align-items: center; padding: 20px; }
  .expert-card { padding: 20px; }
  .widget-body, .widget-body-wrap { padding: 14px 16px; }
  .post-content { font-size: 15px; }
  .post-content h2 { font-size: 21px; }
  .post-content h3 { font-size: 18px; }
  .section-title { font-size: 17px; }
  .nl-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-logo { font-size: 21px; }
  .hero-title { font-size: 19px; }
  .post-title { font-size: 20px; }
  .archive-title { font-size: 21px; }
  .markets-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .market-item-link { padding: 6px; margin: -6px; }
  .market-val { font-size: 14px; }
  .market-name { font-size: 10px; }
  .card-title { font-size: 15px; }
  .card-body { padding: 14px; }
  .card-footer { padding: 10px 14px; }
  .trend-title { font-size: 12px; }
  .author-avatar { width: 32px; height: 32px; font-size: 12px; }
  .author-box-avatar { width: 56px; height: 56px; font-size: 18px; }
  .btn-subscribe { padding: 0 12px; font-size: 12px; }
  .header-actions { gap: 6px; }
  .share-btn { width: 38px; height: 38px; }
  .valeur-live-amount { font-size: 24px; }
  .live-carousel-title { font-size: 12px; }
  .post-meta-read, .post-meta-date { font-size: 11px; }
}
