/* ============================================================
   DomainMezat — Trust & Authority tasarım sistemi
   Renkler: güven mavisi + lacivert + altın vurgu
   ============================================================ */
:root {
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --trust-blue: #1E40AF;
  --trust-blue-hover: #1C3AA0;
  --gold: #F59E0B;
  --gold-dark: #B45309;
  --green: #059669;
  --red: #DC2626;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, .12);
  --font-head: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
a { color: var(--trust-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; padding-top: 32px; padding-bottom: 64px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff;
}
.brand:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.main-nav a { color: #CBD5E1; font-weight: 500; font-size: 15px; transition: color .2s; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.nav-incomplete .dot, .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); vertical-align: super;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--trust-blue); color: #fff; }
.btn-primary:hover { background: var(--trust-blue-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #E08E06; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: #475569; color: #E2E8F0; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(30, 64, 175, .45); outline-offset: 2px;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, #16234A 60%, var(--trust-blue) 100%);
  color: #fff; border-radius: 16px; padding: 48px 40px; margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, .25), transparent 70%); border-radius: 50%;
}
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; margin-bottom: 12px; }
.hero p { color: #CBD5E1; font-size: 18px; max-width: 640px; margin-bottom: 24px; }
.hero .hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-badge svg { color: var(--gold); }

/* ---------- Bölüm başlıkları ---------- */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 40px 0 20px; gap: 12px; flex-wrap: wrap;
}
.section-title h2 { font-size: 26px; font-weight: 800; }
.section-title .count { color: var(--text-muted); font-size: 15px; }

/* ---------- Müzayede kartları ---------- */
.auction-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.auction-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.auction-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-top {
  background: var(--navy-800); color: #fff; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.domain-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; word-break: break-all; }
.card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-desc { color: var(--text-muted); font-size: 14px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.price-value { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--trust-blue); }
.bid-count { font-size: 13px; color: var(--text-muted); }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Durum & geri sayım ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.status-live { background: rgba(5, 150, 105, .12); color: var(--green); }
.status-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.status-scheduled { background: rgba(30, 64, 175, .1); color: var(--trust-blue); }
.status-ended { background: rgba(100, 116, 139, .14); color: #475569; }
.status-cancelled { background: rgba(220, 38, 38, .1); color: var(--red); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.countdown {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; color: var(--navy-900);
  display: inline-flex; align-items: center; gap: 6px;
}
.countdown.urgent { color: var(--red); }
.countdown svg { flex-shrink: 0; }

/* ---------- Detay sayfası ---------- */
.auction-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.panel h1 { font-size: 30px; word-break: break-all; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 18px 0; }
.meta-item .k { font-size: 13px; color: var(--text-muted); }
.meta-item .v { font-weight: 600; }
.big-price { font-family: var(--font-head); font-size: 38px; font-weight: 800; color: var(--trust-blue); }
.bid-panel .countdown { font-size: 20px; }

/* ---------- Formlar ---------- */
.form-narrow { max-width: 480px; margin: 0 auto; }
.form-wide { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group .hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
  transition: border-color .2s;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--trust-blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-error { color: var(--red); font-size: 13px; margin-top: 4px; }

/* ---------- Uyarılar ---------- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; border: 1px solid; }
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.data th, table.data td { padding: 12px 16px; text-align: left; font-size: 14px; }
table.data th { background: var(--navy-900); color: #E2E8F0; font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
table.data tbody tr { border-bottom: 1px solid var(--border); }
table.data tbody tr:hover { background: #F1F5F9; }
.bid-you { background: #FFFBEB !important; }

/* ---------- Profil tamamlama uyarısı ---------- */
.gate-box {
  border: 2px dashed var(--gold); background: #FFFBEB; border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.gate-box p { margin-bottom: 14px; color: #92400E; font-weight: 500; }

.progress-track { background: var(--border); border-radius: 999px; height: 10px; overflow: hidden; margin: 8px 0 16px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 999px; transition: width .4s ease; }

/* ---------- Admin ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--trust-blue); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card .num { font-family: var(--font-head); font-size: 30px; font-weight: 800; }
.stat-card .lbl { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.green { border-left-color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #94A3B8; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; padding: 36px 20px 20px; flex-wrap: wrap; }
.footer-inner strong { color: #fff; font-family: var(--font-head); font-size: 18px; }
.footer-inner p { max-width: 420px; font-size: 14px; margin-top: 8px; }
.footer-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #CBD5E1; }
.trust-badge svg { color: var(--green); }
.footer-copy { padding: 16px 20px 28px; font-size: 13px; border-top: 1px solid #1E293B; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .auction-detail { grid-template-columns: 1fr; }
  .hero { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .meta-list { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
}

/* ============================================================
   v2 — Müzayede vitrin bileşenleri
   ============================================================ */

/* Hero v2 */
.hero-v2 {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(245,158,11,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(30,64,175,.5), transparent 60%),
    linear-gradient(135deg, #0B1229 0%, #101C3F 55%, #1E2F63 100%);
  color: #fff; border-radius: 20px; padding: 64px 48px; margin-bottom: 44px;
  position: relative; overflow: hidden;
}
.hero-v2 .kicker {
  display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--gold);margin-bottom:14px;
}
.hero-v2 h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.1; max-width: 720px; }
.hero-v2 h1 .accent { color: var(--gold); }
.hero-v2 p { color:#B6C2D9; font-size:18px; max-width:620px; margin:18px 0 28px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }

.hero-stats {
  display:flex; gap:0; margin-top:40px; border-top:1px solid rgba(255,255,255,.14);
  padding-top:24px; flex-wrap:wrap;
}
.hero-stat { padding:0 32px; border-left:1px solid rgba(255,255,255,.14); }
.hero-stat:first-child { padding-left:0; border-left:none; }
.hero-stat .n { font-family:var(--font-head); font-size:30px; font-weight:800; color:#fff; }
.hero-stat .l { font-size:13px; color:#8FA0BE; text-transform:uppercase; letter-spacing:.06em; }

/* Müzayede (etkinlik) kartı */
.event-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:22px; }
.event-card {
  border-radius:16px; overflow:hidden; background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s;
}
.event-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.event-cover { min-height:150px; padding:22px 24px; color:#fff; display:flex; flex-direction:column; justify-content:flex-end; position:relative; }
.event-cover .ttl { font-family:var(--font-head); font-weight:800; font-size:22px; text-shadow:0 2px 8px rgba(0,0,0,.35); }
.event-cover .pill-wrap { position:absolute; top:14px; left:16px; right:16px; display:flex; justify-content:space-between; }
.event-body { padding:18px 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.event-meta { display:flex; justify-content:space-between; font-size:14px; color:var(--text-muted); flex-wrap:wrap; gap:6px; }
.event-foot { padding:14px 22px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; gap:10px; }

.theme-1 { background:linear-gradient(135deg,#1E3A8A,#3B82F6); }
.theme-2 { background:linear-gradient(135deg,#7C2D12,#F59E0B); }
.theme-3 { background:linear-gradient(135deg,#14532D,#22C55E); }
.theme-4 { background:linear-gradient(135deg,#4C1D95,#A78BFA); }
.theme-5 { background:linear-gradient(135deg,#831843,#F472B6); }
.theme-6 { background:linear-gradient(135deg,#0F172A,#64748B); }

/* Lot kartı */
.lot-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.lot-card {
  background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; position:relative;
}
.lot-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.lot-thumb {
  aspect-ratio: 4 / 3; display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:var(--font-head); font-weight:800; font-size:22px; text-align:center;
  padding:16px; word-break:break-all; position:relative;
}
.lot-thumb img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.lot-no {
  position:absolute; top:10px; left:10px; background:rgba(15,23,42,.78); color:#fff;
  font-size:12px; font-weight:700; padding:4px 10px; border-radius:6px; letter-spacing:.05em; z-index:2;
}
.watch-btn {
  position:absolute; top:10px; right:10px; z-index:2; width:38px; height:38px; border-radius:50%;
  border:none; background:rgba(15,23,42,.6); color:#fff; cursor:pointer; display:flex;
  align-items:center; justify-content:center; transition:background .2s, color .2s;
}
.watch-btn:hover { background:rgba(15,23,42,.9); }
.watch-btn.watching { color:var(--gold); background:rgba(15,23,42,.9); }
.lot-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; gap:8px; }
.lot-title { font-family:var(--font-head); font-weight:700; font-size:16px; }
.lot-title a { color:var(--text); }
.lot-cat { font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; }
.lot-price-row { display:flex; justify-content:space-between; align-items:flex-end; margin-top:auto; }
.lot-price { font-family:var(--font-head); font-weight:800; font-size:20px; color:var(--trust-blue); }
.lot-meta { font-size:12px; color:var(--text-muted); text-align:right; }
.lot-foot { padding:10px 16px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.buy-now-tag { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:var(--green); }
.sold-band { position:absolute; inset:0; background:rgba(15,23,42,.55); z-index:3; display:flex; align-items:center; justify-content:center; }
.sold-band span { background:var(--green); color:#fff; font-family:var(--font-head); font-weight:800; padding:8px 26px; border-radius:8px; transform:rotate(-8deg); font-size:18px; }
.sold-band.unsold span { background:#64748B; }

/* Filtre çubuğu */
.filter-bar {
  display:flex; gap:12px; flex-wrap:wrap; align-items:center; background:var(--surface);
  border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:22px; box-shadow:var(--shadow);
}
.filter-bar select, .filter-bar input { min-height:40px; width:auto; }
.filter-bar .grow { flex:1; min-width:160px; }

/* Sekmeler */
.tabs { display:flex; gap:8px; margin-bottom:22px; flex-wrap:wrap; }
.tab {
  padding:10px 20px; border-radius:999px; font-family:var(--font-head); font-weight:700; font-size:14px;
  background:var(--surface); border:1.5px solid var(--border); color:var(--text-muted); text-decoration:none !important;
}
.tab:hover { border-color:var(--trust-blue); color:var(--trust-blue); }
.tab.active { background:var(--trust-blue); border-color:var(--trust-blue); color:#fff; }

/* Lot detay */
.lot-detail { display:grid; grid-template-columns:1.5fr 1fr; gap:24px; align-items:start; }
.lot-hero { border-radius:14px; overflow:hidden; position:relative; }
.lot-hero .lot-thumb { aspect-ratio:16/10; font-size:34px; }
.stat-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; margin:18px 0; }
.stat-box { background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:12px 14px; text-align:center; }
.stat-box .n { font-family:var(--font-head); font-weight:800; font-size:20px; }
.stat-box .l { font-size:12px; color:var(--text-muted); }
.quick-bids { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.quick-bids button {
  flex:1; min-height:40px; border:1.5px solid var(--border); background:#fff; border-radius:8px;
  font-weight:700; cursor:pointer; font-family:var(--font-head); transition:all .15s;
}
.quick-bids button:hover { border-color:var(--gold); background:#FFFBEB; }

/* Nasıl çalışır */
.how-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin:8px 0 20px; }
.how-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:24px; box-shadow:var(--shadow); }
.how-card .step { width:40px; height:40px; border-radius:50%; background:var(--navy-900); color:var(--gold); display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:800; margin-bottom:14px; }
.how-card h3 { font-size:17px; margin-bottom:8px; }
.how-card p { font-size:14px; color:var(--text-muted); }

@media (max-width:860px) {
  .lot-detail { grid-template-columns:1fr; }
  .hero-v2 { padding:40px 26px; }
  .hero-stat { padding:0 18px; }
}
