/*
Theme Name: Průvodce Gruzií
Theme URI: https://pruvodcegruzie.com/
Author: Pruvodce Gruzii
Description: Vlastni cesky tema pro cestovatelsky pruvodce po Gruzii. Rychle, bez zavislosti na knihovnach tretich stran, pripravene na AdSense.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pruvodce
Tags: blog, travel, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --wine:        #7b1f2b;
  --wine-dark:   #5c1620;
  --wine-soft:   #f6ecee;
  --gold:        #c08a2e;
  --ink:         #1d1b19;
  --body:        #3f3b37;
  --muted:       #6f6862;
  --line:        #e6e0d8;
  --paper:       #ffffff;
  --cream:       #faf7f2;
  --cream-deep:  #f2ede4;

  --w-wide: 1180px;
  --w-text: 720px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-s: 0 1px 2px rgba(29,27,25,.06), 0 2px 8px rgba(29,27,25,.05);
  --shadow-m: 0 4px 12px rgba(29,27,25,.08), 0 12px 32px rgba(29,27,25,.07);

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

/* ============================================================
   2. Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p, ul, ol, table, figure, blockquote, pre { margin: 0 0 1.25em; }

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--wine); color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--wine); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm);
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ============================================================
   3. Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--text { max-width: var(--w-text); }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 .6rem;
}
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--wine); color: #fff !important; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--wine);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--wine-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--wine) !important; }
.btn--ghost:hover { background: var(--wine-soft); }

/* ============================================================
   4. Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink);
  letter-spacing: -.01em;
}
.brand__tag { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.brand:hover .brand__name { color: var(--wine); }

.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--body); font-size: .95rem; font-weight: 500;
}
.nav a:hover { background: var(--cream-deep); color: var(--ink); }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--wine); font-weight: 600; }
.nav li { position: relative; }
.nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-m); padding: .4rem; flex-direction: column;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }

.header-search { flex: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m); padding: .75rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding-left: 1rem; }
}

/* ============================================================
   5. Search form
   ============================================================ */
.searchform { display: flex; gap: .4rem; }
.searchform input[type="search"] {
  flex: 1; min-width: 0; padding: .7rem 1rem; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
}
.searchform input[type="search"]:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px var(--wine-soft); }
.searchform button {
  flex: none; padding: .7rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--wine); color: #fff; font-family: inherit; font-weight: 600; font-size: .9rem;
}
.searchform button:hover { background: var(--wine-dark); }

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #40101a 0%, var(--wine) 55%, #94303c 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='.07' d='M0 220l180-90 130 70 150-120 170 110 160-80 180 130 150-60 160 60v130H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.05' d='M0 270l200-70 160 50 180-90 140 80 200-60 180 90 190-50v100H0z'/%3E%3C/svg%3E") no-repeat bottom center / 100% 100%;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 58ch; margin-bottom: 1.75rem; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero .searchform { max-width: 520px; }
.hero .searchform input[type="search"] { border-color: transparent; }
.hero .searchform button { background: var(--ink); }
.hero .searchform button:hover { background: #000; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.25rem; }
.hero__stat b { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.hero__stat span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ============================================================
   7. Cards & grids
   ============================================================ */
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #d8cfc2; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--cream-deep); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty {
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--cream-deep), #e9e0d2);
  color: #b8a88f;
}
.card__cat {
  position: absolute; left: .8rem; top: .8rem; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--wine);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; text-decoration: none;
}
.card__cat:hover { background: #fff; color: var(--wine-dark); }
.card__body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.22rem; margin: 0 0 .5rem; line-height: 1.28; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--wine); }
.card__excerpt { font-size: .93rem; color: var(--muted); margin: 0 0 1rem; }
.card__meta {
  margin-top: auto; font-size: .78rem; color: var(--muted);
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: .8rem;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Featured (first) card on front page */
.card--feature { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .card--feature { flex-direction: row; align-items: stretch; }
  .card--feature .card__media { flex: 0 0 52%; aspect-ratio: auto; }
  .card--feature .card__body { justify-content: center; padding: 2.25rem 2.5rem; }
  .card--feature .card__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
  .card--feature .card__excerpt { font-size: 1.02rem; }
}

/* Category tiles */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tile {
  display: block; text-decoration: none; padding: 1.4rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tile:hover { border-color: var(--wine); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.tile__icon { color: var(--wine); margin-bottom: .75rem; }
.tile__name { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.1rem; display: block; margin-bottom: .25rem; }
.tile__count { font-size: .8rem; color: var(--muted); }

/* ============================================================
   8. Single post
   ============================================================ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--wine)); z-index: 200; transition: width .1s linear;
}

.breadcrumbs { font-size: .82rem; color: var(--muted); padding-block: 1rem 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wine); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin-inline: .4rem; opacity: .5; }

.entry-header { padding-block: 1.5rem 2rem; }
.entry-header .entry-title { margin-bottom: .75rem; }
.entry-lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-bottom: 1.25rem; }
.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  font-size: .85rem; color: var(--muted);
}
.entry-meta a { color: var(--wine); text-decoration: none; font-weight: 600; }
.entry-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.featured-image { margin: 0 0 2rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-s); }
.featured-image img { width: 100%; }
.featured-image figcaption { font-size: .8rem; color: var(--muted); padding: .6rem 0 0; }

/* TOC */
.toc {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--wine);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin: 0 0 2rem;
}
.toc__title { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin: 0 0 .7rem; }
.toc ol { margin: 0; padding-left: 1.15rem; font-size: .93rem; }
.toc li { margin-bottom: .35rem; }
.toc li li { margin-top: .3rem; font-size: .9rem; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--wine); text-decoration: underline; }

/* Content typography */
.entry-content { font-size: 1.075rem; }
.entry-content > * { max-width: var(--w-text); margin-inline: auto; }
.entry-content h2 { margin-top: 2.4em; scroll-margin-top: 90px; }
.entry-content h3 { margin-top: 1.9em; scroll-margin-top: 90px; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--wine); }
.entry-content blockquote {
  border-left: 3px solid var(--gold); background: var(--paper);
  padding: 1rem 1.4rem; margin-block: 2rem; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure, .entry-content .wp-block-image { margin-block: 2rem; }
.entry-content img { border-radius: var(--r-md); }
.entry-content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .55rem; }
.entry-content .alignwide { max-width: 1000px; }
.entry-content .alignfull { max-width: none; width: 100%; }
.entry-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
.entry-content th { background: var(--cream-deep); font-family: var(--sans); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.entry-content code { background: var(--cream-deep); padding: .15em .4em; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: var(--ink); color: #f3efe9; padding: 1rem 1.2rem; border-radius: var(--r-md); overflow-x: auto; }
.entry-content pre code { background: none; color: inherit; }
.table-scroll { overflow-x: auto; }

/* Tags / share / author */
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0 0; }
.entry-tags a {
  font-size: .8rem; text-decoration: none; color: var(--body);
  background: var(--cream-deep); border-radius: 999px; padding: .35rem .85rem;
}
.entry-tags a:hover { background: var(--wine); color: #fff; }

.author-box {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; margin-top: 2.5rem;
}
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.author-box p { font-size: .92rem; color: var(--muted); margin: 0; }

.post-nav { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block; padding: 1rem 1.2rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none;
}
.post-nav a:hover { border-color: var(--wine); }
.post-nav small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.post-nav strong { font-family: var(--serif); color: var(--ink); font-weight: 700; font-size: 1rem; }
.post-nav .next { text-align: right; }

/* ============================================================
   9. Pagination
   ============================================================ */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: .7rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  text-decoration: none; color: var(--body); font-size: .92rem;
}
.pagination .page-numbers:hover { border-color: var(--wine); color: var(--wine); }
.pagination .current { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 700; }

/* ============================================================
   10. Newsletter / CTA strip
   ============================================================ */
.cta-strip {
  background: var(--ink); color: #f4efe8; border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem); text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.72); max-width: 55ch; margin-inline: auto; }

/* ============================================================
   11. Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 4rem; }
.footer-top { display: grid; gap: 2.5rem; padding-block: 3rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h3 { color: #fff; font-size: .8rem; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .93rem; }
.footer-about p { font-size: .93rem; max-width: 42ch; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand .brand__name { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .82rem;
}

/* ============================================================
   12. Comments (kept minimal, closed by default)
   ============================================================ */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-family: inherit; font-size: .95rem; background: var(--paper);
}
.comment-form label { display: block; font-size: .85rem; margin-bottom: .3rem; font-weight: 600; color: var(--ink); }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit { width: auto; background: var(--wine); color: #fff; border: 0; padding: .8rem 1.6rem; border-radius: 999px; cursor: pointer; font-weight: 600; }

/* ============================================================
   13. 404 / no results
   ============================================================ */
.notice-block { text-align: center; padding-block: 4rem; }
.notice-block h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--wine); opacity: .25; margin-bottom: 0; }
.notice-block .searchform { max-width: 440px; margin: 1.75rem auto 0; }

/* ============================================================
   14. Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .toc, .post-nav, .cta-strip, .progress-bar, .breadcrumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { text-decoration: underline; }
}
