/* ============================================================
   DATABÁZE OSVČ – Sdílený styl článků (podnikani/ + clanek/)
   Redesign 2025 – sjednoceno s designem subjekt/style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue:    #1a6fa8;
  --blue-dk: #0d4f7c;
  --blue-lt: #007aae;
  --bg:      #eef2f6;
  --card:    #ffffff;
  --text:    #1a202c;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --r:       12px;
  --sh:      0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.05);
  --max-w:   860px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ──── TOPBAR ──── */

.art-topbar {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  padding: 0.7rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.art-topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0.92;
  flex-shrink: 0;
}
.art-topbar-logo:hover { opacity: 1; color: #fff; }
.art-topbar-logo img { width: 20px; height: 20px; }

.art-topbar-sep {
  color: rgba(255,255,255,.35);
  margin: 0 0.15rem;
  font-size: 0.8rem;
}

.art-topbar-crumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ──── LAYOUT ──── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

/* ──── ARTICLE CARD ──── */

.art-card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 2rem 2.25rem 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 580px) {
  .art-card { padding: 1.25rem 1.1rem 1.25rem; }
  .container { padding-top: 1.5rem; }
}

/* ──── TYPOGRAPHY ──── */

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.6rem;
  padding-top: 0.25rem;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.4rem 0 0.4rem;
}

h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.2rem 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 1rem 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--blue-lt);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--blue-dk); }

strong, b { font-weight: 600; color: var(--text); }

/* ──── ARTICLE META (datum, kategorie) ──── */

.art-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.art-meta-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ──── HERO IMAGE ──── */

.art-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: calc(var(--r) - 2px);
  margin: 0 0 1.5rem;
  display: block;
}

/* ──── RELATED ARTICLES ──── */

.art-related {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 580px) {
  .art-related { padding: 1rem 1.1rem; }
}

.art-related-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.art-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.art-related-link {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--blue-lt);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.35;
}
.art-related-link:hover {
  border-color: var(--blue-lt);
  background: #fff;
  color: var(--blue-dk);
}
.art-related-link::before {
  content: '→';
  font-size: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: var(--blue);
}

/* ──── FOOTER ──── */

.art-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.art-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.art-footer a:hover { color: var(--blue); }

.art-footer-sep {
  color: var(--border);
}

/* ──── ŽIVNOST LIST (seznam živností) ──── */

.zivnost-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.zivnost-list li {
  padding: 0.35rem 0 0.35rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  position: relative;
}
.zivnost-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue-lt);
  font-weight: 700;
}
.zivnost-list li:last-child { border-bottom: none; }

/* ──── ŽIVNOST KATEGORIE TABS ──── */

.zivnost-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.zivnost-tab {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: var(--bg);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.zivnost-tab:hover,
.zivnost-tab.active {
  border-color: var(--blue-lt);
  color: var(--blue);
  background: #fff;
}
