/*
Theme Name: NeuroBlog
Theme URI: https://example.com/
Author: Bago
Description: Čistá minimalistická WordPress téma pre blog a jednoduchý spravodajský web.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: neuroblog
*/

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #b91c1c;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site-header-inner,
.site-footer-inner,
.site-main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 52px;
  object-fit: contain;
}
.site-title { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.site-description { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.main-navigation { margin-left: auto; }
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.main-navigation a { font-weight: 700; font-size: 15px; }
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--accent); }

.site-main { padding: 48px 0 64px; }
.page-title { margin: 0 0 32px; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; }

.post-list { display: grid; gap: 0; }
.post-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.post-card:first-child { border-top: 0; padding-top: 0; }
.post-card-image a { display: block; }
.post-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}
.post-card-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.post-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.post-excerpt { color: #303030; }
.post-excerpt p { margin: 0; }
.read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid var(--line);
}
.pagination .current { background: #111; color: #fff; border-color: #111; }

.single-article,
.page-article { max-width: 760px; margin: 0 auto; }
.single-title {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.single-featured { margin: 32px 0; }
.single-featured img { width: 100%; }
.entry-content { font-size: 19px; }
.entry-content h2,
.entry-content h3 { line-height: 1.2; margin-top: 2em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 2em 0;
  padding-left: 22px;
  border-left: 4px solid var(--text);
  font-size: 1.15em;
}

.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner {
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .custom-logo { max-width: 180px; max-height: 46px; }
  .main-navigation { margin-left: 0; width: 100%; }
  .main-navigation ul { flex-wrap: wrap; gap: 10px 16px; }
  .site-main { padding-top: 32px; }
  .post-card { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .post-card-title { font-size: 30px; }
}

/* NeuroBlog 1.1 – header social links + footer menu */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.header-right .main-navigation { margin-left: 0; }

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background-color .15s ease, color .15s ease;
}

.social-links a:hover {
  color: var(--accent);
  background: #f5f5f5;
}

.social-links svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.site-footer-inner { padding: 28px 0; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-navigation ul,
.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
}

.footer-navigation a {
  color: var(--text);
  font-weight: 700;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-right {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
