/* HaritaBul — Dijital kartvizit
   Tam ekran: kapak fotoğrafı bulanık zemin + buzlu cam bağlantılar */

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    min-height: 100dvh;
    background: #070b0a;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* ---- Arka plan: kapak fotoğrafı, bulanık ---- */

.qr-backdrop {
    position: fixed;
    inset: -32px;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(26px) saturate(1.25) brightness(0.62);
    transform: scale(1.12);
}

.qr-tint {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 120% 65% at 50% 0%, color-mix(in srgb, var(--qr-theme) 26%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(7, 11, 10, 0.35) 0%, rgba(7, 11, 10, 0.62) 52%, rgba(7, 11, 10, 0.88) 100%);
}

/* ---- İçerik kolonu ---- */

.qr-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: max(40px, env(safe-area-inset-top) + 28px) 22px max(28px, env(safe-area-inset-bottom) + 16px);
}

.qr-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: qr-in 0.5s ease both;
}

/* ---- Avatar ---- */

.qr-avatar-ring {
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.15) 60%, color-mix(in srgb, var(--qr-theme) 70%, #fff));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.qr-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: #0e1513;
}

.qr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(150deg, var(--qr-theme), color-mix(in srgb, var(--qr-theme) 55%, #000));
}

/* ---- Kimlik ---- */

.qr-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.qr-chip {
    font-size: 0.6563rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qr-chip--gold {
    color: #ffe9b3;
    background: rgba(232, 180, 74, 0.16);
    border-color: rgba(232, 180, 74, 0.42);
}

.qr-name {
    margin-top: 12px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.6rem, 6.5vw, 1.95rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.qr-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 8px;
    font-size: 0.8438rem;
    color: rgba(255, 255, 255, 0.72);
}

.qr-location svg { width: 15px; height: 15px; opacity: 0.85; }

.qr-open {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 12px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qr-open.is-open {
    color: #b7f7cf;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.qr-open.is-closed {
    color: #ffd3dc;
    background: rgba(244, 63, 94, 0.16);
    border: 1px solid rgba(251, 113, 133, 0.35);
}

.qr-open-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: qr-pulse 2.2s ease-in-out infinite;
}

@keyframes qr-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

.qr-desc {
    margin-top: 14px;
    max-width: 34ch;
    font-size: 0.8438rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.66);
}

/* ---- Ana butonlar: Ara + WhatsApp ---- */

.qr-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
    animation: qr-in 0.5s 0.06s ease both;
}

.qr-cta--two { grid-template-columns: 1fr 1fr; }

.qr-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 18px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.9688rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.14s ease, filter 0.14s ease;
}

.qr-cta-btn:active { transform: scale(0.97); }
.qr-cta-btn:hover { filter: brightness(1.06); }

.qr-cta-btn--call {
    color: #10201c;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.qr-cta-btn--wa {
    color: #fff;
    background: linear-gradient(150deg, #2fd571, #17a34a);
    box-shadow: 0 14px 34px rgba(23, 163, 74, 0.35);
}

.qr-cta-icon { display: inline-flex; }
.qr-cta-icon svg { width: 19px; height: 19px; }

/* ---- Buzlu cam bağlantılar ---- */

.qr-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
}

.qr-link {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 56px;
    padding: 12px 16px 12px 13px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
    animation: qr-in 0.5s ease both;
    animation-delay: calc(0.1s + var(--d, 0s));
}

.qr-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.26);
}

.qr-link:active { transform: scale(0.98); }

.qr-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.qr-link-icon svg { width: 18px; height: 18px; }

.qr-link-label {
    flex: 1;
    font-size: 0.9063rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.qr-link-arrow {
    width: 17px;
    height: 17px;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    transition: transform 0.16s ease, color 0.16s ease;
}

.qr-link:hover .qr-link-arrow {
    transform: translateX(3px);
    color: rgba(255, 255, 255, 0.85);
}

.qr-link--share { border-style: dashed; }

/* ---- Footer ---- */

.qr-foot {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.7188rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45);
}

.qr-foot a {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.qr-foot span { text-transform: uppercase; }

/* ---- Toast ---- */

.qr-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom) + 14px);
    z-index: 20;
    transform: translateX(-50%) translateY(12px);
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #10201c;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.qr-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Animasyon ---- */

@keyframes qr-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 480px) {
    .qr-stage { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .qr-head, .qr-cta, .qr-link { animation: none; }
    .qr-open-dot { animation: none; }
}
