/* Beyaz, sade kartvizit. ithinka renkleri: ahududu vurgu + koyu gri yazı. */
:root {
  /* Ana 5 renk panelden değişir (/theme.css bunları ezer); diğerleri bunlardan türetilir */
  --bg: #f4f4f5; --card: #ffffff; --ink: #3f3f3f; --brand: #c03456; --on-brand: #ffffff;
  --muted: color-mix(in srgb, var(--ink) 72%, var(--card)); --line: color-mix(in srgb, var(--ink) 13%, var(--card));
  --brand-dark: color-mix(in srgb, var(--brand) 82%, #000); --brand-soft: color-mix(in srgb, var(--brand) 9%, var(--card));
  --ok: #15803d; --warn: #b45309; --err: #b91c1c;
  --font: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); display: flex; flex-direction: column; align-items: center; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }

.card { position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 24px 28px; text-align: center; overflow: hidden; box-shadow: 0 10px 40px color-mix(in srgb, var(--ink) 8%, transparent); }
/* üst süs: köşeden yayılıp sönen nokta ızgarası ve ince yay; markasız, kartvizite "kağıt baskı" hissi */
.deco { position: absolute; inset: 0 0 auto 0; height: 170px; pointer-events: none; overflow: hidden; }
.deco::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--brand) 1.3px, transparent 1.6px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0, #000 0, transparent 70%); mask-image: radial-gradient(120% 100% at 100% 0, #000 0, transparent 70%); opacity: .35; }
/* bilişim çizimi: sunucu kabini, veritabanı ve devre yolları (çizgi sanatı, vurgu renginde) */
.deco .it { position: absolute; top: 10px; right: 10px; width: 104px; height: auto; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.deco .it .thin { stroke-width: 1.4; opacity: .7; }
.deco .it .trace { stroke-width: 1.4; stroke-dasharray: 3 3; }
.deco .it .node, .deco .it .led { fill: var(--brand); stroke: none; }
.deco .it .led { animation: blink 2.8s ease-in-out infinite; }
.deco .it .led + .led { animation-delay: 1.4s; }
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 380px) { .deco .it { width: 92px; } }
/* yüklenen logo: kutuya sığar, oranı korunur; ad/avatar alanına taşmaz */
.deco .logo { position: absolute; top: 16px; right: 16px; max-width: 96px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 380px) { .deco .logo { max-width: 76px; max-height: 44px; } }
.card > :not(.deco) { position: relative; }

.avatar { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--brand); }
.avatar.initials { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 2.6rem; font-weight: 600; letter-spacing: .02em; }
h1 { margin: 0; font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 span { font-weight: 700; }
.company { margin: 10px 0 0; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.title, .sub { margin: 2px 0 0; color: var(--brand); font-weight: 600; font-size: .95rem; }

.save { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 14px; min-height: 54px; border-radius: 14px; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: background .2s; }
.save:hover { background: var(--brand-dark); }
.save .ico { width: 22px; height: 22px; stroke: currentColor; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-size: .82rem; font-weight: 600; transition: border-color .2s, background .2s; }
.q:hover { border-color: var(--brand); background: var(--brand-soft); }
.q .ico { width: 22px; height: 22px; stroke: var(--brand); }

.ico { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rows { list-style: none; margin: 0; padding: 0; text-align: left; border-top: 1px solid var(--line); }
.rows li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rows .ico { width: 20px; height: 20px; }
.rows div { min-width: 0; }
.lbl { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.val { display: block; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.val:hover { color: var(--brand); }

.about { text-align: left; margin-top: 24px; border-radius: 14px; background: var(--brand-soft); }
.about summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); border-radius: 14px; }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; margin-top: -4px; }
.about[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.about summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.about-body { padding: 0 18px 18px; }
.about p { margin: 0 0 .8em; font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.about p:last-child { margin-bottom: 0; }
.qr { margin: 24px 0 0; }
.qr img { width: 200px; height: 200px; margin: 0 auto; padding: 8px; border: 1px solid var(--brand); border-radius: 10px; background: #fff; }
.qr figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }

footer { margin-top: 18px; font-size: .78rem; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }

@media (max-width: 380px) { .card { padding: 34px 16px 22px; } .q span { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; }
  .save, .quick { display: none; }
}
.draft-banner { position: sticky; top: 0; z-index: 5; width: 100%; max-width: 440px; margin: -8px 0 12px; padding: 10px 14px; border-radius: 10px; background: #fff7e6; border: 1px solid var(--warn); color: var(--warn); font-size: .85rem; font-weight: 600; text-align: center; }
.draft-banner a { color: inherit; }
