/* ============================================================
   AVINOX.CZ — hlavní stylesheet
   ============================================================ */

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

:root {
  --black:      #111111;
  --black2:     #1a1a1a;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --light-gray: #e8e8e8;
  --mid-gray:   #999999;
  --dark-gray:  #444444;
  --green:      #39e879;
  --green-dark: #2dc963;
  --border:     #e0e0e0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: #222222;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   HEADER
   ============================================================ */

#site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible;
}

.logo {
  flex-shrink: 0;
  margin-right: 32px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 300;
  margin-bottom: -20px;
  padding-bottom: 20px;
}

.logo img { height: 80px; width: auto; }

/* NAVIGACE */
.main-nav-wrap { height: 100%; }

.main-nav {
  display: flex;
  list-style: none;
  height: 64px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  height: 100%;
}

.nav-item > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item:hover > a {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black2);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--green);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 300;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.15s, background 0.15s;
}

.dropdown a:last-child { border-bottom: none; }

.dropdown a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.header-search:hover { color: var(--white); }

/* SEARCH OVERLAY */
.search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--black2);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 400;
}

.search-overlay.active { display: block; }

.search-overlay-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-overlay input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 10px 16px;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
}

.search-overlay input[type="search"]:focus {
  border-color: var(--green);
}

.search-overlay input[type="submit"] {
  background: var(--green);
  border: none;
  color: #000;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
}

.search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================================================
   LATEST STRIP
   ============================================================ */

.latest-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.latest-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.latest-strip-inner::-webkit-scrollbar { display: none; }

.latest-thumb {
  flex-shrink: 0;
  width: 160px;
  padding: 12px 12px 12px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
  color: inherit;
}

.latest-thumb:last-child { border-right: none; }
.latest-thumb:hover { opacity: 0.75; }

.latest-thumb-img {
  width: 100%;
  height: 80px;
  overflow: hidden;
  background: var(--light-gray);
}

.latest-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-placeholder { background: linear-gradient(135deg, #1a2a1a, #2a4a2a); }

.latest-thumb-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

/* ============================================================
   HLAVNÍ LAYOUT
   ============================================================ */

.main-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.main-col { min-width: 0; }

/* ============================================================
   HERO ČLÁNEK
   ============================================================ */

.hero-article {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--black);
  margin-bottom: 28px;
  cursor: pointer;
  color: inherit;
}

.hero-article-img {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0d1f0d, #1a3a1a);
}

.hero-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-article:hover .hero-article-img img { transform: scale(1.02); }

.hero-article-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1f0d, #1a3a1a);
}

/* OPRAVA — overlay musí být relativní k .hero-article, ne k stránce */
.hero-article {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--black);
  margin-bottom: 28px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 60px 32px 28px;
}

.hero-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.hero-category a { color: var(--green); }

.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.hero-meta strong { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ============================================================
   SECTION LABEL
   ============================================================ */

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--green);
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}

.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.article-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light-gray);
  display: block;
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-img img { transform: scale(1.05); }

.article-card-img-inner {
  font-size: 40px;
  opacity: 0.15;
}

.article-card-body { padding: 16px 18px 20px; }

.article-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.article-card-cat a { color: var(--green-dark); }

.article-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-card-meta {
  font-size: 12px;
  color: var(--mid-gray);
}

.article-card-meta strong { color: var(--dark-gray); font-weight: 600; }

/* LOAD MORE */
.load-more-wrap {
  text-align: center;
  padding: 24px 0 8px;
}

.load-more-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-gray);
  border: 1px solid var(--border);
  padding: 12px 28px;
  background: var(--white);
  transition: all 0.15s;
}

.load-more-btn:hover {
  border-color: var(--green);
  color: #111;
}

/* ============================================================
   NEWS LIST
   ============================================================ */

.news-list {
  border: 1px solid var(--border);
  background: var(--white);
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  color: inherit;
  text-decoration: none;
}

.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fafafa; }

.news-img {
  height: 72px;
  overflow: hidden;
  background: var(--light-gray);
}

.news-img img { width: 100%; height: 100%; object-fit: cover; }

.ni-placeholder { width: 100%; height: 100%; background: #1a2a1a; }

.news-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.news-cat a { color: var(--green-dark); }

.news-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 4px;
}

.news-date { font-size: 11px; color: var(--mid-gray); }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar { }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.widget-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--green);
  display: block;
  flex-shrink: 0;
}

/* About */
.about-widget { padding: 20px 16px; }

.about-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a3a2a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar-placeholder { font-size: 22px; }

.about-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.about-role {
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-bio { font-size: 13px; color: #555; line-height: 1.6; }

/* Trending */
.trending-list { list-style: none; padding: 0; margin: 0; }

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: #fafafa; }

.trending-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: right;
}

.trending-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
  text-decoration: none;
}

.trending-title:hover { color: var(--green-dark); }

/* Disclaimer */
.disclaimer-widget {
  padding: 14px 16px;
  font-size: 11.5px;
  color: var(--mid-gray);
  line-height: 1.5;
  border-top: 2px solid var(--green);
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-hero-img {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1a0a, #1a3a1a);
}

.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #0a1a0a, #1a3a1a); }

.article-meta-bar {
  max-width: 760px;
  margin: 28px auto;
  padding: 0 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--mid-gray);
  flex-wrap: wrap;
}

.article-meta-bar a { color: var(--green-dark); font-weight: 600; }
.article-meta-bar strong { color: #222; font-weight: 600; }

.article-meta-cat a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.article-content h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 28px;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-content .lead {
  font-size: 18px;
  color: #222;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 28px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
  color: #333;
  line-height: 1.75;
}

.article-content li { margin-bottom: 6px; }

.article-content a { color: var(--green-dark); text-decoration: underline; }

.article-content blockquote {
  border-left: 3px solid var(--green);
  margin: 24px 0;
  padding: 12px 20px;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 24px 0;
}

/* Spec box — shortcode nebo custom blok */
.spec-box {
  background: var(--black);
  color: var(--white);
  padding: 24px 28px;
  margin: 32px 0;
  border-left: 3px solid var(--green);
}

.spec-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.spec-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-key {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.spec-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.spec-val.green { color: var(--green); }

/* Tagy */
.article-tags {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid-gray);
  border: 1px solid var(--border);
  padding: 4px 12px;
  transition: all 0.15s;
}

.article-tag:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* Sdílení */
.article-share {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 0 auto 32px;
  max-width: 760px;
  padding-left: 24px;
  padding-right: 24px;
}

.article-share-inner { display: flex; align-items: center; gap: 12px; }

.share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.share-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--border);
  color: #444;
  transition: all 0.15s;
}

.share-btn:hover { border-color: var(--green); color: #111; }

/* Komentáře */
.article-comments {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ============================================================
   ARCHIV / SEARCH
   ============================================================ */

.archive-header { margin-bottom: 24px; }

.archive-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.archive-desc { font-size: 15px; color: var(--mid-gray); margin-top: 8px; }

.no-posts { padding: 40px 0; text-align: center; color: var(--mid-gray); }

/* STRÁNKOVÁNÍ */
.pagination { margin-top: 24px; }
.pagination .page-numbers { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }
.pagination .page-numbers li a,
.pagination .page-numbers li span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: #444;
  background: var(--white);
  transition: all 0.15s;
}
.pagination .page-numbers li .current { background: var(--green); color: #000; border-color: var(--green); }
.pagination .page-numbers li a:hover { border-color: var(--green); color: #111; }

/* ============================================================
   FOOTER
   ============================================================ */

#site-footer {
  background: var(--black);
  padding: 48px 24px 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo { margin-bottom: 12px; }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  margin-bottom: 8px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  transition: color 0.15s;
}
.footer-links li a:hover { color: rgba(255,255,255,0.8); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .main-wrap { grid-template-columns: 1fr 260px; gap: 24px; }
}

@media (max-width: 900px) {
  /* Layout — sidebar jde pod hlavní obsah */
  .main-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .main-col { order: 1; }
  .sidebar { order: 2; }

  /* Sidebar na mobilu — 2 sloupce vedle sebe */
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar .sidebar-widget { margin-bottom: 0; }

  /* Disclaimer přes celou šířku */
  .sidebar .sidebar-widget:last-child {
    grid-column: 1 / -1;
  }

  .articles-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; }
  .article-hero-img { height: 260px; }
  .spec-box-grid { grid-template-columns: 1fr; }

  /* Navigace na tabletu — menší písmo */
  .nav-item > a { padding: 0 10px; font-size: 12px; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  .logo { margin-right: 8px; }
  .main-wrap { padding: 16px 16px 40px; }

  /* Hero */
  .hero-article-img { height: 200px; }
  .hero-overlay { padding: 24px 16px 14px; }
  .hero-title { font-size: 17px; }
  .hero-category { font-size: 10px; }
  .hero-meta { font-size: 11px; }

  /* Latest strip */
  .latest-thumb { width: 120px; }

  /* Sidebar — jeden sloupec na malém mobilu */
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .sidebar-widget:last-child { grid-column: 1; }

  /* Navigace — skrýt na malém mobilu, zobrazit hamburger */
  .main-nav-wrap { display: none; }
  .main-nav-wrap.open { display: block; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    transition: all 0.2s;
  }

  /* Mobile nav menu */
  .main-nav-wrap {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black2);
    border-bottom: 2px solid var(--green);
    z-index: 500;
  }

  .main-nav {
    flex-direction: column;
    height: auto;
  }

  .nav-item { height: auto; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .nav-item > a {
    height: auto;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Dropdown na mobilu — vždy viditelný pod položkou */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.03);
    display: none;
  }

  .nav-item.open .dropdown { display: block; }

  .dropdown a { padding: 11px 32px; }

  /* Article */
  .article-content h1 { font-size: 22px; }
  .article-meta-bar { gap: 12px; font-size: 13px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; }
}

/* ============================================================
   SIDEBAR — nové prvky
   ============================================================ */

.about-more-btn {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.about-more-btn:hover { color: #111; }

/* Testing sidebar */
.testing-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.testing-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: #333;
}

.testing-sidebar-item:last-child { border-bottom: none; }

.tsi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tsi-active { background: var(--green); }
.tsi-done { background: #ccc; }

.tsi-name { font-weight: 500; line-height: 1.3; }

/* ============================================================
   AUTHOR CARD — sidebar
   ============================================================ */

.sidebar-author-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.sidebar-author-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sidebar-author-card:hover .author-card-arrow {
  color: var(--green-dark);
}

.author-card-inner { padding: 16px; }

.author-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.author-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a3a2a;
  font-size: 28px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info { flex: 1; }

.author-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.author-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #666;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2px 8px;
}

.author-card-arrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid-gray);
  text-align: right;
  transition: color 0.15s;
}

/* MOMENTÁLNĚ POUŽÍVÁM */
.currently-using {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.currently-using ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.currently-using ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.currently-using ul li:last-child { border-bottom: none; }

.currently-using ul li::before {
  content: '→';
  color: var(--green-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.currently-placeholder {
  color: var(--mid-gray);
  font-size: 13px;
  font-style: italic;
}

/* Author card — simplified */
.author-card-inner { padding: 16px; }

.author-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.author-free-text {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 14px;
}

.author-free-text p { margin-bottom: 10px; }
.author-free-text p:last-child { margin-bottom: 0; }

.author-placeholder {
  color: var(--mid-gray);
  font-size: 13px;
  font-style: italic;
}

.author-profile-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.15s;
  margin-top: 4px;
}

.author-profile-link:hover { color: #111; }

/* Hamburger — skrytý na desktopu */
.hamburger { display: none; }

@media (max-width: 600px) {
  .hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #39e879;
    border-radius: 2px;
  }

  .main-nav-wrap {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #111111;
    border-bottom: 2px solid #39e879;
    z-index: 500;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .main-nav-wrap.open {
    display: block !important;
  }

  .main-nav {
    flex-direction: column;
    height: auto;
    padding: 8px 0;
  }

  .nav-item {
    height: auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-item > a {
    height: auto;
    padding: 14px 20px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.03);
    display: none;
  }

  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 11px 32px; }
}


.footer-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-email:hover { color: var(--green-dark); }

/* ============================================================
   PAGE.PHP — statické stránky
   ============================================================ */

.page-content {
  background: var(--white);
  padding: 40px 48px;
  border: 1px solid var(--border);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.page-body {
  font-size: 16px;
  color: #333;
  line-height: 1.75;
}

.page-body p { margin-bottom: 16px; }
.page-body h2 { font-size: 22px; font-weight: 700; margin: 28px 0 14px; }
.page-body a { color: var(--green-dark); text-decoration: underline; }

@media (max-width: 600px) {
  .page-content { padding: 24px 16px; }
  .page-title { font-size: 24px; }
}

.footer-brand { text-align: left; }
.footer-logo { display: block; }

/* Oprava klikatelnosti — celá karta včetně textu */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card:hover .article-card-title {
  color: var(--green-dark);
  transition: color 0.15s;
}

/* Oprava klikatelnosti article-card — pointer events na celou kartu */
.article-card,
.article-card * {
  cursor: pointer;
}

.article-card .article-card-body {
  pointer-events: auto;
}

.article-card-img-link { display: block; }
.article-card-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.15s;
}
.article-card-title a:hover { color: var(--green-dark); }

/* Hero overlay — nesmí blokovat klikatelnost */
.hero-overlay {
  pointer-events: none;
}
.hero-article {
  display: block;
  position: relative;
}

/* Hero — odkaz musí být nad overlayem */
.hero-article {
  display: block;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.hero-article-img {
  position: relative;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}

/* Hero — full overlay link */
.hero-article { position: relative; display: block; }
.hero-article-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 60px 32px 28px;
}
.hero-overlay .hero-title a { pointer-events: auto; }
.hero-overlay .hero-title a:hover { text-decoration: underline; }

/* Všechny obrázky centrované */
.hero-article-img img,
.latest-thumb-img img,
.news-img img,
.article-hero-img img {
  object-position: center center;
}

/* Force center crop na všechny obrázky v kartách */
.article-card-img img,
.article-card-img .wp-post-image,
.hero-article-img img,
.hero-article-img .wp-post-image,
.latest-thumb-img img,
.latest-thumb-img .wp-post-image,
.news-img img,
.news-img .wp-post-image {
  object-fit: cover !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
}

/* Lupa v headeru — zelená */
.header-search { color: var(--green) !important; }
.header-search:hover { color: var(--green2) !important; }

/* Odkaz v titulku článku */
.article-card-title a {
  color: inherit;
  text-decoration: none;
}
.article-card-title a:hover {
  color: var(--green-dark);
}
