/*
Theme Name: FinanceActu
Theme URI: https://financeactu.cz
Author: FinanceActu
Author URI: https://financeactu.cz
Description: Prémiové téma WordPress pro finanční zpravodajský web. Burzovní ticker, hero grid, optimalizováno pro SEO (Schema.org, Open Graph, sitemap), živá tržní data (CoinGecko + Frankfurter), plně v češtině.
Version: 1.1.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: financeactu
Tags: news, finance, 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; }

: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;
}

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; }

/* ── SUBNAV ── */
.subnav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-5);
}
.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-inner ul { list-style: none; display: flex; gap: 0; }
.subnav-inner ul li a {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  display: block;
}
.subnav-inner ul li a:hover { color: var(--ink); border-color: var(--gray-4); }
.subnav-inner ul li.current-menu-item > a { color: var(--ink); border-color: var(--gold); }

/* ── 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; }

/* ── MAIN LAYOUT ── */
.site-main {
  max-width: 1200px;
  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-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: 24px; }
.widget {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-5);
  overflow: hidden;
}
.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 { padding: 16px 20px; }

/* Newsletter */
.newsletter-widget { background: var(--ink); }
.newsletter-widget .widget-head { background: var(--ink); border-color: #222; color: var(--gray-3); }
.newsletter-widget .widget-body { 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; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.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%; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .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; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .post-title { font-size: 28px; }
  .expert-card { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { gap: 16px; }
  .header-search-form { display: none; }
  .main-nav { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .archive-title { font-size: 26px; }
}
