/* Dijital kartvizit — mobil öncelikli */
:root {
  --accent: #6d5efc;
  --bg: #0b0b14; --surface: rgba(255,255,255,.06); --surface-2: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.09); --text: #f4f4fb; --muted: #a6a6bd; --on-accent: #fff;
  --radius: 18px;
}
/* Tema renkleri veritabanından satır içi :root değişkenleri olarak gelir (App\Themes::cssVars) */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
@media (min-width: 560px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg); padding: 32px 0; }
  .vc { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); border: 1px solid var(--line); }
}
html:has(body.is-embed) { overflow-x: hidden; }
body.is-embed { padding: 0; background: var(--bg); overflow-x: hidden; touch-action: pan-y; }
body.is-embed .vc { border-radius: 0; box-shadow: none; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.ico { flex: none; }

.vc { max-width: 460px; margin: 0 auto; background: var(--bg); padding-bottom: 28px; position: relative; }

/* kapak */
.vc-cover {
  height: 190px; position: relative; /* overflow açık: dil menüsü kapağın dışına taşabilmeli */
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #0b0b14));
  background-size: cover; background-position: center;
}
.vc-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.35), transparent 40%),
              radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accent) 60%, #22d3a6), transparent 50%);
  mix-blend-mode: soft-light;
}
.vc-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, var(--bg)); }
.vc-top { position: relative; z-index: 6; display: flex; justify-content: space-between; align-items: center; padding: 16px; }
.vc-chip {
  display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 10px; border-radius: 99px; background: rgba(0,0,0,.28); color: #fff; backdrop-filter: blur(8px);
}
.vc-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.28); color: #fff; backdrop-filter: blur(8px);
}

/* kimlik */
.vc-id { text-align: center; padding: 0 24px; margin-top: -108px; position: relative; z-index: 3; }
.vc-avatar {
  width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 44px; overflow: hidden;
  border: 4px solid var(--bg); background: var(--surface-2); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.vc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-avatar span { font-size: 52px; font-weight: 800; color: var(--accent); }
.vc-id h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.vc-title { margin: 6px 0 0; color: var(--accent); font-weight: 600; filter: brightness(1.25); }
.is-light .vc-title { filter: none; }
.vc-company { margin: 4px 0 0; color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.vc-bio { margin: 14px auto 0; color: var(--muted); font-size: 14.5px; max-width: 360px; }

/* hızlı eylemler */
.vc-actions { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; padding: 22px 20px 0; }
.vc-actions a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; transition: transform .15s, background .15s;
}
.vc-actions a:active { transform: scale(.96); }
.vc-action-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.is-dark .vc-action-ico { color: color-mix(in srgb, var(--accent) 55%, #fff); }

.vc-save {
  margin: 16px 20px 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 16px; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .15s;
}
.vc-save:active { transform: scale(.98); }

/* bloklar */
.vc-block { padding: 26px 20px 0; }
.vc-block h2 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vc-socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vc-social {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 11.5px; color: var(--muted);
}
.vc-social .ico { color: var(--text); }
.s-instagram .ico { color: #e1306c; } .s-linkedin .ico { color: #2d8cdb; } .s-youtube .ico { color: #ff3b3b; }
.s-facebook .ico { color: #3d7bf7; } .s-telegram .ico { color: #2aa3e0; } .s-pinterest .ico { color: #e60023; } .s-behance .ico { color: #2f6bff; }

.vc-links { display: grid; gap: 10px; }
.vc-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.vc-link-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.vc-link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vc-link-text strong { font-size: 14.5px; font-weight: 600; }
.vc-link-text small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-link-arrow { color: var(--muted); }

.vc-bank { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.vc-bank-head { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14.5px; }
.vc-bank-holder { color: var(--muted); font-size: 13px; margin-top: 2px; }
.vc-bank-iban { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.vc-bank-iban code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; letter-spacing: .02em; }
.vc-bank-iban button, .vc-qr-actions button, .vc-ghost {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
}

.vc-foot { text-align: center; padding: 30px 20px 0; display: grid; gap: 14px; justify-items: center; }
.vc-ghost { padding: 10px 16px; }
.vc-made { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

/* QR penceresi */
.vc-qr {
  border: 0; border-radius: 24px; padding: 26px 22px 22px; width: min(360px, calc(100vw - 32px));
  background: var(--bg); color: var(--text); text-align: center; border: 1px solid var(--line);
}
.vc-qr::backdrop { background: rgba(5,5,12,.6); backdrop-filter: blur(4px); }
.vc-qr h3 { margin: 0; font-size: 18px; }
.vc-qr p { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.vc-qr-close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.vc-qr-code { background: #fff; border-radius: 18px; padding: 14px; width: 220px; height: 220px; margin: 0 auto; }
.vc-qr-code svg { width: 100%; height: 100%; display: block; }
.vc-qr-url { margin-top: 12px; font-size: 13px; color: var(--muted); word-break: break-all; }
.vc-qr-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

.vc-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: .2s; pointer-events: none; z-index: 20;
}
.vc-toast.on { opacity: 1; transform: translate(-50%, 0); }

.owner-bar {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  max-width: 460px; margin: 0 auto; padding: 10px 14px; font-size: 13px;
  background: #fff7d6; color: #5b4500;
}
.owner-bar a { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
@media (min-width: 560px) { .owner-bar { border-radius: 14px; margin-bottom: 12px; position: static; } }

/* kart etkinleştirme / pasif sayfaları */
.vc-state { max-width: 440px; margin: 0 auto; padding: 48px 22px; text-align: center; }
.vc-state .badge-ico { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.vc-state h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; }
.vc-state p { color: var(--muted); margin: 0 0 18px; }
.vc-state .code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .2em; background: var(--surface); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; display: inline-block; margin-bottom: 22px; }
.vc-state .btn { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; font-weight: 700; margin-top: 10px; border: 1px solid var(--line); background: var(--surface); width: 100%; }
.vc-state .btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.vc-state select { width: 100%; padding: 12px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); font: inherit; }
.vc-state label { display: block; text-align: left; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.vc-actions a span:last-child { white-space: nowrap; }
@media (max-width: 360px) { .vc-actions { gap: 6px; padding-left: 14px; padding-right: 14px; } .vc-actions a { font-size: 11.5px; } .vc-action-ico { width: 40px; height: 40px; } }

.owner-actions { display: inline-flex; gap: 14px; align-items: center; }
.owner-actions form { margin: 0; }
.owner-actions button { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.vc-state .hint-box { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* dil seçici */
.vc-top-actions { display: inline-flex; gap: 8px; align-items: center; }
.vc-lang { position: relative; }
.vc-lang summary { list-style: none; cursor: pointer; width: auto; padding: 0 10px; gap: 5px; display: inline-flex; align-items: center; }
.vc-lang summary::-webkit-details-marker { display: none; }
.vc-lang summary b { font-size: 12px; letter-spacing: .04em; }
.vc-lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 40; min-width: 170px; padding: 6px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.35); display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.vc-lang-menu a { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.vc-lang-menu a:hover { background: var(--surface); }
.vc-lang-menu a.on { background: var(--accent); color: #fff; font-weight: 700; }
/* sağdan sola diller */
[dir=rtl] .vc-link-arrow { transform: scaleX(-1); }
[dir=rtl] .vc-bank-iban code { direction: ltr; unicode-bidi: embed; }
[dir=rtl] .owner-bar { direction: rtl; }

/* otomatik çeviri */
.vc-lang-note { display: flex; gap: 6px; align-items: center; margin-top: 4px; padding: 8px 12px 4px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.vc-mt { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; margin: 10px auto 0; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.vc-mt a { color: var(--accent); font-weight: 700; }

/* ================= Kart şablonları (body.lay-*) — renk temalarından bağımsız ================= */

/* --- Tam fotoğraf: fotoğraf üst yarıda, ad fotoğrafın alt kenarında --- */
.lay-tamfoto .vc-cover { height: min(62vh, 470px); background-size: cover; background-position: center 22%; }
.lay-tamfoto .vc-cover::after { height: 62%; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 70%, transparent) 55%, var(--bg)); }
.lay-tamfoto.has-cover .vc-glow { display: none; }
.lay-tamfoto .vc-id { margin-top: -118px; text-align: start; padding: 0 22px; }
.lay-tamfoto .vc-avatar { display: none; }
.lay-tamfoto .vc-id h1 { font-size: 32px; letter-spacing: -.03em; }
.lay-tamfoto .vc-bio { margin-inline: 0; max-width: none; }
.lay-tamfoto:not(.has-cover) .vc-cover { height: 220px; }
.lay-tamfoto:not(.has-cover) .vc-id { margin-top: -40px; }

/* --- Minimal: kapak yok; fotoğraf solda, eylemler satır listesi --- */
.lay-minimal .vc-cover { height: auto; background: none !important; }
.lay-minimal .vc-glow, .lay-minimal .vc-cover::after { display: none; }
.lay-minimal .vc-chip { background: var(--surface); color: var(--muted); border-color: var(--line); }
.lay-minimal .vc-id { margin-top: 8px; display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: center; text-align: start; padding: 0 22px; }
.lay-minimal .vc-avatar { grid-row: 1 / span 3; width: 96px; height: 96px; border-radius: 50%; margin: 0; border: 0; box-shadow: none; }
.lay-minimal .vc-avatar span { font-size: 32px; }
.lay-minimal .vc-id h1 { font-size: 23px; align-self: end; }
.lay-minimal .vc-title { margin-top: 2px; }
.lay-minimal .vc-company { margin-top: 2px; align-self: start; }
.lay-minimal .vc-bio, .lay-minimal .vc-mt { grid-column: 1 / -1; margin: 16px 0 0; max-width: none; text-align: start; }
.lay-minimal .vc-actions { grid-template-columns: 1fr; gap: 0; margin: 22px 20px 0; padding: 0; border-top: 1px solid var(--line); }
.lay-minimal .vc-actions a { flex-direction: row; gap: 14px; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-size: 15px; }
.lay-minimal .vc-action-ico { width: 38px; height: 38px; border-radius: 50%; }
.lay-minimal .vc-save { box-shadow: none; border-radius: 12px; }
.lay-minimal .vc-socials { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.lay-minimal .vc-social { padding: 12px 4px; border-radius: 50%; aspect-ratio: 1; justify-content: center; }
.lay-minimal .vc-social span { display: none; }

/* --- Bağlantı listesi: yuvarlak fotoğraf, büyük hap düğmeler --- */
.lay-liste .vc-cover { height: 120px; }
.lay-liste .vc-id { margin-top: -66px; }
.lay-liste .vc-avatar { width: 132px; height: 132px; border-radius: 50%; }
.lay-liste .vc-actions { grid-template-columns: 1fr; gap: 10px; }
.lay-liste .vc-actions a { flex-direction: row; justify-content: center; position: relative; padding: 15px 18px; border-radius: 999px; font-size: 15.5px; font-weight: 700; }
.lay-liste .vc-action-ico { position: absolute; inset-inline-start: 8px; width: 38px; height: 38px; border-radius: 50%; }
.lay-liste .vc-save { border-radius: 999px; }
.lay-liste .vc-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lay-liste .vc-social { width: 52px; height: 52px; padding: 0; border-radius: 50%; justify-content: center; }
.lay-liste .vc-social span { display: none; }
.lay-liste .vc-block h2 { text-align: center; }
.lay-liste .vc-link { border-radius: 999px; padding: 10px 16px 10px 10px; }
.lay-liste .vc-link-ico { border-radius: 50%; }

/* --- Kurumsal: firma şeridi; fotoğraf ve kimlik yan yana; düzenli 2 sütun --- */
.lay-kurumsal .vc-cover { height: 132px; }
.lay-kurumsal .vc-cover::after { display: none; }
.lay-kurumsal .vc-id { margin-top: -46px; display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; text-align: start; padding: 0 20px; }
.lay-kurumsal .vc-avatar { grid-row: 1 / span 4; width: 112px; height: 112px; border-radius: 22px; margin: 0; }
.lay-kurumsal .vc-avatar span { font-size: 36px; }
.lay-kurumsal .vc-id h1 { margin-top: 52px; font-size: 22px; }
.lay-kurumsal .vc-title { margin-top: 3px; font-size: 14px; }
.lay-kurumsal .vc-company { font-weight: 700; color: var(--text); }
.lay-kurumsal .vc-bio, .lay-kurumsal .vc-mt { grid-column: 1 / -1; text-align: start; margin: 16px 0 0; max-width: none; padding-top: 14px; border-top: 1px solid var(--line); }
.lay-kurumsal .vc-actions { grid-template-columns: 1fr 1fr; }
.lay-kurumsal .vc-actions a { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; }
.lay-kurumsal .vc-action-ico { width: 34px; height: 34px; border-radius: 10px; }
.lay-kurumsal .vc-save { border-radius: 12px; }
.lay-kurumsal .vc-block h2 { padding-inline-start: 10px; border-inline-start: 3px solid var(--accent); }
.lay-kurumsal .vc-social, .lay-kurumsal .vc-link, .lay-kurumsal .vc-bank { border-radius: 12px; }

/* --- Bento: farklı boyutlarda kutucuklar --- */
.lay-bento .vc-cover { height: 150px; }
.lay-bento .vc-id { margin-top: -80px; }
.lay-bento .vc-avatar { border-radius: 30px; }
.lay-bento .vc-actions { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 84px; gap: 10px; }
.lay-bento .vc-actions a { border-radius: 22px; justify-content: center; padding: 10px 6px; }
.lay-bento .vc-actions a:nth-child(1) { grid-column: span 2; grid-row: span 2; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); font-size: 15px; }
.lay-bento .vc-actions a:nth-child(1) .vc-action-ico { width: 60px; height: 60px; border-radius: 20px; }
.lay-bento .vc-actions a:nth-child(2) { grid-column: span 2; }
.lay-bento .vc-actions a:nth-child(n+2) { flex-direction: row; gap: 10px; }
.lay-bento .vc-actions a:nth-child(n+3) { flex-direction: column; gap: 4px; font-size: 11.5px; }
.lay-bento .vc-actions a:nth-child(n+3) .vc-action-ico { width: 36px; height: 36px; border-radius: 12px; }
.lay-bento .vc-save { border-radius: 22px; }
.lay-bento .vc-socials { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 74px; }
.lay-bento .vc-social { border-radius: 20px; justify-content: center; }
.lay-bento .vc-social:first-child { grid-column: span 2; flex-direction: row; gap: 10px; font-size: 13px; color: var(--text); }
.lay-bento .vc-links { grid-template-columns: 1fr 1fr; }
.lay-bento .vc-link { border-radius: 20px; flex-direction: column; align-items: flex-start; padding: 14px; }
.lay-bento .vc-link:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.lay-bento .vc-link .vc-link-arrow { display: none; }
.lay-bento .vc-link:first-child .vc-link-arrow { display: inline; }
.lay-bento .vc-link-text { max-width: 100%; }
.lay-bento .vc-bank { border-radius: 20px; }
