/* ===============================================================
   ePetim Kamu QR – Pet Detay sayfasinin public varyanti.
   Burada yalnizca bu sayfaya ozgu parcalar tanimlanir (patili arka plan,
   avatar halkasi, galeri izgarasi, kaydirma FAB'lari); geri kalani
   .ep-* bilesenlerinden gelir.

   Cinsiyete gore vurgu rengi <html data-theme="male|female"> ile secilir;
   acik/koyu tema ekseninden bagimsizdir.
   =============================================================== */

:root {
    --dk-accent: var(--ep-violet);
    --dk-accent-bg: var(--ep-violet-tint);
}

[data-theme="male"] {
    --dk-accent: var(--ep-blue);
    --dk-accent-bg: var(--ep-blue-tint);
}

[data-theme="female"] {
    --dk-accent: var(--ep-pink);
    --dk-accent-bg: var(--ep-pink-tint);
}

body {
    background: var(--ep-bg);
    position: relative;
    min-height: 100vh;
}

/* Animated Floating Paw Background */
.paw-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.paw-bg .paw {
    position: absolute;
    color: var(--dk-accent);
    opacity: 0.05;
    animation: pawFloat linear infinite;
}

@keyframes pawFloat {
    0% { transform: translateY(110vh) rotate(0deg) scale(1); opacity: 0; }
    10% { opacity: 0.055; }
    90% { opacity: 0.055; }
    100% { transform: translateY(-10vh) rotate(25deg) scale(1.1); opacity: 0; }
}

@media (max-width: 768px) {
    .paw-bg .paw {
        opacity: 0.035;
    }
}

/* ===============================================================
   LAYOUT
=============================================================== */

.public-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    position: relative;
    z-index: 1;
}

.kamu-header {
    text-align: center;
    padding: 1.5rem 1rem 0;
    position: relative;
    z-index: 1;
}

.header-logo-link {
    display: inline-block;
    text-decoration: none;
}

.header-logo {
    width: 190px;
    height: auto;
}

.site-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ep-muted);
    margin: 0.4rem 0 0;
}

@media (max-width: 480px) {
    .header-logo { width: 160px; }
    .site-title { font-size: 0.92rem; }
}

/* ===============================================================
   AVATAR
=============================================================== */

.avatar-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: var(--dk-accent);
    padding: 4px;
}

.pet-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--ep-surface);
    object-fit: cover;
    background: var(--ep-surface);
    cursor: zoom-in;
    display: block;
}

@media (min-width: 576px) {
    .avatar-ring { width: 168px; height: 168px; }
    .pet-avatar { width: 158px; height: 158px; }
}

.dk-profil-not {
    padding: 0 18px 18px;
}

@media (min-width: 768px) {
    .dk-profil-not { padding-top: 26px; }
}

/* ===============================================================
   GALLERY — grid + paylas dugmesi
=============================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    border-radius: var(--ep-r-item);
    overflow: hidden;
    background: var(--ep-surface-3);
    aspect-ratio: 1/1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.06);
}

/* ===============================================================
   PAW RAIN EFFECT (avatara tiklaninca)
=============================================================== */

.paw-fall {
    position: fixed;
    top: -20px;
    color: var(--dk-accent);
    opacity: 0.85;
    animation: fall linear forwards;
    pointer-events: none;
    z-index: 50;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0); opacity: 0.9; }
    100% { transform: translateY(120vh) rotate(45deg); opacity: 0; }
}

/* ===============================================================
   KAYDIRMA BUTONLARI (yukari / asagi)
=============================================================== */

.scroll-fab {
    position: fixed;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--ep-primary);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .3s ease, transform .3s ease, background-color .15s ease;
    pointer-events: none;
}

.scroll-fab.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.scroll-fab:hover {
    background: var(--ep-primary-600);
    transform: scale(1.08);
}

.scroll-fab:active {
    transform: scale(0.95);
}

.scroll-fab-up { bottom: 76px; }
.scroll-fab-down { bottom: 22px; }

@media (max-width: 480px) {
    .scroll-fab { width: 34px; height: 34px; right: 12px; font-size: 0.85rem; }
    .scroll-fab-up { bottom: 62px; }
    .scroll-fab-down { bottom: 16px; }
}

/* ---- Kayıp uyarısı: aktif kayıp ilanı varsa profilin üstünde ---- */
.kamu-kayip {
    background: var(--ep-red);
    color: #fff;
    border-radius: var(--ep-r-card);
    padding: 16px 18px;
    margin: 1rem 0;
    text-align: center;
}

.kamu-kayip-baslik {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

    .kamu-kayip-baslik b {
        font-size: 26px;
        font-weight: 800;
        letter-spacing: .14em;
    }

.kamu-kayip-ikon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 15px;
}

.kamu-kayip p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
}

.kamu-kayip-butonlar {
    display: flex;
    gap: 8px;
}

    .kamu-kayip-butonlar .ep-btn {
        flex: 1 1 0;
        justify-content: center;
    }

.kamu-kayip-ara {
    background: var(--ep-surface);
    color: var(--ep-red-tx);
}

.kamu-kayip-bildir {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

    .kamu-kayip-ara:hover,
    .kamu-kayip-bildir:hover {
        color: var(--ep-red-tx);
        background: var(--ep-red-bg);
    }

@media (max-width: 576px) {
    .kamu-kayip-butonlar .ep-btn {
        padding: .35rem .75rem;
        font-size: .8rem;
        white-space: nowrap;
    }
}

.dk-govde {
    font-family: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(620px 420px at 100% 0%, var(--dk-accent-bg), transparent 65%), radial-gradient(600px 460px at 0% 25%, var(--ep-primary-50), transparent 65%), var(--ep-bg);
    background-repeat: no-repeat;
}

    .dk-govde .kamu-header {
        padding-top: 1.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dk-govde .header-logo-link {
        padding: 8px 18px;
        border-radius: 999px;
        background: var(--ep-surface);
        box-shadow: var(--pb-golge-sm);
    }

    .dk-govde .header-logo {
        width: 150px;
    }

    .dk-govde .site-title {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 12px;
        padding: 5px 12px;
        border-radius: 999px;
        background: var(--dk-accent-bg);
        color: var(--dk-accent);
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .dk-govde .public-wrapper {
        padding-top: 1.25rem;
    }

    .dk-govde .ep-profil {
        margin-bottom: 1.25rem;
        border: 1px solid var(--pb-cizgi-yumusak);
        border-radius: 30px;
        background: radial-gradient(420px 220px at 50% 0%, var(--dk-accent-bg), transparent 72%), var(--ep-surface);
        box-shadow: var(--pb-golge-lg);
        overflow: hidden;
    }

    .dk-govde .avatar-ring {
        box-shadow: 0 16px 36px -10px var(--dk-accent);
        animation: pbSuzul 7s ease-in-out infinite;
    }

    .dk-govde .ep-profil-ad {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -.02em;
        color: var(--pb-koyu);
    }

    .dk-govde .ep-pill {
        padding: 6px 12px;
        border-radius: 999px;
        box-shadow: var(--pb-golge-sm);
    }

    .dk-govde .ep-not {
        border-radius: 16px;
    }

    .dk-govde .ep-card {
        margin-bottom: 1.25rem !important;
        border: 1px solid var(--pb-cizgi-yumusak);
        border-radius: 24px;
        box-shadow: var(--pb-golge);
        overflow: hidden;
        transition: transform .25s ease, box-shadow .25s ease;
    }

        .dk-govde .ep-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--pb-golge-lg);
        }

    .dk-govde .ep-card-head h6 {
        font-weight: 800;
        color: var(--pb-koyu);
    }

    .dk-govde .ep-satir-ikon {
        border-radius: 16px !important;
    }

    .dk-govde .ep-btn {
        border-radius: 999px;
        transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    }

        .dk-govde .ep-btn:hover {
            transform: translateY(-2px);
        }

    .dk-govde .ep-btn-birincil {
        box-shadow: var(--pb-glow);
    }

        .dk-govde .ep-btn-birincil:hover {
            box-shadow: var(--pb-glow-lg);
        }

    .dk-govde .ep-btn-whatsapp {
        box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6);
    }

    .dk-govde .ep-btn-cerceve {
        background: var(--ep-surface);
        box-shadow: var(--pb-golge-sm);
    }

    .dk-govde .gallery-item {
        border-radius: 16px;
        box-shadow: var(--pb-golge-sm);
    }

    .dk-govde .kamu-kayip {
        position: relative;
        margin: 0 0 1.25rem;
        padding: 20px 20px 18px;
        border-radius: 26px;
        background: radial-gradient(360px 180px at 100% 0%, rgba(255, 255, 255, .22), transparent 70%), var(--ep-red);
        box-shadow: 0 22px 44px -16px rgba(239, 68, 68, .7);
        overflow: hidden;
    }

    .dk-govde .kamu-kayip-ikon {
        animation: dkNabiz 1.8s ease-in-out infinite;
    }

    .dk-govde .kamu-kayip-butonlar .ep-btn {
        height: 46px;
    }

    .dk-govde .scroll-fab {
        background: var(--ep-surface);
        color: var(--ep-primary-ink);
        border: 1px solid var(--pb-cizgi-yumusak);
        box-shadow: var(--pb-golge);
    }

        .dk-govde .scroll-fab:hover {
            background: var(--ep-surface);
            box-shadow: var(--pb-glow);
        }

@keyframes dkNabiz {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.dk-alt {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    text-align: center;
}

.dk-alt-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: 24px;
    background: radial-gradient(360px 180px at 100% 0%, var(--ep-surface), transparent 70%), var(--ep-primary-50);
    border: 1px solid var(--pb-cizgi-yumusak);
    box-shadow: var(--pb-golge);
    text-align: left;
}

    .dk-alt-cta > div {
        flex: 1 1 220px;
        min-width: 0;
    }

    .dk-alt-cta b {
        display: block;
        font-size: 15px;
        font-weight: 800;
        color: var(--pb-koyu);
    }

    .dk-alt-cta div > span {
        display: block;
        margin-top: 2px;
        font-size: 13px;
        color: var(--ep-text-2);
    }

    .dk-alt-cta .pb-btn {
        flex: 1 1 100%;
    }

.dk-alt-ikon {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--ep-primary);
    color: #fff;
    box-shadow: var(--pb-glow);
}

.dk-alt-linkler {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 20px 0 10px;
}

    .dk-alt-linkler a,
    .dk-alt-linkler button {
        padding: 5px 12px;
        border: 0;
        border-radius: 999px;
        background: var(--ep-surface);
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ep-text-2);
        text-decoration: none;
        cursor: pointer;
    }

        .dk-alt-linkler a:hover,
        .dk-alt-linkler button:hover {
            color: var(--ep-primary-ink);
        }

.dk-alt-telif {
    font-size: 12px;
    color: var(--ep-muted);
}

@media (min-width: 576px) {
    .dk-alt-cta .pb-btn {
        flex: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dk-govde .avatar-ring {
        animation: pbSuzulHafif 10s ease-in-out infinite;
    }

    .dk-govde .kamu-kayip-ikon {
        animation: none;
    }
}

.dk-yedek {
    border-top: 1px solid var(--ep-border);
    padding-top: 12px;
}

.dk-yedek-baslik {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ep-muted);
    margin-bottom: 8px;
}

.dk-yedek-satir {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--ep-surface-2);
}

.dk-yedek-satir + .dk-yedek-satir {
    margin-top: 6px;
}

.dk-yedek-bilgi {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dk-yedek-bilgi b {
    font-size: 13.5px;
    color: var(--ep-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dk-yedek-bilgi span {
    font-size: 12.5px;
    color: var(--ep-text-2);
}

.dk-yedek-eylem {
    display: flex;
    gap: 6px;
    flex: none;
}

.dk-mesaj-aciklama {
    margin: 0 0 12px;
    font-size: 12.5px;
    color: var(--ep-muted);
}

.dk-mesaj-etiket {
    display: block;
    margin: 12px 0 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ep-text-2);
}

.dk-mesaj-etiket span {
    color: var(--ep-red);
}

.dk-mesaj-iki {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
}

.dk-mesaj-konum {
    margin-top: 12px;
}

.dk-mesaj-konum.dk-mesaj-konum-tamam {
    border-color: var(--ep-green);
    color: var(--ep-green-tx);
}

.dk-mesaj-turnstile {
    margin-top: 12px;
}

.dk-mesaj-turnstile:not(:empty) + .ep-btn {
    margin-top: 12px;
}

#qrMesajGonder {
    margin-top: 12px;
}

.dk-mesaj-dipnot {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--ep-muted);
    text-align: center;
}

.dk-bal {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .dk-mesaj-iki {
        grid-template-columns: minmax(0, 1fr);
    }
}
