/* =========================================================
   Minik Balonlar Kreşi - Ek Özel Stiller
   Tailwind CDN'in üzerine küçük dokunuşlar.
   ========================================================= */

/* Yumuşak kaydırma */
html {
    scroll-behavior: smooth;
}

/* Sevimli renkli scrollbar */
body::-webkit-scrollbar {
    width: 12px;
}
body::-webkit-scrollbar-track {
    background: #FFF3B0;
}
body::-webkit-scrollbar-thumb {
    background: #FFC6D9;
    border-radius: 999px;
    border: 2px solid #FFF3B0;
}
body::-webkit-scrollbar-thumb:hover {
    background: #A0E7E5;
}

/* Metin seçim rengi */
::selection {
    background: #FFC6D9;
    color: #7c3aed;
}

/* Bölümlerin girişte yumuşak belirmesi */
section {
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Balon zıplama vurgusu (ek yardımcı sınıf) */
.balon-hover {
    transition: transform 0.3s ease;
}
.balon-hover:hover {
    transform: translateY(-8px) rotate(-4deg);
}

/* =========================================================
   HAREKETLİ ARKA PLAN (Balonlar & Bulutlar)
   İçeriğin ARKASINDA kalır, tıklamayı engellemez.
   ========================================================= */
.arkaplan-sahne {
    position: fixed;
    inset: 0;
    z-index: -1;            /* Tüm içeriğin arkasında */
    overflow: hidden;
    pointer-events: none;   /* Tıklamaları engellemez */
}

/* --- Süzülen balonlar --- */
.bg-balon {
    position: absolute;
    bottom: -140px;         /* Ekranın altından başlar */
    font-size: 3rem;
    opacity: 0.75;
    will-change: transform;
    animation: balonSuzul linear infinite;
}

@keyframes balonSuzul {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-55vh) translateX(30px) rotate(6deg);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-115vh) translateX(-20px) rotate(-6deg);
        opacity: 0;
    }
}

/* --- Süzülen bulutlar (yatay) --- */
.bg-bulut {
    position: absolute;
    font-size: 4rem;
    opacity: 0.7;
    will-change: transform;
    animation: bulutKay linear infinite;
}

@keyframes bulutKay {
    0% {
        transform: translateX(-20vw);
    }
    100% {
        transform: translateX(120vw);
    }
}

/* --- Hafifçe sallanan yıldız/dekorlar --- */
.bg-sallan {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.7;
    will-change: transform;
    animation: yumusakSalla 5s ease-in-out infinite;
}

@keyframes yumusakSalla {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(-18px) rotate(8deg); }
}

/* Hareket azaltma tercihini destekle */
@media (prefers-reduced-motion: reduce) {
    .bg-balon, .bg-bulut, .bg-sallan { animation: none; opacity: 0.4; }
}

/* =========================================================
   SABİT (FIXED) SOSYAL / WHATSAPP BUTONLARI
   ========================================================= */
.yuzen-butonlar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yuzen-btn {
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: nabiz 2.5s ease-in-out infinite;
}

.yuzen-btn svg {
    width: 30px;
    height: 30px;
}

.yuzen-btn:hover {
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    animation: titre 0.4s ease-in-out infinite;
}

.yuzen-whatsapp { background: #25D366; }
.yuzen-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Nabız (dikkat çekme) efekti */
@keyframes nabiz {
    0%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
    50%      { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.15); }
}

/* Üzerine gelince titreme */
@keyframes titre {
    0%, 100% { transform: scale(1.15) rotate(-6deg); }
    50%      { transform: scale(1.15) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
    .yuzen-btn { animation: none; }
    .yuzen-btn:hover { animation: none; }
}

/* =========================================================
   LIGHTBOX (büyük görsel)
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    cursor: zoom-out;
}

.lightbox.hidden {
    display: none;
}

.lightbox-gorsel {
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    cursor: default;
    background: #fff;
}

.lightbox-kapat {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 9999px;
    background: #FFC6D9;
    color: #9d174d;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-kapat:hover {
    transform: scale(1.1) rotate(8deg);
    background: #A0E7E5;
    color: #155e75;
}

.lightbox-tetik {
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lightbox-tetik:hover {
    transform: scale(1.03);
}

body.lightbox-acik {
    overflow: hidden;
}

/* =========================================================
   GALERİ MARQUEE (sonsuz yatay bant)
   ========================================================= */
.galeri-marquee {
    overflow: hidden;
    padding: 1.75rem 0;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.galeri-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: max-content;
    animation: galeriKay 32s linear infinite;
}

.galeri-marquee:hover .galeri-track {
    animation-play-state: paused;
}

.galeri-kart {
    flex: 0 0 auto;
    width: 210px;
    height: 210px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    background: rgba(255, 243, 176, 0.45);
    cursor: zoom-in;
    transition: transform 0.35s ease;
}

.galeri-kart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.galeri-kart:hover {
    transform: scale(1.1);
    z-index: 2;
}

.galeri-bos {
    width: 100%;
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
}

@keyframes galeriKay {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .galeri-track { animation: none; }
}
