:root {
    color-scheme: light;
}

* { box-sizing: border-box; }

body.profile-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.profile-page {
    color: var(--ink);
    font-family: var(--font, "Source Sans 3", sans-serif);
    background: var(--bg);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

.profile-page[data-bg="gradyan"] {
    background: linear-gradient(165deg, var(--bg) 0%, var(--bg2) 48%, var(--bg) 100%);
}

.profile-page[data-bg="gorsel"] {
    background-color: var(--bg);
    background-image: var(--bg-image);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.profile-page[data-tema="light"] {
    --ink: #1c2420;
    --muted: #5c675f;
    --card: rgba(255, 252, 248, 0.92);
    --line: rgba(28, 36, 32, 0.1);
    --chip: rgba(31, 61, 54, 0.08);
    --shadow: 0 10px 30px rgba(28, 36, 32, 0.06);
}

.profile-page[data-tema="dark"] {
    --ink: #f6f3ec;
    --muted: #c9c2b4;
    --card: rgba(22, 28, 25, 0.88);
    --line: rgba(255, 255, 255, 0.1);
    --chip: rgba(255, 255, 255, 0.08);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

.skip {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 5;
    background: var(--btn);
    color: var(--btn-ink);
    padding: 0.6rem 0.9rem;
    border-radius: 0.7rem;
    font-weight: 700;
}

.skip:focus { top: 0.75rem; }

.preview-flag {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 1rem;
    background: #1e293b;
    color: #e2e8f0;
}

.stage {
    width: min(100% - 1.5rem, 28.5rem);
    margin: 0 auto;
    padding: 1.75rem 0 3rem;
}

.sheet { display: flex; flex-direction: column; gap: 1.15rem; }

.cover {
    height: 9.25rem;
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    margin-bottom: -4.4rem;
    box-shadow: var(--shadow);
    background: var(--chip);
}

.cover img,
.avatar,
.plink-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.identity.has-cover { padding-top: 0.15rem; }

.avatar {
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 999px;
    box-shadow: 0 0 0 4px var(--bg), var(--shadow);
    background: var(--card);
}

.identity.has-cover .avatar { box-shadow: 0 0 0 4px var(--bg), var(--shadow); }

.avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #f7f4ee;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
}

.sheet h1 {
    margin: 0.7rem 0 0;
    font-size: clamp(1.7rem, 5vw, 2.05rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.role {
    margin: 0.15rem 0 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.98rem;
}

.bio {
    margin: 0.45rem 0 0;
    max-width: 34em;
    color: var(--muted);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.contacts,
.socials,
.links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.85rem;
    margin-top: 0.85rem;
}

.contacts a,
.socials a,
.plink,
.plink-hit,
.plink-go {
    color: inherit;
    text-decoration: none;
}

.contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.contacts a[data-kind="eposta"] { color: var(--mail, var(--muted)); }
.contacts a[data-kind="telefon"] { color: var(--tel, var(--muted)); }

.contacts a:hover { color: var(--ink); }
.contacts a[data-kind="eposta"]:hover { color: var(--mail, var(--ink)); }
.contacts a[data-kind="telefon"]:hover { color: var(--tel, var(--ink)); }

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.socials a {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.socials a[data-platform="website"] { color: var(--web, var(--ink)); }
.socials a[data-kind="whatsapp"] { color: var(--wa, var(--ink)); }

.group { display: flex; flex-direction: column; gap: 0.55rem; }

.group h2,
.eyebrow {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.links { display: flex; flex-direction: column; gap: 0.7rem; }

.links > li.is-featured {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
}

.links > li.is-featured .eyebrow {
    margin: 0;
    text-align: center;
}

.plink {
    min-height: 4.35rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: left;
}

.profile-page[data-btn="dolu"] .plink {
    background: var(--btn);
    color: var(--btn-ink);
    border-color: transparent;
}

.profile-page[data-btn="cerceve"] .plink {
    background: transparent;
    border: 1.5px solid var(--accent);
    box-shadow: none;
}

.profile-page[data-btn="yumusak"] .plink {
    background: var(--card);
    border-color: transparent;
}

.plink.is-featured {
    background: var(--btn);
    color: var(--btn-ink);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(20, 32, 28, 0.18);
}

.plink-icon {
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 2.85rem;
    border-radius: calc(var(--radius) - 6px);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--chip);
    color: var(--accent);
    font-size: 1.05rem;
}

.profile-page[data-btn="dolu"] .plink-icon,
.plink.is-featured .plink-icon {
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
}

.plink-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.plink-title,
.plink-desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.plink-title {
    font-weight: 700;
    letter-spacing: -0.015em;
    -webkit-line-clamp: 2;
}

.plink-desc {
    color: var(--muted);
    font-size: 0.84rem;
    -webkit-line-clamp: 2;
}

.profile-page[data-btn="dolu"] .plink-desc,
.plink.is-featured .plink-desc { color: inherit; opacity: 0.78; }

.plink-hit {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 2.85rem;
}

.plink-actions {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 0 0 auto;
}

.plink-share,
.plink-go {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    font-size: 0.82rem;
    cursor: pointer;
}

.plink-share:hover,
.plink-go:hover,
.plink-share:focus-visible,
.plink-go:focus-visible {
    opacity: 1;
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.plink-share.is-copied { opacity: 1; }

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 30;
    transform: translateX(-50%);
    background: #064e3b;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.copy-toast[hidden] { display: none; }

.plink.back { margin-top: 0.4rem; }

.empty,
.colophon {
    margin: 0.2rem 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.sheet.missing h1 { font-size: 1.55rem; }

.missing .eyebrow { text-align: left; }

a:focus-visible,
button:focus-visible,
.skip:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (min-width: 900px) {
    .stage { padding-top: 3.5rem; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .plink,
    .socials a {
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .plink:hover,
    .socials a:hover {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.theme-frame {
    border-radius: 1.6rem;
    overflow: hidden;
    border: 1px solid rgba(28, 36, 32, 0.08);
    min-height: 36rem;
}

.theme-frame .stage {
    width: min(100% - 1rem, 24rem);
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

@media (max-width: 720px) {
    .profile-page[data-bg="gorsel"] { background-attachment: scroll; }
}
