/* ═══════════════════════════════════════════════════════════
   Yusuf'un Sünneti — "Yıldız Tozu"
   Modern gece göğü temalı sünnet davetiyesi
   ═══════════════════════════════════════════════════════════ */

:root {
    --deep:      #0A1230;
    --deep-2:    #101B45;
    --deep-3:    #16255C;
    --azure:     #3D7BF0;
    --turq:      #3ED9D9;
    --gold:      #F2C14E;
    --gold-soft: #FFE1A0;
    --star:      #FFFAF0;
    --star-dim:  rgba(255, 250, 240, .66);
    --star-mute: rgba(255, 250, 240, .40);
    --line:      rgba(255, 250, 240, .13);

    --grad-sky:  linear-gradient(118deg, #3ED9D9 0%, #6FA8FF 45%, #B9A2FF 100%);
    --grad-gold: linear-gradient(118deg, #C4913A 0%, #F2C14E 32%, #FFF0C4 52%, #F2C14E 72%, #C4913A 100%);

    --f-display: "Playfair Display", Georgia, serif;
    --f-body:    "Outfit", -apple-system, "Segoe UI", sans-serif;

    --shadow:    0 26px 60px rgba(4, 8, 26, .6);
    --shadow-sm: 0 12px 30px rgba(4, 8, 26, .45);

    --pad:  clamp(1.25rem, 5vw, 3.25rem);
    --maxw: 1120px;
}

/* ─────────────── TEMEL ─────────────── */

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

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--f-body);
    font-weight: 300;
    color: var(--star);
    background: var(--deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Gece göğü katmanları */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(110% 60% at 50% -8%,  rgba(62, 217, 217, .17) 0%, transparent 58%),
        radial-gradient(85% 50% at 88% 26%,   rgba(61, 123, 240, .22) 0%, transparent 60%),
        radial-gradient(90% 55% at 6% 82%,    rgba(185, 162, 255, .14) 0%, transparent 62%),
        linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 48%, var(--deep) 100%);
}

body.is-locked { overflow: hidden; height: 100vh; }

#stars {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }

::selection { background: var(--turq); color: var(--deep); }

/* Okuma çubuğu */
.progress-rail {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 60;
    background: rgba(255, 250, 240, .07);
    opacity: 0;
    transition: opacity .5s;
}
body:not(.is-locked) .progress-rail { opacity: 1; }
.progress-rail span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad-sky);
    box-shadow: 0 0 12px rgba(62, 217, 217, .6);
}

/* ─────────────── MÜZİK BUTONU ─────────────── */

.music-btn {
    position: fixed;
    top: clamp(.9rem, 3vw, 1.6rem);
    right: clamp(.9rem, 3vw, 1.6rem);
    z-index: 55;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(10, 18, 48, .7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: border-color .3s, transform .3s;
}
.music-btn:hover { transform: scale(1.07); border-color: rgba(62, 217, 217, .6); }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 15px; }
.eq i {
    width: 2.5px; height: 4px;
    border-radius: 2px;
    background: var(--turq);
    opacity: .55;
}
.music-btn.playing .eq i { animation: eq 1s ease-in-out infinite; opacity: 1; }
.music-btn.playing .eq i:nth-child(2) { animation-delay: .18s; }
.music-btn.playing .eq i:nth-child(3) { animation-delay: .36s; }
.music-btn.playing .eq i:nth-child(4) { animation-delay: .54s; }
.music-btn.muted .eq i { opacity: .22; }

@keyframes eq {
    0%, 100% { height: 4px; }
    50%      { height: 15px; }
}

/* ═══════════════ AÇILIŞ: TAÇ TAKIMYILDIZI ═══════════════ */

.sky-scene {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vh, 1.6rem);
    cursor: pointer;
    padding: var(--pad);
}

.sky-halo {
    position: absolute;
    top: 44%; left: 50%;
    width: min(85vw, 520px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) scale(.35);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 240, 196, .85) 0%, rgba(62, 217, 217, .3) 38%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    filter: blur(4px);
}

.constellation {
    width: min(88vw, 470px);
    height: auto;
    color: var(--gold);
    overflow: visible;
    filter: drop-shadow(0 0 14px rgba(242, 193, 78, .35));
}

.con-lines path,
.con-band path,
.con-band circle {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: .9;
}

.con-dots circle {
    fill: var(--gold-soft);
    opacity: .55;
    transform-box: fill-box;
    transform-origin: center;
    animation: twinkle 3.2s ease-in-out infinite;
}
.con-dots circle:nth-child(2) { animation-delay: .4s; }
.con-dots circle:nth-child(3) { animation-delay: .8s; }
.con-dots circle:nth-child(4) { animation-delay: 1.2s; }
.con-dots circle:nth-child(5) { animation-delay: 1.6s; }
.con-dots circle:nth-child(6) { animation-delay: 2s; }
.con-dots circle:nth-child(7) { animation-delay: 2.4s; }

@keyframes twinkle {
    0%, 100% { opacity: .35; transform: scale(.85); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

.sky-name {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(2.2rem, 11vw, 3.6rem);
    letter-spacing: .09em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
}

.sky-hint {
    margin: 0;
    font-size: .66rem;
    font-weight: 400;
    letter-spacing: .36em;
    text-transform: uppercase;
    color: var(--star-mute);
    animation: hint-pulse 2.6s ease-in-out infinite;
}
@keyframes hint-pulse {
    0%, 100% { opacity: .4; }
    50%      { opacity: 1; }
}

/* ═══════════════ DAVETİYE GÖVDESİ ═══════════════ */

.invitation { position: relative; z-index: 1; }

.sec {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: clamp(3.5rem, 11vh, 7rem) var(--pad);
}

.sec-title {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.7rem, 5.4vw, 2.7rem);
    letter-spacing: .01em;
    text-align: center;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sec-sub {
    margin: .7rem 0 0;
    text-align: center;
    font-size: clamp(.92rem, 2.4vw, 1.05rem);
    font-weight: 300;
    color: var(--star-dim);
}

/* ─────────────── HERO ─────────────── */

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.kicker {
    margin: 0 0 clamp(2rem, 6vh, 3rem);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--turq);
}

.hero-pre,
.hero-post {
    margin: 0;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1rem, 3.4vw, 1.4rem);
    letter-spacing: .04em;
    color: var(--star-dim);
}
.hero-post { margin-top: .3rem; }

.hero-name {
    margin: .2rem 0;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(3.6rem, 20vw, 8.5rem);
    line-height: 1;
    letter-spacing: .02em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 26px rgba(242, 193, 78, .22));
}
.hero-name .ch {
    display: inline-block;
    will-change: transform, opacity;
    /* Harf span'leri transform ile kendi katmanına alınınca üstteki
       background-clip:text boya vermiyor; degradeyi harfin kendisine uygula */
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-top: clamp(1.8rem, 5vh, 2.6rem);
}
.chip {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: .55rem 1.1rem;
    font-size: .78rem;
    letter-spacing: .06em;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(22, 37, 92, .42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--star-dim);
}
.chip b {
    font-weight: 600;
    font-size: .95rem;
    color: var(--gold-soft);
}

.scroll-cue {
    margin-top: clamp(2.6rem, 8vh, 4rem);
    width: 24px; height: 40px;
    border: 1px solid rgba(62, 217, 217, .4);
    border-radius: 14px;
    display: grid;
    place-items: start center;
    padding-top: 8px;
}
.scroll-cue span {
    width: 3px; height: 7px;
    border-radius: 2px;
    background: var(--turq);
    animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue {
    0%   { opacity: 0; transform: translateY(0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(13px); }
}

/* ─────────────── PRENSİMİZ ─────────────── */

.prince-card {
    position: relative;
    max-width: 680px;
    margin-inline: auto;
    padding: clamp(2.6rem, 7vw, 3.6rem) clamp(1.6rem, 5vw, 3rem) clamp(2.2rem, 6vw, 3rem);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(61, 123, 240, .22) 0%, transparent 60%),
        rgba(16, 27, 69, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}
.prince-card::before {
    content: "";
    position: absolute;
    top: 0; left: 18%; right: 18%;
    height: 1px;
    background: var(--grad-gold);
}

.prince-badge {
    width: clamp(58px, 15vw, 72px);
    aspect-ratio: 1;
    margin: 0 auto 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(242, 193, 78, .4);
    background: rgba(10, 18, 48, .6);
    color: var(--gold);
}
.prince-badge svg { width: 60%; height: 60%; }

.prince-title {
    margin: 0 0 1.1rem;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    letter-spacing: .01em;
    color: var(--star);
}
.prince-text {
    margin: 0;
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
    line-height: 1.95;
    color: var(--star-dim);
}
.prince-fam {
    margin: 1.6rem 0 0;
    font-size: .64rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--turq);
}

/* ─────────────── DAVET KARTLARI ─────────────── */

.detail-grid {
    display: grid;
    gap: clamp(.9rem, 2.4vw, 1.4rem);
    margin-top: clamp(2rem, 5vh, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.dcard {
    padding: clamp(1.8rem, 4.5vw, 2.4rem);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: linear-gradient(165deg, rgba(22, 37, 92, .55) 0%, rgba(10, 18, 48, .55) 100%);
    transition: border-color .4s, transform .4s, box-shadow .4s;
    transform-style: preserve-3d;
    will-change: transform;
}
.dcard:hover {
    border-color: rgba(62, 217, 217, .4);
    box-shadow: var(--shadow-sm);
}

.dcard-tag {
    display: block;
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--turq);
    margin-bottom: 1.2rem;
}
.dcard-big {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.4rem, 4.6vw, 1.85rem);
    line-height: 1.28;
    color: var(--star);
}
.dcard-sub {
    margin: .8rem 0 0;
    font-size: .92rem;
    line-height: 1.8;
    color: var(--star-dim);
}

/* ─────────────── GERİ SAYIM ─────────────── */

.count-sec { text-align: center; }

.count-lead {
    margin: 0 0 clamp(1.6rem, 4vh, 2.2rem);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--turq);
}

.count {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(.5rem, 2vw, 1.1rem);
    max-width: 640px;
    margin-inline: auto;
}
.count-cell {
    position: relative;
    padding: clamp(1.1rem, 3.4vw, 1.7rem) .35rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(22, 37, 92, .38);
    overflow: hidden;
}
.count-cell::before {
    content: "";
    position: absolute;
    top: 0; left: 22%; right: 22%;
    height: 1px;
    background: var(--grad-sky);
    opacity: .7;
}

.count-num {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.7rem, 8vw, 2.9rem);
    line-height: 1;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.count-num.tick { transform: translateY(-4px) scale(1.05); }

.count-lab {
    display: block;
    margin-top: .7rem;
    font-size: .55rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--star-mute);
}

/* ─────────────── PROGRAM ─────────────── */

.plan {
    list-style: none;
    max-width: 620px;
    margin: clamp(2.2rem, 6vh, 3.2rem) auto 0;
    padding: 0;
}

.plan-item {
    display: grid;
    grid-template-columns: clamp(3.4rem, 12vw, 4.4rem) 1fr;
    gap: clamp(1rem, 3.5vw, 1.7rem);
    align-items: start;
    padding: clamp(1rem, 3vw, 1.3rem) 0;
    border-bottom: 1px solid var(--line);
}
.plan-item:last-child { border-bottom: 0; }

.plan-time {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(.95rem, 3vw, 1.1rem);
    letter-spacing: .02em;
    color: var(--gold);
    padding-top: .12rem;
}

.plan-body {
    display: block;
    font-size: .88rem;
    line-height: 1.7;
    color: var(--star-mute);
}
.plan-body strong {
    display: block;
    margin-bottom: .25rem;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(1.05rem, 3.2vw, 1.2rem);
    color: var(--star);
}

/* ─────────────── SÜRPRİZLER ─────────────── */

.fun-grid {
    display: grid;
    gap: clamp(.85rem, 2.2vw, 1.3rem);
    margin-top: clamp(2.2rem, 6vh, 3.2rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.fun {
    padding: clamp(1.6rem, 4vw, 2rem) clamp(1.3rem, 3.4vw, 1.6rem);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: linear-gradient(168deg, rgba(61, 123, 240, .14) 0%, rgba(10, 18, 48, .5) 100%);
    transition: border-color .4s, transform .4s, box-shadow .4s;
    transform-style: preserve-3d;
    will-change: transform;
}
.fun:hover {
    border-color: rgba(62, 217, 217, .45);
    box-shadow: var(--shadow-sm);
}

.fun-icon {
    width: 42px; height: 42px;
    margin: 0 auto 1.1rem;
    color: var(--turq);
}
.fun h3 {
    margin: 0 0 .5rem;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--gold-soft);
}
.fun p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.75;
    color: var(--star-dim);
}

/* ─────────────── HARİTA ─────────────── */

.map-wrap {
    margin-top: clamp(2rem, 5vh, 3rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-wrap iframe {
    width: 100%;
    height: clamp(260px, 44vh, 420px);
    border: 0;
    filter: grayscale(.3) contrast(1.05) brightness(.9) hue-rotate(-8deg);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(.7rem, 2vw, 1rem);
    margin-top: clamp(1.6rem, 4vh, 2.2rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.7rem;
    font-family: var(--f-body);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-fill {
    background: var(--grad-gold);
    color: #1A1305;
    box-shadow: 0 12px 30px rgba(242, 193, 78, .2);
}
.btn-fill:hover { box-shadow: 0 18px 40px rgba(242, 193, 78, .32); }

.btn-line {
    background: rgba(22, 37, 92, .4);
    color: var(--turq);
    border-color: rgba(62, 217, 217, .38);
}
.btn-line:hover { border-color: var(--turq); background: rgba(62, 217, 217, .1); }

.btn-wa {
    background: #25D366;
    color: #08301A;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .22);
}
.btn-wa:hover { background: #1FBA59; box-shadow: 0 18px 40px rgba(37, 211, 102, .3); }

/* ─────────────── PAYLAŞ & QR ─────────────── */

.share-card {
    display: grid;
    gap: clamp(1.6rem, 5vw, 2.6rem);
    align-items: center;
    justify-items: center;
    margin-top: clamp(2rem, 5vh, 3rem);
    padding: clamp(1.9rem, 5vw, 2.8rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: linear-gradient(165deg, rgba(22, 37, 92, .5) 0%, rgba(10, 18, 48, .55) 100%);
}
@media (min-width: 700px) {
    .share-card { grid-template-columns: auto 1fr; justify-items: start; }
}

.qr-box { text-align: center; }
.qr-box canvas {
    width: clamp(150px, 42vw, 186px);
    height: auto;
    padding: 12px;
    border-radius: 5px;
    background: var(--star);
    box-shadow: var(--shadow-sm);
}
.qr-note {
    margin: .85rem 0 0;
    font-size: .6rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--star-mute);
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    width: 100%;
    max-width: 320px;
}
.share-actions .btn { width: 100%; }

/* ─────────────── KAPANIŞ ─────────────── */

.closing { text-align: center; padding-bottom: clamp(4rem, 12vh, 7rem); }

.closing-text {
    margin: 0;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.05rem, 3vw, 1.32rem);
    color: var(--star-dim);
}
.closing-sign {
    margin: .8rem 0 0;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 5.5vw, 2.3rem);
    letter-spacing: .03em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.demo-note {
    max-width: 560px;
    margin: clamp(2.6rem, 7vh, 4rem) auto 0;
    padding: 1.5rem 1.6rem 1.7rem;
    border: 1px dashed rgba(62, 217, 217, .32);
    border-radius: 4px;
    background: rgba(10, 18, 48, .5);
}
.demo-badge {
    display: inline-block;
    padding: .3rem .8rem;
    margin-bottom: .9rem;
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .3em;
    border-radius: 999px;
    background: var(--grad-sky);
    color: #06122B;
}
.demo-note p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.85;
    color: var(--star-mute);
}
.demo-note strong { color: var(--gold-soft); font-weight: 500; }

/* ─────────────── TOAST ─────────────── */

.toast {
    position: fixed;
    left: 50%; bottom: clamp(1.5rem, 5vh, 2.5rem);
    transform: translate(-50%, 20px);
    z-index: 90;
    padding: .85rem 1.5rem;
    font-size: .82rem;
    letter-spacing: .04em;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(10, 18, 48, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--star);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity .35s, transform .35s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─────────────── ERİŞİLEBİLİRLİK ─────────────── */

:focus-visible {
    outline: 2px solid var(--turq);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .con-dots circle, .sky-hint, .scroll-cue span, .eq i { animation: none !important; }
    * { transition-duration: .01ms !important; }
}
