/* =========================
   BLOG – SPOLEČNÉ NASTAVENÍ
   (seznam + detail)
========================= */

.page {
  padding-top: 80px; /* kvůli fixed navigaci nahoře */
}

strong {
  color: #975300
}

/* Užitečné pomocné třídy */
.section-narrow {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   BLOG – SEZNAM ČLÁNKŮ (blog.html)
========================= */

#blog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: rgba(5, 7, 10, 0.9);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.blog-card h2 a {
  color: var(--text);
}

.post-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.read-more {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* =========================
   BLOG – DETAIL ČLÁNKU (post.html)
========================= */

.post-detail {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

/* Hlavička článku */
.post-header {
  margin-bottom: 2rem;
}

.post-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

#post-title {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

#post-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Tagy pod titulkem */
#post-tags {
  margin-top: 0.7rem;
}

#post-tags .tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

/* Markdown obsah článku */
.post-content {
  margin-top: 2rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text);
}

/* Nadpisy z Markdownu */
.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.post-content h1 {
  font-size: 1.7rem;
}

.post-content h2 {
  font-size: 1.4rem;
}

.post-content h3 {
  font-size: 1.2rem;
}

/* Odstavce a seznamy */
.post-content p {
  margin: 0.7rem 0;
}

.post-content ul,
.post-content ol {
  margin: 0.6rem 0 0.6rem 1.4rem;
}

/* Odkazy v textu */
.post-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Kód a code bloky */
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.post-content pre code {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

/* Navigace mezi články */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
}

.post-navigation a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* =========================
   BLOG – DETAIL ČLÁNKU
========================= */

.post-detail {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  padding: 1.8rem 1.8rem 2rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(64,196,255,0.12), transparent 55%),
              rgba(5,7,10,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.7);
}

/* Hlavička článku */
.post-header {
  margin-bottom: 1.8rem;
}

.post-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

#post-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.post-meta,
#post-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Tagy pod titulkem */
.post-tags,
#post-tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-tags .tag {
  font-size: 0.75rem;
  padding: 0.18rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

/* Obsah článku (Markdown) */
.post-content {
  margin-top: 1.8rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text);
}

/* Nadpisy v textu */
.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.post-content h1 {
  font-size: 1.6rem;
}

.post-content h2 {
  font-size: 1.35rem;
}

.post-content h3 {
  font-size: 1.15rem;
}

/* Odstavce a seznamy */
.post-content p {
  margin: 0.7rem 0;
}

.post-content ul,
.post-content ol {
  margin: 0.7rem 0 0.7rem 1.5rem;
}

/* Odkazy */
.post-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Citace */
.post-content blockquote {
  border-left: 3px solid rgba(255,255,255,0.2);
  margin: 1.2rem 0;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-style: italic;
  color: var(--muted);
}

/* Kód */
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.post-content pre code {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  overflow-x: auto;
}

/* Navigace mezi články */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-decoration: none;
}

.post-nav-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .post-detail {
    margin: 1.8rem 1rem 3rem;
    padding: 1.4rem 1.2rem 1.7rem;
  }

  #post-title {
    font-size: 1.6rem;
  }
}
