/* parkingsite_v4 "bold" theme — rich layout inspired by beznadpisu.cz */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

noscript {
  font-family: monospace;
  white-space: pre-wrap;
  display: block;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #333;
  background: #f0f2f5;
}

a { color: #1565c0; text-decoration: none; }
a:hover { text-decoration: underline; color: #0d47a1; }

/* === Header / Top Bar === */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.top-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1565c0;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-name:hover {
  text-decoration: none;
  color: #0d47a1;
}

/* Nav inside header — right-aligned links */
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

header nav li {
  display: inline;
}

header nav li + li::before {
  content: "|";
  margin: 0 0.85rem;
  color: #ccc;
  font-weight: 300;
}

header nav a {
  color: #555;
  font-weight: 500;
  font-size: 0.9rem;
}

header nav a:hover {
  color: #1565c0;
  text-decoration: none;
}

/* === Banner Ad Area === */
.banner-ad {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-bottom: 1px solid #b0bec5;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-ad span {
  font-size: 0.75rem;
  color: #90a4ae;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* === Main layout === */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

/* === Article === */
article {
  margin: 0;
  padding: 0;
}

/* Tagline h2 — blue gradient banner bar */
article > h2:first-child {
  background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
  color: #fff;
  margin: 0 -2rem 2rem;
  padding: 1.5rem 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: none;
}

/* Other h2 headings */
article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e0e0;
}

/* Intro paragraph (first p) */
article > p:first-of-type {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Regular paragraphs */
article p {
  margin: 0 0 1.25rem;
}

/* Section headings */
article h3 {
  color: #1565c0;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.5rem 0 0.5rem;
}

/* === Brand Tiles Grid — first ul in article === */
article > ul:first-of-type {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

article > ul:first-of-type > li {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #1565c0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: default;
}

article > ul:first-of-type > li:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Cycling top border colors */
article > ul:first-of-type > li:nth-child(4n+1) { border-top-color: #1565c0; }
article > ul:first-of-type > li:nth-child(4n+2) { border-top-color: #00897b; }
article > ul:first-of-type > li:nth-child(4n+3) { border-top-color: #ef6c00; }
article > ul:first-of-type > li:nth-child(4n+4) { border-top-color: #7b1fa2; }

/* Brand name inside tile */
article > ul:first-of-type > li strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.25rem;
}

/* === Blockquote callout === */
blockquote {
  background: #e3f2fd;
  border-left: 4px solid #1565c0;
  margin: 0 0 2rem;
  padding: 1.25rem 1.75rem;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* === Regular lists (not the first tile grid) === */
article ul, article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
}

article li {
  margin-bottom: 0.35rem;
}

/* === Aside (if present) === */
aside {
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  border-left: 4px solid #1565c0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

aside h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #333;
}

aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

aside li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}

aside li:last-child {
  border-bottom: none;
}

/* === Footer — dark, substantial === */
footer {
  background: #263238;
  color: #b0bec5;
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

footer a {
  color: #80cbc4;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
}

footer li {
  display: inline;
}

footer li + li::before {
  content: "|";
  margin: 0 0.85rem;
  color: #546e7a;
  font-weight: 300;
}

/* === Ad slots (injected by ads.js) === */
.ad-slot {
  background: #f5f5f5;
  border: 1px dashed #cfd8dc;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #90a4ae;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === Typography extras === */
pre, code {
  background: #f5f5f5;
  border-radius: 4px;
}

pre {
  padding: 1.25em;
  overflow-x: auto;
}

code {
  padding: 0.15em 0.35em;
  font-size: 0.9em;
}

pre code {
  padding: 0;
}

strong {
  color: #1a1a1a;
}

/* === Responsive === */
@media (max-width: 960px) {
  article > ul:first-of-type {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .top-bar {
    padding: 0 1rem;
    height: 48px;
  }

  .site-name {
    font-size: 1.15rem;
  }

  header nav a {
    font-size: 0.85rem;
  }

  header nav li + li::before {
    margin: 0 0.5rem;
  }

  main {
    padding: 0 1rem 1.5rem;
  }

  article > h2:first-child {
    margin: 0 -1rem 1.5rem;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
  }

  article > ul:first-of-type {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  article > ul:first-of-type {
    grid-template-columns: 1fr;
  }
}
