/*
Theme Name: Sula
Theme URI: https://sula.cloud
Author: Radim
Description: Čistý, minimalistický osobní web – projekty, blog, kontakt.
Version: 1.0
License: GNU General Public License v2
Text Domain: sula
*/

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg-soft:  #f7f7f5;
  --border:   #e8e8e4;
  --text:     #1a1a1a;
  --muted:    #6b6b6b;
  --accent:   #2563eb;
  --accent-h: #1d4ed8;
  --radius:   10px;
  --max:      1100px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ───────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header / Nav ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo-img { height: 48px; width: auto; display: block; }

.site-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover, .nav-links a.current { color: var(--text); }

.weather-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 99px; padding: 5px 14px; font-size: 0.78rem; flex-shrink: 0;
}
.weather-pill .w-item { display: flex; align-items: center; gap: 3px; color: var(--muted); white-space: nowrap; }
.weather-pill .w-item strong { color: var(--text); font-weight: 600; }
.weather-sep { color: var(--border); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 20px;
  max-width: 680px;
}

.hero p {
  font-size: 1.1rem; color: var(--muted);
  max-width: 520px; margin-bottom: 36px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-h); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: #ccc; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Section headers ──────────────────────────── */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
}
.section-header a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
}
.section-header a:hover { color: var(--accent); }

/* ── Project cards ────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.project-card-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.project-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}

.project-card p {
  font-size: 0.9rem; color: var(--muted);
  margin-bottom: 20px; line-height: 1.6;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag {
  font-size: 0.75rem; font-weight: 500;
  padding: 3px 10px; border-radius: 99px;
  background: var(--border); color: var(--muted);
}

.project-card-links { display: flex; gap: 10px; }
.project-link {
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
}
.project-link:hover { color: var(--accent-h); }

/* ── Blog list ────────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 1px; }

.blog-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.blog-item:first-child { border-top: 1px solid var(--border); }

.blog-item-meta {
  font-size: 0.8rem; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}

.blog-item h3 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.blog-item h3 a { color: var(--text); }
.blog-item h3 a:hover { color: var(--accent); }

.blog-item p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }

/* ── Contact section ──────────────────────────── */
.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 600px;
}

.contact-box h2 {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}

.contact-box p { color: var(--muted); margin-bottom: 28px; }

.contact-form label {
  display: block; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
  margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ── Weather board shortcode ───────────────────── */
.weather-board {
  display: inline-flex; flex-direction: column; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  min-width: 240px;
}
.wb-row { display: flex; justify-content: space-between; gap: 24px; font-size: 0.95rem; }
.wb-label { color: var(--muted); }
.wb-val { font-weight: 600; color: var(--text); }
.weather-board-empty { color: var(--muted); font-size: 0.9rem; }

/* ── Cloud / Services page ─────────────────────── */
.services-header { padding: 64px 0 44px; border-bottom: 1px solid var(--border); }
.services-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.services-header p { color: var(--muted); margin-top: 8px; max-width: 500px; }

.services-section { padding-top: 48px; }
.services-section-title { font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }

.service-card { display: flex; flex-direction: column; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; transition: box-shadow .2s, transform .2s, border-color .2s; text-decoration: none; color: inherit; }
.service-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); border-color: #d0d0ca; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.service-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.service-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; flex: 1; }
.service-badge { margin-top: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; width: fit-content; }
.badge-online  { background: #d1fae5; color: #065f46; }
.badge-private { background: #ede9fe; color: #5b21b6; }
.badge-local   { background: #fef3c7; color: #92400e; }
.services-legend { font-size: 0.8rem; color: var(--muted); padding: 32px 0 56px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.services-legend .service-badge { margin-top: 0; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.site-footer .container {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer p { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ── Blog single ──────────────────────────────── */
.post-header { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.post-header .post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.2; max-width: 720px;
}

.post-content {
  max-width: 680px; padding: 48px 0;
}
.post-content h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 14px; }
.post-content p  { margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 6px; }
.post-content pre {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  overflow-x: auto; margin-bottom: 20px;
  font-size: 0.88rem;
}
.post-content code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
}
.post-content :not(pre) > code {
  background: var(--bg-soft); padding: 2px 6px;
  border-radius: 4px; border: 1px solid var(--border);
}

/* ── Archive ──────────────────────────────────── */
.archive-header { padding: 64px 0 40px; }
.archive-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .contact-box { padding: 28px 20px; }
  .hero { padding: 60px 0 52px; }
  .section { padding: 56px 0; }
  .blog-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-header { flex-direction: column; gap: 8px; }
}

/* Galerie projektu */
.projekt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.projekt-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.projekt-gallery a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.projekt-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
