/* Tajný Agent Web — frost téma (ladí s mrazosoft.sk) */
:root {
  --bg: #0A0E16;
  --surface: rgba(255,255,255,0.03);
  --surface-2: #0f1726;
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
  --text: #E6EDF5;
  --muted: #93A1B5;
  --accent: #38BDF8;
  --grad: linear-gradient(120deg, #38BDF8, #818CF8, #22D3EE);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(130% 100% at 50% -10%, #131c30 0%, #0b1020 60%, #070a16 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* aurora pozadie */
.aurora { position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; pointer-events: none; }
.aurora-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(closest-side, rgba(56,189,248,0.5), transparent); animation: drift1 18s ease-in-out infinite; }
.aurora-2 { width: 460px; height: 460px; bottom: -160px; right: -120px; background: radial-gradient(closest-side, rgba(129,140,248,0.45), transparent); animation: drift2 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,40px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,30px); } }

/* hero rámec (rovnaký vzhľad ako mrazosoft hero) */
.hero { position: relative; overflow: hidden; min-height: 100vh; }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.grid-lines { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(140,165,200,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,165,200,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%); }
.hero-inner { z-index: 2; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-flake { display: block; width: clamp(120px, 22vw, 190px); height: auto; margin: 0 auto 22px; padding: 0; background: none; border: none; cursor: pointer; transform-origin: 50% 50%; filter: drop-shadow(0 0 38px rgba(56,189,248,0.55)); -webkit-tap-highlight-color: transparent; transition: filter 0.2s ease; }
.hero-flake svg { display: block; width: 100%; height: auto; }
.hero-flake:hover, .hero-flake:active { filter: drop-shadow(0 0 60px rgba(56,189,248,1)); }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem, 7.5vw, 3.8rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.05; }

.wrap { position: relative; z-index: 1; width: min(100% - 36px, 680px); margin: 0 auto; padding: 48px 0 56px; }

/* hlavička */
.head { text-align: center; margin-bottom: 30px; }
.brand { display: inline-block; }
.flake { width: 54px; height: 54px; filter: drop-shadow(0 0 10px rgba(56,189,248,0.5)); animation: spin 26s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-tag { display: inline-block; margin: 14px 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #a5b4fc; background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.3); padding: 4px 12px; border-radius: 999px; }
.head h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem, 7.5vw, 3.8rem); letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.05; }
.lead { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.lead strong { color: var(--text); }

/* panel so vstupom */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
textarea {
  width: 100%; resize: vertical; min-height: 84px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font: inherit; padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,0.18); }
textarea::placeholder { color: #5a6b85; }

.row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.btn {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.98rem;
  color: #06223a; background: var(--grad); border: none; border-radius: 999px;
  padding: 12px 26px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(56,189,248,0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(56,189,248,0.4); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.hint { color: var(--muted); font-size: 0.8rem; }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.ex-label { color: var(--muted); font-size: 0.82rem; margin-right: 2px; }
.chip {
  font: inherit; font-size: 0.82rem; color: var(--muted);
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }

/* výstup / verdikt */
.output { margin-top: 22px; }
.verdict {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); animation: rise 0.45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.v-eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 6px; }
.v-claim { font-style: italic; color: var(--text); margin-bottom: 16px; line-height: 1.45; }
.v-badge {
  display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  letter-spacing: 1.5px; font-size: 1.05rem; padding: 8px 20px; border-radius: 999px; margin-bottom: 16px;
}
.v-reason { color: var(--muted); margin-bottom: 18px; }
.v-reason strong { color: var(--text); }

.meter-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 18px; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--grad); box-shadow: 0 0 10px rgba(56,189,248,0.5); width: 0; transition: width 0.9s cubic-bezier(.2,.7,.2,1); }

.sources-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 8px; }
.sources { list-style: none; display: grid; gap: 6px; }
.sources li { color: var(--muted); font-size: 0.9rem; padding-left: 18px; position: relative; }
.sources li::before { content: "↗"; position: absolute; left: 0; color: var(--accent); }

.v-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }

/* verdikt farby (7 kategórií) */
.cat-pravda   { background: rgba(52,211,153,0.14); color:#6ee7b7; border:1px solid rgba(52,211,153,0.45); box-shadow:0 0 22px rgba(52,211,153,0.28); }
.cat-ciast    { background: rgba(56,189,248,0.14); color:#7dd3fc; border:1px solid rgba(56,189,248,0.45); box-shadow:0 0 22px rgba(56,189,248,0.26); }
.cat-mytus    { background: rgba(248,113,113,0.14); color:#fca5a5; border:1px solid rgba(248,113,113,0.45); box-shadow:0 0 22px rgba(248,113,113,0.28); }
.cat-hoax     { background: rgba(251,146,60,0.14); color:#fdba74; border:1px solid rgba(251,146,60,0.45); box-shadow:0 0 22px rgba(251,146,60,0.26); }
.cat-loz      { background: rgba(239,68,68,0.16); color:#f87171; border:1px solid rgba(239,68,68,0.5); box-shadow:0 0 22px rgba(239,68,68,0.3); }
.cat-neover   { background: rgba(148,163,184,0.14); color:#cbd5e1; border:1px solid rgba(148,163,184,0.4); }
.cat-zastar   { background: rgba(251,191,36,0.14); color:#fcd34d; border:1px solid rgba(251,191,36,0.42); box-shadow:0 0 22px rgba(251,191,36,0.24); }

/* loader */
.thinking { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 22px; justify-content: center; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.18); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }

/* pätička */
.foot { text-align: center; margin-top: 30px; color: var(--muted); font-size: 0.85rem; display: grid; gap: 6px; }
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-note { font-size: 0.78rem; opacity: 0.8; }

/* vločky letiace okolo kurzora (na mobile len pri tapnutí) */
.cursor-flake { position: fixed; pointer-events: none; z-index: 9999; color: #7dd3fc; will-change: transform, opacity; animation: cf 0.95s ease-out forwards; }
.cursor-flake svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 5px rgba(56,189,248,0.55)); }
@keyframes cf {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0;    transform: translate(-50%, calc(-50% + 16px)) rotate(var(--rot, 180deg)) scale(0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .flake { animation: none; }
  .verdict { animation: none; }
  .meter span { transition: none; }
  .cursor-flake { display: none; }
}

/* ░░ Cookie lišta (honest — bez trackingu) ░░ */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10002; max-width: 460px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; display: none; }
@media (min-width: 560px) { .cookie { right: auto; } }
.cookie.show { display: block; animation: cookieIn 0.45s ease both; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookie h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin-bottom: 6px; }
.cookie p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 12px; }
.cookie p strong { color: var(--text); }
.cookie-cats { display: none; margin: 0 0 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.cookie-cats.open { display: block; }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }
.cookie-cat div { font-size: 0.82rem; }
.cookie-cat strong { display: block; color: var(--text); }
.cookie-cat span { color: var(--muted); }
.cookie-tag { font-size: 0.68rem; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie-btn { font: inherit; font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 10px 18px; cursor: pointer; border: none; background: var(--grad); color: #06223a; }
.cookie-link { background: none; border: none; color: var(--muted); font: inherit; font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 4px; }
