/*
Theme Name: Oficiální ocenění
Author: Ogycek
Version: 0.1.0
Text Domain: oficialni-oceneni
*/

:root {
  --bg: #070a12;
  --fg: #eef2ff;
  --muted: rgba(238,242,255,.72);
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.085);
  --border: rgba(255,255,255,0.14);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --accent: #7c3aed;
  --accent2: #3b82f6;
  --gold: #f5d06f;
  --radius: 18px;
}

html { scroll-behavior: smooth; }
body {
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  background: radial-gradient(1200px 900px at 12% 8%, rgba(124,58,237,.22), transparent 52%),
              radial-gradient(1100px 900px at 88% 16%, rgba(59,130,246,.18), transparent 55%),
              radial-gradient(900px 700px at 60% 90%, rgba(245,208,111,.08), transparent 60%),
              var(--bg);
  color: var(--fg);
}

* { box-sizing: border-box; }

.oo-wrap { max-width: 1160px; margin: 0 auto; padding: 28px 22px; width: 100%; }

/* Utilities */
.oo-badge {
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  width: fit-content;
}


/* Center homepage headline over video */
.home .oo-hero__content { align-items: center; }
.oo-btn {
  display: inline-flex;
  width: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(59,130,246,.92));
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 14px 32px rgba(124,58,237,.22);
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}

/* Bigger homepage CTA button */
.oo-homeBox .oo-hero__actions .oo-btn {
  padding: 14px 26px;
  width: 100%;
  min-width: 0;
}
.oo-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.oo-btn:active { transform: translateY(0px); }

.oo-btn--ghost {
  background: rgba(0,0,0,.22);
  box-shadow: none;
  border-color: rgba(245,208,111,.20);
  color: rgba(238,242,255,.92);
}
.oo-btn--ghost:hover { border-color: rgba(245,208,111,.34); background: rgba(255,255,255,.06); }

.oo-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
.oo-hero__fallback {
  height: min(76vh, 820px);
  background:
    radial-gradient(80% 80% at 10% 10%, rgba(124,58,237,.40), transparent 60%),
    radial-gradient(80% 80% at 90% 30%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(60% 60% at 65% 95%, rgba(245,208,111,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.oo-hero__fallback--compact {
  height: min(34vh, 320px);
}
.oo-hero video {
  width: 100%;
  height: min(76vh, 820px);
  object-fit: cover;
  display:block;
  filter: saturate(1.12) contrast(1.08) brightness(.96);
}
.oo-hero--compact video {
  height: min(34vh, 320px);
}
.oo-hero__overlay {
  position:absolute;
  inset:0;
  background:
    radial-gradient(70% 70% at 18% 20%, rgba(124,58,237,.38), transparent 55%),
    radial-gradient(70% 70% at 80% 25%, rgba(59,130,246,.28), transparent 58%),
    linear-gradient(180deg, rgba(7,10,18,0.10), rgba(7,10,18,0.92));
}
.oo-hero__content { position:absolute; inset:0; display:flex; align-items:flex-end; }

.oo-hero__headline {
  padding: 10px 0 24px;
}
.oo-hero__title {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 14px 55px rgba(0,0,0,.65);
}

.oo-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.oo-card {
  background: linear-gradient(180deg, var(--card2), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.oo-title {
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.oo-sub {
  margin:0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
}

.oo-nav { position:absolute; top:0; left:0; right:0; z-index: 3; }
.oo-nav__inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 16px 22px;
  max-width: 1160px;
  margin:0 auto;
}
.oo-logo {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--fg);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap: 10px;
}
.oo-logo::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), rgba(255,255,255,.55));
  box-shadow: 0 0 0 4px rgba(245,208,111,.12);
}

.oo-links {
  list-style:none;
  display:flex;
  gap: 10px;
  padding:0;
  margin:0;
  flex-wrap: wrap;
}
.oo-links a {
  color: rgba(238,242,255,.92);
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.oo-links a:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }

.oo-main { max-width: 1160px; margin: 0 auto; padding: 32px 22px 70px; }

/* Typography */
.oo-card h1, .oo-card h2, .oo-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.oo-card h2 { font-size: 22px; }
.oo-card h3 { font-size: 18px; color: rgba(238,242,255,.92); }
.oo-card p { margin: 0 0 12px; color: rgba(238,242,255,.84); line-height: 1.65; }
.oo-card ol, .oo-card ul { margin: 0 0 0 18px; color: rgba(238,242,255,.84); }
.oo-card li { margin: 6px 0; line-height: 1.55; }
.oo-card a { color: #d9ccff; }

.oo-entry {
  color: rgba(238,242,255,.84);
  line-height: 1.75;
}
.oo-entry h2 { margin-top: 18px; }
.oo-entry h3 { margin-top: 16px; }
.oo-entry a { color: #d9ccff; }
.oo-entry a:hover { color: #efe8ff; }
.oo-entry hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 18px 0; }
.oo-entry table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
.oo-entry th, .oo-entry td { border: 1px solid rgba(255,255,255,.12); padding: 10px 12px; }
.oo-entry th { background: rgba(255,255,255,.06); text-align: left; }

.oo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.oo-col-7 { grid-column: span 7; }
.oo-col-5 { grid-column: span 5; }
.oo-col-12 { grid-column: span 12; }

.oo-kpi {
  display:flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 10px;
}
.oo-pill {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(238,242,255,.9);
}
.oo-pill strong { color: var(--gold); }

.oo-calculator { width: 100%; }

/* Variant A: inline payment (2 columns on desktop) */
.oo-payWrap--payment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.oo-payWrap--payment.oo-payWrap--active {
  grid-template-columns: 1fr 1fr;
}
.oo-payCard {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  border-radius: 16px;
  padding: 16px;
}
.oo-payTitle {
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(238,242,255,.92);
  margin-bottom: 6px;
}
.oo-payPrice {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
}
.oo-stripe-error {
  margin-top: 10px;
  color: #ff7a90;
  font-weight: 700;
}
.oo-payConfirm {
  width: 100%;
  margin-top: 14px;
  min-height: 56px;
  padding: 16px 18px;
  font-size: 18px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 32px rgba(34,197,94,.20);
}
.oo-payEdit {
  width: 100%;
  margin-top: 10px;
  background: rgba(0,0,0,.24);
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
  color: rgba(255,255,255,.92);
}

.oo-form {
  display: grid;
  gap: 14px;
}

.oo-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.oo-field { margin: 0; }
.oo-field--full { grid-column: 1 / -1; }

.oo-field label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: rgba(238,242,255,.9);
  font-size: 16px;
}

.oo-form input,
.oo-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: var(--fg);
  font-size: 16px;
  color-scheme: dark;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* Dropdown list contrast (browser-dependent, but helps in most cases) */
.oo-form select,
.oo-form select option {
  background-color: #0b1220;
  color: #eef2ff;
}

.oo-form select[name="manufacturer_id"],
.oo-form select[name="model_id"] {
  text-transform: uppercase;
}
.oo-form input:focus,
.oo-form select:focus { border-color: rgba(245,208,111,.35); box-shadow: 0 0 0 4px rgba(245,208,111,.10); }

.oo-form__actions {
  display:flex;
  gap: 12px;
}

.oo-form__actions button {
  flex: 1;
  width: 100%;
}

.oo-form button {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(59,130,246,.92));
  color: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  box-shadow: 0 14px 32px rgba(124,58,237,.22);
  transition: transform .15s ease, filter .15s ease;
}
.oo-form button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.oo-form button:active { transform: translateY(0px); }

.oo-use-avg-km {
  background: rgba(0,0,0,.24);
  border-color: rgba(245,208,111,.22);
  box-shadow: none;
  color: rgba(238,242,255,.92);
  width: fit-content;
}

.oo-result {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  border-radius: 16px;
  padding: 14px 14px;
  text-align: center;
}
.oo-result .autoceny-price {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.oo-result .autoceny-sample {
  margin-top: 6px;
  color: rgba(238,242,255,.75);
  font-size: 14px;
  display: none;
}

.oo-homeBox { margin-top: 22px; }
.oo-homeBox__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.oo-homeBox__cta { margin-top: 14px; }

.oo-homeBox__priceLine {
  display: block;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gold);
  margin: 12px 0 6px;
}

/* Align CTA + pills to the same width */
.oo-homeBox__cta {
  width: 100%;
  max-width: none;
  margin: 0;
}
.oo-homeBox .oo-hero__actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}
.oo-homeBox .oo-hero__actions .oo-btn {
  width: 100%;
  justify-content: center;
  min-height: 56px;
  font-size: 18px;
}

.oo-homeTip {
  margin-top: 14px;
  color: rgba(238,242,255,.88);
  font-size: 16px;
  line-height: 1.6;
}

.oo-steps {
  text-align: center;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 20px;
  margin: 10px 0 18px;
}

.oo-procNasCta {
  margin-top: 18px;
}
.oo-procNasCta .oo-btn {
  width: 100%;
}

footer.oo-main { padding-top: 18px; }
footer.oo-main { font-size: 16px; }
footer .oo-links { justify-content: flex-start; }

.oo-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
}
.oo-footer__logo {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 18px;
  color: rgba(238,242,255,.96);
}
.oo-footer__sub { margin: 10px 0 10px; color: rgba(238,242,255,.75); }
.oo-footer__copy { margin: 0; color: rgba(238,242,255,.55); font-size: 14px; }
.oo-footer__title { font-weight: 900; margin-bottom: 10px; color: rgba(238,242,255,.92); }
.oo-footer__metaLinks { display: flex; gap: 10px; flex-wrap: wrap; }
.oo-footer__metaLink {
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(238,242,255,.92);
  text-decoration: none;
}
.oo-footer__metaLink:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
.oo-footer__note { margin-top: 10px; color: rgba(238,242,255,.65); font-size: 14px; line-height: 1.5; }

@media (max-width: 980px) {
  .oo-col-7, .oo-col-5 { grid-column: span 12; }
  .oo-hero__content { align-items: flex-end; }
  .oo-footer { grid-template-columns: 1fr; }
  .oo-homeBox__grid { grid-template-columns: 1fr; }
  .oo-payWrap--payment.oo-payWrap--active { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .oo-nav__inner { padding: 14px 16px; }
  .oo-main { padding: 26px 16px 56px; }
  .oo-card { padding: 16px; }
  .oo-links a { padding: 9px 10px; }
  .oo-form__grid { grid-template-columns: 1fr; }
}
