/* namehub.org — svetla tema u duhu NameHub Marketplace-a */
:root {
  --bg: #ffffff; --soft: #f6f7fb; --border: #e6e8f0; --text: #1f2340; --muted: #6b7190;
  --navy: #1e1b4b; --brand: #0f9b77; --accent: #4f46e5; --accent-2: #7c3aed; --price: #3b5bdb;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
/* atribut hidden (pretraga skriva kartice) mora da pobedi display iz klasa */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2 { color: var(--navy); letter-spacing: -.02em; }

.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: .12em; color: var(--brand); }
.logo:hover { text-decoration: none; }
.logo-n { color: var(--navy); font-size: 1.6rem; }
.nav { margin-left: auto; display: flex; gap: 1.2rem; font-size: .93rem; }
.nav a { color: var(--text); white-space: nowrap; }

.hero { background: linear-gradient(180deg, #f3f2ff 0%, #ffffff 100%); padding: 3.5rem 0 2.5rem; text-align: center; }
.hero h1 { font-size: 2.6rem; margin: 0 0 .5rem; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 40rem; margin: 0 auto 1.5rem; }
.search { display: flex; gap: .5rem; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: .35rem; box-shadow: 0 6px 24px rgba(30, 27, 75, .08); }
.search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: .55rem .75rem; outline: none; background: transparent; color: var(--text); }
button, .btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; cursor: pointer; padding: .6rem 1.2rem;
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); display: inline-block; text-align: center; }
.btn:hover, button:hover { filter: brightness(1.07); text-decoration: none; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 2rem 0 1rem; }
.list-head h2 { margin: 0; }
.count { white-space: nowrap; margin-left: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin-bottom: 2.5rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 2px 10px rgba(30, 27, 75, .04); }
.domain-card { display: flex; flex-direction: column; padding: 1rem; color: var(--text); transition: transform .15s, box-shadow .15s; }
.domain-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30, 27, 75, .1); }
.tile { display: flex; align-items: center; justify-content: center; height: 110px; padding: .5rem .75rem; border-radius: 12px;
  margin-bottom: .8rem; background: linear-gradient(135deg, #eef0ff 0%, #f5edff 55%, #e9fbf5 100%); color: var(--navy); }
a.tile:hover { text-decoration: none; filter: brightness(.98); }
/* ime domena u pločici: veličina po dužini (SizeClass), ekstenzija u boji */
.tile-name { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-align: center; overflow-wrap: anywhere;
  font-size: 1.65rem; }
.tile-name .ext { color: var(--accent); white-space: nowrap; }
.tile-name.n-s { font-size: 2.1rem; }
.tile-name.n-l { font-size: 1.35rem; }
.tile-name.n-xl { font-size: 1.12rem; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.card-price { color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.card-more { font-size: .88rem; white-space: nowrap; }
.btn-sm { padding: .5rem .8rem; font-size: .92rem; border-radius: 9px; }
/* dugme u kartici: mirno u mreži, puna boja kad je kartica pod mišem */
.btn-soft { background: #eef0ff; color: var(--accent); }
.domain-card:hover .btn-soft, .btn-soft:focus-visible { background: linear-gradient(90deg, #ff5f6d, #ff8a4c); color: #fff; }
.empty { text-align: center; }

.crumbs { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.crumbs span { color: var(--text); }
.domain-title { font-size: 2.3rem; margin: .6rem 0 .25rem; word-break: break-word; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verified { color: var(--brand); font-weight: 600; font-size: .9rem; margin: 0 0 1.25rem; }
/* kartica za kupovinu je u HTML-u odmah posle imena (na telefonu dolazi pre opisa), a na širem ekranu stoji desno */
.domain-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 1.25rem; align-items: start; }
.domain-grid > .card { grid-column: 1; }
.domain-side { grid-column: 2; grid-row: 1 / span 3; }
.domain-grid .card { padding: 1.25rem 1.4rem; margin-bottom: 1.1rem; }
.showcase { display: flex; flex-direction: column; align-items: center; }
.tile-big { width: 100%; height: 220px; margin: 0; }
.tile-big .tile-name { font-size: clamp(1.8rem, 6vw, 3.2rem); }
.prose h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; }
.prose p { margin: 0 0 .7rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .5rem 0 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.domain-side { position: sticky; top: 84px; }
.buy h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.buy-price { display: flex; align-items: baseline; justify-content: space-between; background: var(--soft); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.buy .btn { display: block; width: 100%; margin-bottom: .6rem; padding: .8rem; }
.btn-primary { background: linear-gradient(90deg, #ff5f6d, #ff8a4c); }
.btn-outline { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.checks { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.checks li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.more-title { margin: 1.5rem 0 1rem; }
.error-page { text-align: center; padding: 4rem 1rem; }

.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; margin-top: 2rem; }

@media (max-width: 860px) {
  .domain-grid { grid-template-columns: 1fr; }
  .domain-side { position: static; grid-column: 1; grid-row: auto; }
  .hero h1 { font-size: 2rem; }
  .domain-title { font-size: 1.7rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .tile { height: 90px; }
  .tile-big { height: 160px; }
}

/* telefon: logo već vodi na listu, pa ostaje samo link ka Marketplace-u */
@media (max-width: 520px) {
  .grid { gap: .75rem; }
  .domain-card { padding: .7rem; }
  .tile { padding: .4rem .5rem; }
  .tile-name { font-size: 1.25rem; }
  .tile-name.n-s { font-size: 1.55rem; }
  .tile-name.n-l { font-size: 1rem; }
  .tile-name.n-xl { font-size: .9rem; }
  .card-price { font-size: 1.05rem; }
  .card-more { font-size: .8rem; }
  .logo { font-size: 1.1rem; }
  .logo-n { font-size: 1.35rem; }
  .nav { gap: .9rem; font-size: .88rem; }
  .nav-home { display: none; }
  .hero { padding: 2.25rem 0 1.75rem; }
  .hero h1 { font-size: 1.7rem; }
}
