/* =========================================================
   MINIMALISTICKÝ CSS - water.css style + obrázky
   ========================================================= */

:root {
  /* Barvy */
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --border: #d1d5db;
  
  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --line-height: 1.6;
  
  /* Spacing */
  --gap: 1rem;
}

/* Reset */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 2rem 0 1rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 var(--gap);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

header h1 {
  margin: 0 0 0.5rem;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

/* Main */
main {
  margin-bottom: 3rem;
}

section {
  margin-bottom: 2rem;
}

article {
  margin-bottom: 3rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Lists */
ul, ol {
  margin: 0 0 var(--gap);
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 var(--gap);
  color: var(--text-muted);
  font-style: italic;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* =========================================================
   HERO IMAGE s nadpisem v obrázku
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero obrázek na pozadí */
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Tmavý overlay pro lepší čitelnost textu */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* Textový obsah přes obrázek */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   OBRÁZKY
   ========================================================= */

/* Základní obrázek */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 1. Obrázek přes celý textový sloupec */
.img-full {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
}

/* Figure s popiskem */
figure {
  margin: 2rem 0;
}

figure img {
  border-radius: 8px;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* =========================================================
   ARTICLE BOX - nadpis, datum, obrázek vpravo
   ========================================================= */

.article-box {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 8px;
  margin: 2rem 0;
  align-items: start;
}

/* Textová část vlevo */
.article-box__content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.article-box__content h3 a {
  color: var(--text);
}

.article-box__content h3 a:hover {
  color: var(--accent);
}

.article-box__date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-box__excerpt {
  margin: 0;
  line-height: 1.6;
}

/* Obrázek vpravo */
.article-box__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .hero {
    height: 350px;
  }
  
  .article-box {
    grid-template-columns: 1fr;
  }
  
  .article-box__image {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .hero {
    height: 300px;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .article-box {
    padding: 1rem;
  }
}