/* Köfteci Yusuf dijital kartvizit — marka: #101010 siyah, #FA9628 turuncu, Montserrat */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --orange: #FA9628;
  --black: #101010;
}

/* ---------- Temalar ---------- */
.theme-gece {
  --outside: #070707;
  --bg: #101010;
  --text: #FFFFFF;
  --muted: #A8A29C;
  --card: #1B1B1B;
  --card-border: #2A2A2A;
  --card-text: #FFFFFF;
  --accent: #FA9628;
  --on-accent: #101010;
  --ico-bg: rgba(250, 150, 40, .12);
  --hl-bg: #FA9628;
  --hl-text: #101010;
}
.theme-ates {
  --outside: #D97E1A;
  --bg: #FA9628;
  --text: #101010;
  --muted: #3D2A16;
  --card: #101010;
  --card-border: #101010;
  --card-text: #FFFFFF;
  --accent: #101010;
  --on-accent: #FFFFFF;
  --ico-bg: #FA9628;
  --ico-color: #101010;
  --hl-bg: #FFFFFF;
  --hl-text: #101010;
  --ring: #101010;
}
.theme-gunduz {
  --outside: #E6E1DB;
  --bg: #F6F4F1;
  --text: #101010;
  --muted: #6A645E;
  --card: #FFFFFF;
  --card-border: #E7E7E7;
  --card-text: #101010;
  --accent: #FA9628;
  --on-accent: #101010;
  --ico-bg: #FFF1E2;
  --ico-color: #E07F12;
  --hl-bg: #101010;
  --hl-text: #FFFFFF;
}
.theme-mangal {
  --outside: #050505;
  --bg: #0B0B0B;
  --text: #FFFFFF;
  --muted: #B3A79B;
  --card: rgba(255, 255, 255, .045);
  --card-border: rgba(255, 138, 31, .22);
  --card-text: #FFFFFF;
  --accent: #FF8A1F;
  --on-accent: #140B04;
  --ico-bg: rgba(255, 138, 31, .14);
  --hl-bg: linear-gradient(100deg, #FF6A00, #FFA43A);
  --hl-text: #140B04;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--outside);
  color: var(--text);
}
a { color: inherit; }

.page {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 560px) {
  body { padding: 28px 0; }
  .page { min-height: calc(100vh - 56px); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
}

/* Mangal: kömür dokusu ve köz ışıltısı */
.theme-mangal .page {
  background:
    radial-gradient(120% 50% at 50% 105%, rgba(255, 106, 0, .28), transparent 60%),
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .06) 50%, transparent 51%) 0 0 / 22px 22px,
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 255, 255, .05) 50%, transparent 51%) 0 0 / 17px 17px,
    var(--bg);
}

/* ---------- Kapak ---------- */
.cover {
  position: relative;
  height: 168px;
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(250, 150, 40, .35), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
    #101010;
  border-bottom: 3px solid var(--orange);
}
.theme-ates .cover { border-bottom-color: #101010; }
.cover.has-img { height: 210px; }
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%);
}
.brand {
  position: absolute;
  z-index: 1;
  top: max(16px, env(safe-area-inset-top));
  left: 18px;
}
.brand img { height: 34px; width: auto; display: block; }
.top-actions {
  position: absolute;
  z-index: 1;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  display: flex;
  gap: 8px;
}
.round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(16, 16, 16, .55);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, color .2s;
}
.round:hover { background: var(--orange); color: #101010; border-color: var(--orange); }

/* ---------- Kimlik ---------- */
.content { flex: 1; padding: 0 20px 32px; display: flex; flex-direction: column; }
/* Telefonda sütunlar yok: öğeler tek akışta, sosyal ikonlar en sonda */
.col-id, .col-links { display: contents; }
.content .socials { order: 2; }
.links-title { display: none; }
.identity { text-align: center; margin-top: -66px; position: relative; z-index: 2; }
.avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #101010;
  display: grid;
  place-items: center;
  /* Logodaki çift halka motifi */
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 7px var(--ring, var(--orange)),
    0 0 0 10px var(--bg),
    0 0 0 11.5px var(--ring, var(--orange)),
    0 18px 40px rgba(0, 0, 0, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img.mark { width: 72%; height: 72%; object-fit: contain; }
.avatar span { font-size: 44px; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }

h1 {
  margin: 26px 0 0;
  font-size: clamp(24px, 6.6vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.role {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.identity .bar {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--accent);
}
.bio {
  margin: 18px auto 0;
  max-width: 400px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Hızlı iletişim ---------- */
.quick {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin: 24px 0 0;
}
.quick a { display: grid; justify-items: center; gap: 7px; text-decoration: none; }
.q-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--accent);
  border: 2px solid var(--accent);
  transition: background .2s, color .2s, transform .2s;
}
.q-lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.quick a:hover .q-ico,
.quick a:focus-visible .q-ico { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }

.save-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(250, 150, 40, .25);
  transition: transform .15s, box-shadow .15s;
}
.theme-ates .save-contact { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.save-contact:hover { transform: translateY(-2px); }
.save-contact:active { transform: translateY(1px); }

/* ---------- Bağlantılar ---------- */
.links { display: grid; gap: 12px; margin: 26px 0 0; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--card-text);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i) * 60ms + 100ms);
}
.link:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.l-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: var(--ico-bg);
  color: var(--ico-color, var(--orange));
}
.l-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.l-txt strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.l-txt small { font-size: 12.5px; font-weight: 500; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-arrow { flex: none; font-size: 14px; opacity: .45; transition: transform .2s, opacity .2s; }
.link:hover .l-arrow { transform: translateX(3px); opacity: 1; color: var(--orange); }

.link.hl { background: var(--hl-bg); color: var(--hl-text); border-color: transparent; }
.link.hl .l-ico { background: rgba(0, 0, 0, .12); color: var(--hl-text); }
.theme-gunduz .link.hl .l-ico { background: var(--orange); color: #101010; }
.link.hl .l-arrow { opacity: .8; color: inherit; }

/* ---------- Sosyal ---------- */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: background .2s, color .2s, border-color .2s;
}
.theme-ates .socials a { color: #fff; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #101010; }
.theme-ates .socials a:hover { background: #fff; border-color: #fff; }

/* ---------- Kurumsal alt bilgi (sitedeki footer gibi) ---------- */
.corp {
  background: #101010;
  border-top: 3px solid var(--orange);
  color: #fff;
  text-align: center;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
}
.corp-logo img { height: 40px; width: auto; }
.call-center {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px auto 0;
  padding: 10px 22px 10px 16px;
  border: 2px solid var(--orange);
  border-radius: 50px;
  text-decoration: none;
}
.call-center i { color: var(--orange); font-size: 22px; }
.call-center span { display: grid; text-align: left; line-height: 1.15; }
.call-center small { font-size: 11px; font-weight: 600; color: #BDBDBD; text-transform: uppercase; letter-spacing: .08em; }
.call-center strong { font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.call-center:hover { background: var(--orange); }
.call-center:hover i, .call-center:hover small, .call-center:hover strong { color: #101010; }
.apps { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.apps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.apps a:hover { border-color: var(--orange); color: var(--orange); }
.corp-socials { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.corp-socials a { color: #9A9A9A; font-size: 18px; transition: color .2s; }
.corp-socials a:hover { color: var(--orange); }
.copy { margin: 16px 0 0; font-size: 12px; color: #8A8A8A; }

/* ---------- QR penceresi ---------- */
.sheet {
  width: min(400px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  padding: 28px 24px 22px;
  background: #fff;
  color: #101010;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.sheet::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 800; }
.sheet h2::after { content: ""; display: block; width: 48px; height: 3px; margin: 10px auto 0; background: var(--orange); border-radius: 3px; }
.sheet > p { margin: 10px 0 0; color: #6A645E; font-size: 14px; }
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #F2F0ED;
  font-size: 16px;
  cursor: pointer;
}
.qr-box { width: 250px; max-width: 100%; margin: 18px auto 0; border-radius: 14px; overflow: hidden; border: 1px solid #EEE; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-url { font-weight: 700; color: #101010 !important; word-break: break-all; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.sheet-actions button {
  padding: 12px 10px;
  border-radius: 10px;
  border: 2px solid var(--orange);
  background: #fff;
  color: #101010;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sheet-actions button:last-child { background: var(--orange); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 50px;
  background: #101010;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--orange);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 10;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Masaüstü: tek ekrana sığan iki sütun, sabit alt bilgi ---------- */
@media (min-width: 960px) and (min-height: 560px) {
  body { padding: 0; height: 100vh; overflow: hidden; }
  .page {
    max-width: none;
    height: 100vh;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .cover, .cover.has-img { height: clamp(110px, 19vh, 190px); }
  .brand { left: 40px; top: 22px; }
  .brand img { height: 40px; }
  .top-actions { right: 40px; top: 20px; }

  .content {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
    gap: 56px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 0;
  }
  .content:not(:has(.link)) { grid-template-columns: minmax(340px, 440px); justify-content: center; }
  .col-id, .col-links { display: block; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(128, 128, 128, .35) transparent; }
  .col-id { padding: 18px 18px 24px; margin: -82px -12px 0; position: relative; z-index: 2; }
  .identity { margin-top: 0; }
  .avatar { width: 116px; height: 116px; }
  .avatar span { font-size: 40px; }
  h1 { margin-top: 22px; font-size: 28px; }
  .bio { font-size: 14.5px; margin-top: 14px; }
  .quick { margin-top: 20px; }
  .save-contact { margin-top: 18px; padding: 14px; }
  .content .socials { margin-top: 20px; }

  .col-links { padding: 30px 10px 30px 4px; }
  .links-title {
    display: block;
    margin: 0 0 22px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .links-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--accent); }
  .links { margin: 0; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
  .link { padding: 14px 18px 14px 14px; }

  /* Alt bilgi: tek satır, her zaman görünür */
  .corp {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px max(40px, calc((100vw - 1180px) / 2 + 40px));
    text-align: left;
  }
  .corp-logo img { height: 34px; display: block; }
  .call-center { margin: 0; padding: 6px 18px 6px 12px; }
  .call-center strong { font-size: 17px; }
  .apps { margin: 0; }
  .corp-socials { margin: 0 0 0 auto; }
  .copy { margin: 0; white-space: nowrap; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .link { animation: none; }
  * { transition: none !important; }
}

/* ---------- Basit sayfalar (giriş yok / 404) ---------- */
.simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #101010;
  color: #fff;
}
.simple img { height: 44px; }
.simple h1 { margin-top: 28px; }
.simple p { color: #A8A29C; }
.simple a.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--orange);
  color: #101010;
  font-weight: 800;
  text-decoration: none;
}

/* ---------- IBAN butonu ---------- */
button.link {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.iban-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  vertical-align: 2px;
}
.theme-ates .link:not(.hl) .iban-tag { border-color: #FA9628; color: #FA9628; }
.link.hl .iban-tag { border-color: currentColor; color: inherit; }
.iban-no {
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px !important;
  letter-spacing: .02em;
  opacity: .8 !important;
}
.l-copy {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 52px;
  color: var(--orange);
  font-size: 17px;
}
.l-copy em { font-style: normal; font-size: 10.5px; font-weight: 700; opacity: .8; }
.link.hl .l-copy { color: inherit; }
.link.iban.copied { border-color: #2E9D5B; }
.link.iban.copied .l-copy { color: #2E9D5B; }
.link.hl.iban.copied .l-copy { color: inherit; }

/* ---------- Geliştirici imzası ---------- */
.credit { display: block; margin: 14px auto 0; width: max-content; padding-top: 12px; border-top: 1px solid #262626; }
.credit img { display: block; height: 24px; width: auto; opacity: .75; transition: opacity .2s; }
.credit:hover img { opacity: 1; }
@media (min-width: 960px) and (min-height: 560px) {
  .corp .credit { margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid #2A2A2A; }
}
