/* ==========================================================================
   Muditap360 — Herkese açık kart profili (/p/{slug})
   Bağımsız mobil sayfa; site header/footer kullanmaz.
   ========================================================================== */

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

:root {
    --c-bg: #5B4BFF;
    --c-fg: #FFFFFF;
    --c-accent: #D7FF3A;
    --ink: #0B0B1A;
    --muted: #6F6F88;
    --line: #E8E7F2;
    --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
    --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--ink);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.vc-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 40px);
    background:
        radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .25), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(11, 11, 26, .18), transparent 46%),
        var(--c-bg);
}

.vc-card {
    width: min(430px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 34px 26px 22px;
    box-shadow: 0 40px 80px -30px rgba(11, 11, 26, .45);
    animation: vcIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes vcIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.vc-head { text-align: center; margin-bottom: 22px; }
.vc-avatar {
    width: 88px; height: 88px; margin: 0 auto 14px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-bg);
    color: var(--c-fg);
    font-family: var(--f-display);
    font-weight: 800; font-size: 38px;
    box-shadow: 0 14px 30px -10px rgba(11, 11, 26, .35);
}
.vc-head h1 { font-family: var(--f-display); font-size: 27px; letter-spacing: -.03em; }
.vc-role { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.vc-bio { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.vc-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 15px 18px;
    border-radius: 16px;
    font-weight: 700; font-size: 15.5px;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.vc-btn:active { transform: scale(.98); }
.vc-btn--save { background: var(--ink); color: #fff; box-shadow: 0 14px 28px -12px rgba(11, 11, 26, .5); }
.vc-btn--save:hover { transform: translateY(-2px); }
.vc-btn--primary { background: var(--ink); color: #fff; }

.vc-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin: 14px 0 8px; }
.vc-quick-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 13px 6px;
    border: 1.5px solid var(--line); border-radius: 14px;
    font-size: 12.5px; font-weight: 700; color: var(--ink);
    transition: border-color .2s, background .2s;
}
.vc-quick-btn i { font-size: 21px; color: var(--c-bg); }
.vc-quick-btn .fa-whatsapp { color: #25D366; }
.vc-quick-btn:hover { border-color: var(--ink); background: #F6F5FC; }

.vc-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.vc-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid var(--line); border-radius: 14px;
    transition: border-color .2s, background .2s;
}
.vc-links a:hover { border-color: var(--ink); background: #F6F5FC; }
.vc-links a > i:first-child { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: #F6F5FC; font-size: 18px; color: var(--c-bg); }
.vc-links a span { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; }
.vc-links a small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-links a > i:last-child { color: var(--muted); }

.vc-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vc-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.vc-brand svg { width: 20px; height: 20px; color: var(--ink); }
.vc-brand:hover { color: var(--ink); }
.vc-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-bg); }

.vc-empty { text-align: center; }
.vc-empty > i { font-size: 52px; color: var(--muted); }
.vc-empty h1 { font-family: var(--f-display); font-size: 24px; margin: 12px 0 6px; }
.vc-empty p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ==========================================================================
   Uygulama görünümlü profil (vp-*) — kapak, fotoğraf, hızlı işlemler,
   bağlantılar, Hakkımızda, iletişim, alt menü ve paylaşım sayfası
   ========================================================================== */
body:has(.vp) { background: #EFEEF7; }
.vp { --page: #F6F5FB; position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--page); overflow-x: clip; }
@media (min-width: 560px) {
    body:has(.vp) { background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--c-bg) 22%, transparent), transparent 50%), #EFEEF7; }
    .vp { margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 32px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(11, 11, 26, .45); }
}

.vp-cover {
    position: relative; height: 190px; padding: 16px 16px 0;
    color: var(--c-fg);
    background:
        radial-gradient(circle at 88% -10%, rgba(255, 255, 255, .35), transparent 45%),
        radial-gradient(circle at 0% 110%, rgba(11, 11, 26, .25), transparent 55%),
        var(--c-bg);
}
.vp-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 18px 18px; opacity: .12; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.is-light-theme .vp-cover { background: radial-gradient(circle at 88% -10%, rgba(91, 75, 255, .25), transparent 50%), linear-gradient(160deg, #EEF0FF, #F8F5FF); }
.vp-topbar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.vp-brand { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .85); margin-right: auto; }
.vp-brand svg { width: 24px; height: 24px; color: var(--ink); }
.vp-round, .vp-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.vp-pill { padding: 0 14px; }
.vp-round i { font-size: 19px; }
.is-light-theme .vp-round, .is-light-theme .vp-pill { background: rgba(11, 11, 26, .06); }

.vp-body { position: relative; padding: 0 16px calc(120px + env(safe-area-inset-bottom)); }
.vp-head { position: relative; margin-top: -64px; padding: 0 18px 20px; text-align: center; background: #fff; border-radius: 28px; box-shadow: 0 24px 50px -30px rgba(11, 11, 26, .35); animation: vcIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.vp-avatar {
    position: relative; top: -52px; width: 112px; height: 112px; margin: 0 auto -38px;
    display: grid; place-items: center;
    border-radius: 50%; border: 5px solid #fff;
    background: var(--c-bg); color: var(--c-fg);
    font-family: var(--f-display); font-weight: 800; font-size: 46px;
    box-shadow: 0 16px 34px -12px rgba(11, 11, 26, .45);
}
.is-light-theme .vp-avatar { background: var(--brand); color: #fff; }
.vp-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.vp-verified { position: absolute; right: 2px; bottom: 4px; font-size: 26px; color: #2F7CF6; background: #fff; border-radius: 50%; line-height: 1; }
.vp-head h1 { font-family: var(--f-display); font-size: clamp(24px, 7vw, 29px); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.vp-role { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.vp-bio { margin: 10px auto 0; max-width: 34ch; font-size: 14px; line-height: 1.55; color: var(--muted); }

.vp-cta { display: flex; gap: 8px; margin-top: 18px; }
.vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; border: 0; border-radius: 16px; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background .2s; }
.vp-btn:active { transform: scale(.97); }
.vp-btn i { font-size: 19px; }
.vp-btn--save { flex: 1; background: var(--ink); color: #fff; box-shadow: 0 14px 28px -12px rgba(11, 11, 26, .55); }
.vp-btn--save i { color: #D7FF3A; }
.vp-btn--ghost { width: 52px; padding: 0; background: #F2F1FA; color: var(--ink); }
.vp-btn--wa { flex: 1; background: #25D366; color: #fff; }
.vp-btn--wa i { color: #fff; }

.vp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; margin-top: 16px; }
.vp-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; font-size: 12px; font-weight: 700; color: var(--ink); }
.vp-quick a span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-size: 22px; transition: transform .2s; }
.vp-quick a span.is-wa { background: #E6F9EE; color: #1FAF55; }
.vp-quick a:active span { transform: scale(.92); }

.vp-sec { margin-top: 22px; scroll-margin-top: 16px; }
.vp-sec h2 { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-family: var(--f-display); font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.vp-sec h2::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--brand); }

.vp-links { display: grid; gap: 8px; }
.vp-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; background: #fff; border-radius: 18px; box-shadow: 0 1px 0 rgba(11, 11, 26, .04), 0 10px 24px -20px rgba(11, 11, 26, .5); transition: transform .2s, box-shadow .2s; }
.vp-link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(11, 11, 26, .55); }
.vp-link:active { transform: scale(.985); }
.vp-link-ic { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--brand-fg); font-size: 20px; }
.vp-link--instagram .vp-link-ic { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); color: #fff; }
.vp-link--linkedin .vp-link-ic { background: #0A66C2; color: #fff; }
.vp-link--youtube .vp-link-ic { background: #FF0000; color: #fff; }
.vp-link--tiktok .vp-link-ic, .vp-link--x .vp-link-ic, .vp-link--github .vp-link-ic { background: #0B0B1A; color: #fff; }
.vp-link--facebook .vp-link-ic { background: #1877F2; color: #fff; }
.vp-link--spotify .vp-link-ic { background: #1DB954; color: #fff; }
.vp-link--whatsapp .vp-link-ic { background: #25D366; color: #fff; }
.vp-link--telegram .vp-link-ic { background: #229ED9; color: #fff; }
.vp-link--star .vp-link-ic { background: #FBBC04; color: #0B0B1A; }
.vp-link-tx { flex: 1; min-width: 0; }
.vp-link-tx strong { display: block; font-size: 15px; color: var(--ink); }
.vp-link-tx small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-link-go { color: #B4B1CC; font-size: 18px; }

.vp-about { padding: 18px; background: #fff; border-radius: 20px; font-size: 14.5px; line-height: 1.7; color: #3E3E55; box-shadow: 0 10px 24px -20px rgba(11, 11, 26, .5); }
.vp-about p + p { margin-top: 10px; }

.vp-info { background: #fff; border-radius: 20px; box-shadow: 0 10px 24px -20px rgba(11, 11, 26, .5); overflow: hidden; }
.vp-info li { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; }
.vp-info li + li { border-top: 1px solid #F0EFF6; }
.vp-info li > i { flex-shrink: 0; font-size: 20px; color: var(--brand); }
.vp-info a { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.vp-info small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.vp-info button { flex-shrink: 0; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: #9C99B8; font-size: 18px; cursor: pointer; }
.vp-info button:hover { background: #F4F3FA; color: var(--ink); }

.vp-foot { margin-top: 28px; text-align: center; }
.vp-foot a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.vp-foot svg { width: 20px; height: 20px; color: var(--ink); }

/* Alt menü */
.vp-tabbar {
    position: fixed; z-index: 20; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: min(456px, calc(100% - 24px)); height: 66px; padding: 0 6px;
    display: flex; align-items: center;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px;
    box-shadow: 0 20px 40px -18px rgba(11, 11, 26, .45);
}
.vp-tab { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 700; color: #8E8BA8; cursor: pointer; position: relative; }
.vp-tab i { font-size: 22px; transition: transform .2s; }
.vp-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-tab.is-active { color: var(--ink); }
.vp-tab.is-active i { color: var(--brand); }
.vp-tab--save { flex: 0 0 auto; padding: 0 4px; }
.vp-tab--save span { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -30px; border-radius: 20px; background: var(--ink); color: #D7FF3A; box-shadow: 0 14px 26px -10px rgba(11, 11, 26, .6), 0 0 0 5px #fff; }
.vp-tab--save i { font-size: 25px; }

/* Paylaş sayfası */
.vp-sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.vp-sheet[hidden] { display: none; }
.vp-sheet-backdrop { position: absolute; inset: 0; background: rgba(11, 11, 26, .5); opacity: 0; transition: opacity .25s; }
.vp-sheet-panel { position: relative; width: min(480px, 100%); padding: 12px 22px calc(24px + env(safe-area-inset-bottom)); background: #fff; border-radius: 28px 28px 0 0; text-align: center; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.vp-sheet.is-open .vp-sheet-backdrop { opacity: 1; }
.vp-sheet.is-open .vp-sheet-panel { transform: none; }
.vp-sheet-grab { display: block; width: 44px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: #E2E0EE; }
.vp-sheet h2 { font-family: var(--f-display); font-size: 21px; color: var(--ink); }
.vp-sheet p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.vp-qr { width: 208px; margin: 18px auto 12px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #EEEDF5, 0 18px 36px -22px rgba(11, 11, 26, .5); }
.vp-qr svg { display: block; width: 100%; height: auto; }
.vp-url { display: inline-block; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: #F4F3FA; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vp-sheet-actions .vp-btn { flex: 1 1 140px; height: 50px; font-size: 14.5px; }
.vp-sheet-actions .vp-btn--ghost { width: auto; flex-basis: 100%; }
.vp-sheet-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #F4F3FA; color: var(--ink); font-size: 17px; cursor: pointer; }
.vp-toast { position: fixed; z-index: 50; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(11, 11, 26, .6); }
.vp-toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .vp-head, .vp-sheet-panel, .vp-sheet-backdrop { animation: none; transition: none; } }
.vp-sheet-actions .vp-btn { white-space: nowrap; }
