/* =========================
   Svatba-tipy.cz
   modern • light • cheerful wedding style
   ========================= */

:root{
  --bg: #fbfaf8;
  --surface: rgba(255,255,255,.85);
  --surface-solid:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border: rgba(31,41,55,.10);

  --accent: #ff4fa3;
  --accent2:#6c63ff;
  --accent3:#22c55e;

  --shadow: 0 12px 35px rgba(17,24,39,.10);
  --shadow-soft: 0 10px 25px rgba(17,24,39,.08);
  --radius: 18px;

  --container: 1120px;
  --container-narrow: 820px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  line-height:1.6;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,79,163,.18), transparent 65%),
    radial-gradient(900px 550px at 90% 10%, rgba(108,99,255,.16), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(34,197,94,.10), transparent 60%),
    var(--bg);
  background-repeat:no-repeat;
}

/* ---------- Layout ---------- */

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
}

.container.narrow{
  max-width:var(--container-narrow);
}

main{padding:26px 0 60px}

/* ---------- Links ---------- */

a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}

.muted{color:var(--muted)}
.small{font-size:.9rem}

/* ---------- Header ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(251,250,248,.75);
  border-bottom:1px solid var(--border);
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  flex-wrap:wrap;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-img{
  height:46px;
  max-width:220px;
  width:auto;
  object-fit:contain;
  display:block;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav a{
  padding:8px 12px;
  border-radius:12px;
  color:var(--muted);
}

.nav a:hover{
  background: rgba(255,79,163,.12);
  color:var(--text);
}

/* ---------- Hero ---------- */

.hero{
  padding:28px 22px;
  border-radius:22px;
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(255,79,163,.22), transparent 55%),
    radial-gradient(650px 280px at 100% 0%, rgba(108,99,255,.18), transparent 55%),
    rgba(255,255,255,.75);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.hero h1{
  margin:0 0 8px;
  font-size:clamp(1.7rem,3vw,2.3rem);
}

.hero p{
  margin:0 0 14px;
  color:var(--muted);
  max-width:56ch;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------- Buttons ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid rgba(255,79,163,.25);
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;
  font-weight:700;
  box-shadow:0 12px 25px rgba(108,99,255,.22);
  transition:.15s ease;
}

.btn:hover{transform:translateY(-1px)}

.btn-ghost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}

/* ---------- Sections ---------- */

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:26px 0 12px;
}

.section-head h2{margin:0}

/* ---------- Grid & Cards ---------- */

.grid{
  display:grid;
  gap:14px;
}

@media (min-width:768px){
  .grid{grid-template-columns:repeat(3,1fr)}
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}

/* homepage články */
.post-card{
  padding:0;
  overflow:hidden;
  transition:.15s ease;
}

.post-card:hover{
  transform:translateY(-2px);
}

/* ✅ VRÁCENO DO NORMÁLU: bannerový náhled */
.post-card__cover{
  aspect-ratio: 16 / 9;      /* banner */
  background: rgba(0,0,0,.03);
  display:block;
  overflow:hidden;
}

.post-card__cover img{
  width:100%;
  height:100%;
  object-fit:cover;          /* vyplní box – žádné bílé plochy */
  display:block;
}

.post-card__body{
  padding:14px;
}

.post-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:8px;
}

.pill{
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,79,163,.12);
  font-size:.8rem;
  font-weight:700;
}

.post-title{
  margin:0 0 6px;
  font-size:1.05rem;
  line-height:1.25;
}

.post-title a:hover{color:var(--accent)}

.post-card__body p{
  margin:0;
}

/* ---------- Forms ---------- */

.form-inline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

input[type="email"]{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  min-width:240px;
}

/* ---------- Article ---------- */

/* obrázky v obsahu */
.post-content img{
  max-width:100%;
  height:auto;
  display:block;
}

/* figure + obrázky jen na šířku textu */
.post-figure{
  margin:28px auto;
  max-width:720px;
}

.post-figure img{
  width:100%;
  border-radius:18px;
  box-shadow:0 12px 32px rgba(0,0,0,.10);
}

.post-figure figcaption{
  margin-top:8px;
  text-align:center;
  font-size:.85rem;
  opacity:.75;
}

/* ---------- Footer ---------- */

.site-footer{
  border-top:1px solid var(--border);
  background: rgba(251,250,248,.75);
  padding:18px 0;
}

/* ---------- Mobile ---------- */

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  width:20px;
  height:2px;
  background:#333;
  border-radius:99px;
}

@media (max-width:768px){
  .logo-img{height:34px}

  .nav-toggle{display:flex}

  .site-header .container{
    position:relative;
  }

  .nav{
    display:none;
    position:absolute;
    right:18px;
    top:72px;
    width:min(320px,92vw);
    padding:12px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 18px 50px rgba(0,0,0,.10);
    flex-direction:column;
    gap:10px;
    z-index:999;
  }

  .nav.is-open{display:flex}

  .post-figure{max-width:100%}
}
/* === Odkazy v obsahu článků === */
.post-content a{
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 3px;
}

.post-content a:hover{
  color: var(--accent2);
  text-decoration-thickness: 2px;
}
/* Promo lišta – Svatba-tipy.cz */
.promo-bar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #2a1040;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.promo-bar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.promo-bar strong{ font-weight: 800; }

.promo-bar__link{
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}

/* zavírací tlačítko */
.promo-bar__close{
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.promo-bar__right{
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px){
  .promo-bar__inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .promo-bar__link{ white-space: normal; }
  .promo-bar__right{ width: 100%; justify-content: space-between; }
}
