/* expired.st — bez build koraka; svetla/tamna tema po podešavanju uređaja. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #0f172a;
  --muted: #5b6577;
  --border: #e3e7ee;
  --accent: #e8590c;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e6;
  --available: #0f9d58;
  --available-soft: #e6f6ee;
  --dropping: #c27803;
  --dropping-soft: #fdf3dc;
  --expired: #d6334a;
  --expired-soft: #fdecef;
  --registered: #2f6fde;
  --registered-soft: #e8f0fd;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 1px 1px rgb(15 23 42 / .03);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f16;
    --surface: #121823;
    --surface-2: #1a2230;
    --text: #e6eaf2;
    --muted: #94a0b4;
    --border: #253043;
    --accent: #ff7a2f;
    --accent-ink: #1a0d04;
    --accent-soft: #2a1a0f;
    --available: #34c47c;
    --available-soft: #10291d;
    --dropping: #f0b53c;
    --dropping-soft: #2b2311;
    --expired: #ff6b80;
    --expired-soft: #2d151b;
    --registered: #6ea2ff;
    --registered-soft: #15213a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
small { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }
.h-small { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* ---- zaglavlje */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; }
.logo:hover { color: inherit; }
.logo-text b { color: var(--accent); font-weight: 750; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-bg { fill: var(--accent); }
.logo-line { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; }
.logo-sand { fill: var(--accent-ink); }
.header-search { margin-left: auto; flex: 0 1 320px; }
.header-search input { width: 100%; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 10px 12px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---- forme i dugmad */
input, select, button { font: inherit; color: inherit; }
input[type="search"], select {
  height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-width: 0;
}
input[type="search"]:focus, select:focus, .btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn-register { height: 34px; padding: 0 12px; font-size: .88rem; background: var(--available); border-color: var(--available); color: #fff; }
.btn-register:hover { filter: brightness(1.07); color: #fff; border-color: var(--available); }
.btn-price { font-weight: 500; opacity: .9; }

/* ---- početna */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 18ch; }
.search-big { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; max-width: 760px; }
.search-big input { flex: 1 1 260px; height: 50px; font-size: 1.05rem; }
.search-big select { height: 50px; flex: 0 1 190px; }
.search-big .btn { height: 50px; padding: 0 24px; }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; position: relative; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tile, var(--accent)); }
.tile:hover { border-color: var(--tile); color: inherit; }
.tile-num { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; color: var(--tile); font-variant-numeric: tabular-nums; }
.tile-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.tile-available { --tile: var(--available); }
.tile-dropping { --tile: var(--dropping); }
.tile-expired { --tile: var(--expired); }
.tile-registered { --tile: var(--registered); }

.chips-row { margin: 8px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); text-decoration: none; font-size: .92rem;
}
.chip span { color: var(--muted); font-size: .85rem; }
.chip:hover { border-color: var(--accent); }
.chip-more { color: var(--accent); font-weight: 650; }

/* ---- kartice */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head a { font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot-available { background: var(--available); }
.dot-dropping { background: var(--dropping); }
.dot-registered { background: var(--registered); }
.empty { color: var(--muted); margin: 8px 0 0; }

.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name act" "date act"; column-gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.mini li:first-child { border-top: 0; }
.mini-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-date { grid-area: date; color: var(--muted); font-size: .85rem; }
.mini-date small { margin-left: 4px; }
.mini-act { grid-area: act; align-self: center; }

/* ---- domeni i tabele */
.dname { font-weight: 650; text-decoration: none; word-break: break-word; }
.dname:hover { text-decoration: underline; }
.alabel { display: block; font: .78rem var(--mono); color: var(--muted); }
.page-head { margin-bottom: 18px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters input[type="search"] { flex: 1 1 220px; }
.filters select { flex: 0 1 auto; max-width: 100%; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dtable { width: 100%; border-collapse: collapse; }
.dtable th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.dtable td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.dtable tbody tr:first-child td { border-top: 0; }
.dtable tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .num a { text-decoration: none; }
.col-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-date small { display: block; font-size: .78rem; }
.col-act { text-align: right; width: 1%; white-space: nowrap; }
.tag { display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.tag:hover { color: var(--accent); border-color: var(--accent); }
.pager { display: flex; justify-content: center; margin: 18px 0; }
.empty-box { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; background: var(--surface-2); color: var(--muted); }
.st-available { background: var(--available-soft); color: var(--available); }
.st-dropping { background: var(--dropping-soft); color: var(--dropping); }
.st-expired { background: var(--expired-soft); color: var(--expired); }
.st-registered { background: var(--registered-soft); color: var(--registered); }

/* ---- strana domena */
.domain-title { font-size: clamp(1.8rem, 5vw, 3rem); word-break: break-word; margin-bottom: .3rem; }
.alabel-big { font: .95rem var(--mono); color: var(--muted); margin: 0 0 .6rem; }
.domain-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.domain-main h2 { font-size: 1.3rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 6px; padding: 16px; border-radius: 12px; background: var(--available-soft); }
.cta .btn-register { height: 46px; padding: 0 22px; font-size: 1rem; }
.cta-note { color: var(--muted); font-size: .92rem; }
.note { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 4px 0 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; font-size: .92rem; font-weight: 600; }
.links a { color: var(--accent); text-decoration: none; }

/* ---- tekst */
.prose p { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.lifecycle dt { margin-top: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.lifecycle dt span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.lifecycle dd { margin: 6px 0 0; color: var(--muted); }
.error-page { text-align: center; padding: 40px 0; }
.error-page .lead { margin: 0 auto 1rem; }
.error-page .search-big { margin: 20px auto; justify-content: center; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }

/* ---- podnožje */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 18px; font-size: .9rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-row p { max-width: 56ch; margin-top: 10px; }
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-row nav a { text-decoration: none; font-weight: 600; }
.logo-small { font-size: 1.05rem; color: var(--text); }
.logo-small .logo-mark { width: 26px; height: 26px; }
.copy { margin-top: 16px; font-size: .82rem; }

/* ---- uži ekrani */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .header-row { height: 58px; gap: 12px; }
  .header-search { flex-basis: 180px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile-num { font-size: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .filters select { flex: 1 1 140px; }
  /* tabela kao kartice */
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable tr { padding: 12px 14px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .dtable tbody tr:first-child { border-top: 0; }
  .dtable td { padding: 0; border: 0; text-align: left; grid-column: 1 / -1; }
  .dtable td.col-name { grid-column: 1; grid-row: 1; }
  .dtable td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
  .dtable td.col-date small { display: inline; margin-left: 4px; }
  .dtable td.col-act { grid-column: 2; grid-row: 1; text-align: right; }
  .dtable td.num { text-align: left; }
  .dtable tbody tr:hover td { background: none; }
}
@media (max-width: 420px) {
  .logo-text { display: none; }
}
