/* =====================================================================
   TASARIM DNA'SI — Dijital Kartvizit
   Referans görselden çıkarılan renk, yazı tipi ve ölçüler.
   ===================================================================== */
:root {
  --bg:          #EEF2F7;   /* sayfa zemini: açık mavi-gri */
  --card:        #F7F9FC;   /* link kartı zemini */
  --chip:        #E4EAF2;   /* ikon kutusu / kopyala butonu zemini */
  --navy:        #1F2A44;   /* başlık ve ikon rengi */
  --navy-mid:    #1E3A5F;   /* kart sol kenar (varsayılan) */
  --navy-grad:   #1B2A4A;   /* paylaş butonu gradyan başlangıcı */
  --gold:        #C9A24A;   /* altın vurgu (3. kart kenarı, gradyan sonu) */
  --text:        #2B3648;
  --muted:       #5B6B85;   /* alt satırlar, sosyal ikonlar, footer */
  --line:        #CBD4E1;   /* footer çizgisi */
  --white:       #FFFFFF;

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --card-radius: 14px;
  --chip-radius: 10px;
  --card-shadow: 0 4px 14px rgba(31, 42, 68, .08);
  --card-shadow-hover: 0 10px 26px rgba(31, 42, 68, .14);
  --btn-shadow: 0 8px 18px rgba(27, 42, 74, .28);
  --max-w: 680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Sayfa ---------- */
.card-page {
  width: min(100% - 24px, var(--max-w));
  margin: 0 auto;
  padding: 24px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Profil ---------- */
.profile { text-align: center; width: 100%; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  margin: 8px auto 14px; display: block;
  border: 4px solid var(--white); box-shadow: var(--card-shadow);
}
.name {
  margin: 0;
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -.01em;
  display: inline-block;
  white-space: nowrap;
}
.name .caret {
  display: inline-block; width: 3px; height: .9em;
  background: var(--navy); margin-left: 3px; vertical-align: -.1em;
  display: none; /* yanip sonen imlec gizlendi */
}
@keyframes blink { 50% { opacity: 0; } }
.subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Paylaş ---------- */
.share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 22px auto 0;
  padding: 13px 26px;
  border: 0; border-radius: 10px;
  color: var(--white);
  font-weight: 600; font-size: 16px;
  background: linear-gradient(90deg, var(--navy-grad) 0%, var(--navy-grad) 45%, var(--gold) 100%);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.share-btn:active { transform: translateY(0); }
.share-btn i { font-size: 15px; }

/* ---------- Link kartları ---------- */
.links { width: 100%; margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.link-card {
  --accent: var(--navy-mid);
  position: relative;
  display: flex; align-items: center;
  background: var(--card);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-height: 78px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.link-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--accent);
  border-radius: var(--card-radius) 0 0 var(--card-radius);
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.link-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 10px 14px 20px;
}
.link-icon {
  flex: 0 0 48px; width: 48px; height: 48px;
  border-radius: var(--chip-radius);
  background: var(--chip); color: var(--navy);
  display: grid; place-items: center;
  font-size: 22px;
}
.link-text { display: flex; flex-direction: column; min-width: 0; }
.link-title {
  font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn {
  flex: 0 0 auto;
  width: 40px; height: 40px; margin: 0 14px 0 6px;
  border: 0; border-radius: var(--chip-radius);
  background: var(--chip); color: var(--navy);
  display: grid; place-items: center; font-size: 17px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.copy-btn:hover { background: var(--navy); color: var(--white); }
.copy-btn:active { transform: scale(.94); }
.copy-btn.done { background: #2E8B57; color: var(--white); }

/* ---------- Sosyal ikonlar ---------- */
.socials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 22px;
}
.socials a { line-height: 1; transition: color .2s, transform .2s; }
.socials a:hover { color: var(--navy); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.foot {
  width: 100%;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  position: relative;
}
.foot p { margin: 0; }
.admin-link {
  position: absolute; right: 0; bottom: -4px;
  font-size: 11px; color: var(--line); padding: 6px;
  transition: color .2s;
}
.admin-link:hover { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--navy); color: var(--white);
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: var(--btn-shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Giriş sayfası (aynı DNA) ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.auth-card {
  width: min(100%, 420px); background: var(--card); border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); padding: 36px 32px; text-align: center;
}
.auth-card .name { font-size: 32px; }
.auth-card .subtitle { margin-bottom: 24px; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--navy);
  padding: 12px 14px; border-radius: var(--chip-radius); border: 1.5px solid var(--chip); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--navy-mid); box-shadow: 0 0 0 4px rgba(30,58,95,.12); }
.field small.help { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer;
  color: var(--white);
  background: linear-gradient(90deg, var(--navy-grad) 0%, var(--navy-grad) 45%, var(--gold) 100%);
  box-shadow: var(--btn-shadow); transition: transform .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-block { width: 100%; }
.btn-light { background: var(--chip); color: var(--navy); box-shadow: none; }
.btn-danger { background: #F6E3E3; color: #B4232C; box-shadow: none; }
.btn-danger:hover { background: #B4232C; color: var(--white); }
.btn-xs { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-foot a:hover { color: var(--navy); }
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 14px; font-weight: 500; text-align: left; }
.alert-success { background: #E3F3EA; color: #1F7A4D; }
.alert-error, .alert-danger { background: #F6E3E3; color: #B4232C; }
.alert-info { background: var(--chip); color: var(--navy); }

/* ---------- Mobil ---------- */
@media (max-width: 520px) {
  .card-page { padding-top: 18px; }
  .name { white-space: normal; }
  .link-main { gap: 12px; padding-left: 16px; }
  .link-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 19px; }
  .link-title { font-size: 16px; white-space: normal; }
  .link-sub { white-space: normal; }
  .socials { gap: 22px; font-size: 20px; }
  .foot { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .name .caret { animation: none; }
  * { transition: none !important; }
}
