/* tiskAIrna — main.css */

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #181818;
  --surface:   #1e1e1e;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --text:      #f0ede6;
  --text2:     #9e9b94;
  --text3:     #5a5752;
  --accent:    #d4a843;
  --accent2:   #e8c060;
  --info:      #4a9eff;
  --success:   #4caf72;
  --danger:    #e24b4b;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --font:      'Inter', system-ui, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typografie ─────────────────────────── */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.2; }
a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }

/* ── Navigace ───────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.credits-badge {
  background: var(--surface);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ── Tlačítka ───────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
  font-family: var(--font);
  display: inline-block;
}
.btn-primary:hover { opacity: .88; color: #000; }

.btn-ghost {
  color: var(--text2);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--border2);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); opacity: 1; background: var(--surface); }

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: var(--info);
  bottom: -150px; right: -100px;
}

.hero-content {
  position: relative;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--accent);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Prompt box ─────────────────────────── */
.prompt-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: left;
  transition: border-color .2s;
}
.prompt-box:focus-within { border-color: var(--accent); }

.prompt-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  resize: none;
  outline: none;
  line-height: 1.6;
  min-height: 52px;
}
.prompt-input::placeholder { color: var(--text3); }

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.prompt-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .12s;
  font-family: var(--font);
}
.chip:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: var(--border2); }

.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-generate:hover { opacity: .88; }
.btn-generate:disabled { opacity: .4; cursor: default; }

.hero-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--text3);
  flex-wrap: wrap;
}

/* ── Sekce ──────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--bg2); }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ── Produkty grid ──────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  color: var(--text);
}
.product-card:hover {
  border-color: var(--accent);
  background: rgba(212,168,67,0.05);
  transform: translateY(-2px);
  opacity: 1;
}

.product-icon { font-size: 2rem; margin-bottom: .75rem; }
.product-name { font-weight: 600; font-size: 15px; margin-bottom: .35rem; }
.product-desc { font-size: 12px; color: var(--text2); }

/* ── Steps ──────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step { padding: 1.5rem; }
.step-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(212,168,67,0.2);
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: .75rem;
}
.step-title { font-weight: 600; font-size: 17px; margin-bottom: .5rem; }
.step-desc  { color: var(--text2); font-size: 14px; }

/* ── Footer ─────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 12px; color: var(--text3); margin-top: 2px; }
.footer-links { display: flex; gap: 1rem; flex: 1; flex-wrap: wrap; }
.footer-links a { color: var(--text2); font-size: 13px; }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── Admin ──────────────────────────────── */
.admin-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.admin-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  padding: .5rem;
}
.admin-logo span { color: var(--accent); }
.admin-nav a {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 2px;
  transition: all .15s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: var(--surface);
  color: var(--text);
  opacity: 1;
}
.admin-main { padding: 2rem; }
.admin-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }

/* Tabulky v adminu */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); color: var(--text2); font-weight: 500; }
td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--surface); }

/* Formuláře */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 5px; }
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: .55rem .75rem;
}
.form-input:focus { outline: none; border-color: var(--accent); }

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.badge-green  { background: rgba(76,175,114,.15); color: #4caf72; }
.badge-amber  { background: rgba(212,168,67,.15); color: var(--accent); }
.badge-red    { background: rgba(226,75,75,.15);  color: var(--danger); }
.badge-gray   { background: var(--surface); color: var(--text2); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: .75rem 1rem; }
  .hero { padding: 2rem 1rem; min-height: auto; }
  .section { padding: 3rem 1rem; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .prompt-actions { flex-direction: column; align-items: stretch; }
  .btn-generate { justify-content: center; }
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.feature-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.feature-title { font-weight: 600; margin-bottom: .4rem; font-size: 15px; }
.feature-desc  { color: var(--text2); font-size: 13px; line-height: 1.6; }

/* Galerie veřejných plakátů */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; display: block; cursor: pointer; background: var(--surface); transition: transform .2s; }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; padding: .75rem; opacity: 0; transition: opacity .2s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: 12px; font-weight: 600; }
