/* Blockio: Time Rush — testers site. Shared by index.html and privacy.html. */

:root {
  --sky: #4fb3f0;
  --sky-deep: #1f7fc4;
  --sky-soft: #e3f3fd;
  --cream: #fff8ea;
  --card: #ffffff;
  --gold: #f5b82e;
  --gold-deep: #c98a0b;
  --coral: #e2572a;
  --ink: #23324a;
  --ink-soft: #5a6a82;
  --line: #eadfc6;
  --shadow: 0 6px 0 rgba(35, 50, 74, 0.08), 0 12px 28px rgba(35, 50, 74, 0.08);
  --radius: 22px;
  --gutter: 16px;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #5cbcf5;
    --sky-deep: #8fd0fa;
    --sky-soft: #15263a;
    --cream: #0f1a29;
    --card: #182638;
    --gold: #f7c34d;
    --gold-deep: #f7c34d;
    --coral: #ff8a5c;
    --ink: #eef3fa;
    --ink-soft: #a9b7ca;
    --line: #2a3b52;
    --shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --sky: #5cbcf5;
  --sky-deep: #8fd0fa;
  --sky-soft: #15263a;
  --cream: #0f1a29;
  --card: #182638;
  --gold: #f7c34d;
  --gold-deep: #f7c34d;
  --coral: #ff8a5c;
  --ink: #eef3fa;
  --ink-soft: #a9b7ca;
  --line: #2a3b52;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--sky-deep); font-weight: 700; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

code, .ph {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--sky-soft);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }

.lang-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: #3b2a00;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 3px 0 var(--gold-deep);
  cursor: pointer;
}
.lang-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.lang-btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }

/* Language visibility: TR by default, EN when <html class="lang-en"> */
html.lang-en .tr { display: none !important; }
html:not(.lang-en) .en { display: none !important; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 100%);
  padding: 40px 0 56px;
  text-align: center;
}
.hero .icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(31, 127, 196, 0.45); margin-bottom: 0.2em; }
.hero .tag { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0 auto 1.2em; max-width: 34em; text-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.pill {
  display: inline-block;
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

main { padding: 8px 0 40px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin: 22px 0;
}
.hero + main .card:first-child { margin-top: -28px; position: relative; }

.card h2 { display: flex; align-items: center; gap: 10px; }
.card h2 .dot {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gold);
  box-shadow: inset 0 -4px 0 var(--gold-deep);
}
.card h2 .dot.blue { background: var(--sky); box-shadow: inset 0 -4px 0 var(--sky-deep); }
.card h2 .dot.coral { background: var(--coral); box-shadow: inset 0 -4px 0 #a83c18; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.box {
  background: var(--sky-soft);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
}
.box h3 { margin-bottom: 0.4em; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 0.7em; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 0.95rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.92rem;
}

.note {
  border-left: 5px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, var(--card));
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 1em;
}

.btn {
  display: inline-block;
  background: var(--sky-deep);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.18);
  overflow-wrap: anywhere;
}
:root[data-theme="dark"] .btn { color: #0f1a29; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0f1a29; } }
.btn:hover { color: #fff; filter: brightness(1.08); }

table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { font-family: var(--font-head); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}
footer a { font-weight: 700; }

/* Privacy page */
.doc h2 { margin-top: 1.4em; }
.doc h3 { margin-top: 1.1em; }
.doc .updated { color: var(--ink-soft); font-weight: 700; }
