/* Google Fonts'tan Great Vibes fontunu içe aktarma */
/* Bu satırı CSS dosyanızın EN ÜSTÜNE yapıştırmayı unutmayın! */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.row3,
.yeni_urun_ikon {
    background-color: #ff9400 !important;
}

.urun_kdvdahil_fiyati:not(#PM_orta div.urun div.urun_kdvdahil_fiyati),
.fa.fa-lg.fa-clock-o,
.fa.fa-lg.fa-truck,
#PM_anasayfa_urunler div.urunler p.baslik {
    background-color: #ff9400 !important;
}

/* Explicitly reset background for this specific element */
#PM_orta div.urun div.urun_kdvdahil_fiyati {
    background-color: transparent !important;
    color: #ff9400 !important;
}

/* Custom styles for Gel Al ANKARA */
#ust_ek_menu_2 li:first-child {
    display: flex; /* Flexbox kullanarak dikey ortalama */
    align-items: center; /* Dikeyde ortala */
    height: 100%; /* Üst menü elemanının tam yüksekliğini al */
}

#ust_ek_menu_2 li:first-child a {
    font-family: "Great Vibes", cursive !important; /* Yazı tipi: "Great Vibes" olarak değiştirildi ve !important eklendi */
    /* #3ec37a renginin daha koyudan açığa gradyan arka planı */
    background: linear-gradient(45deg, #1f7a42, #3ec37a) !important; /* Daha koyu yeşilden istenen yeşile gradyan */
    color: #FFFFFF !important; /* Beyaz yazı rengi */
    border-radius: 9999px !important; /* Köşeleri iyice yuvarla - tam hap şekli ve !important eklendi */
    padding: 8px 15px; /* Dolgu boşluğu */
    transition: all 0.4s ease; /* Hover geçişleri için */
    position: relative; /* Sahte elementler için gerekli */
    display: flex; /* İçeriği ortalamak için flexbox */
    align-items: center; /* Dikeyde ortala */
    justify-content: center; /* Yatayda ortala */
    white-space: nowrap; /* Metnin tek satırda kalmasını sağlar */
    z-index: 2; /* Butonun diğer elementlerin üzerinde olmasını sağlar */
    overflow: hidden; /* Baloncukların başlangıçta görünmemesi için */
}

#ust_ek_menu_2 li:first-child a:hover {
    /* Hover rengi: #3ec37a'dan daha açık bir yeşile gradyan */
    background: linear-gradient(45deg, #3ec37a, #5ed895) !important; /* İstenen yeşilden açık yeşile gradyan */
    color: #FFFFFF !important; /* Hover yazı rengi: Beyaz */
    transform: scale(1.05); /* Hover'da hafif büyüt */
    box-shadow: 0 0 20px rgba(62, 195, 122, 0.7); /* Hover'da hafif gölge (yeni yeşil tonlarında) */
    overflow: visible; /* Efektlerin dışarı taşması için */
}

/* Büyük yuvarlak beyaz hover efekti (boyutu %30 küçültüldü ve saydamlık eklendi) */
#ust_ek_menu_2 li:first-child a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* Saydamlık merkezden kenara doğru azalıyor */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    z-index: 0; /* Butonun ve diğer efektlerin arkasında olsun */
}

#ust_ek_menu_2 li:first-child a:hover::before {
    width: 210px; /* %30 küçültülmüş boyut (300px * 0.7) */
    height: 210px; /* %30 küçültülmüş boyut (300px * 0.7) */
    opacity: 1; /* Efektin görünür olmasını sağlar, ancak saydamlık gradient ile kontrol edilir */
}

/* Havai fişek efekti (::after kullanılıyor) */
#ust_ek_menu_2 li:first-child a::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none; /* Etkileşimi engeller */
    z-index: 1; /* Beyaz hover efektinin üstünde, butonun altında */
}

#ust_ek_menu_2 li:first-child a:hover::after {
    animation: fireworks 0.8s ease-out forwards;
}

#ust_ek_menu_2 li:first-child a::after { /* Başlangıç boyutlarını ve konumunu ayarla */
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    margin-left: -100px;
    margin-top: -100px;
}

@keyframes fireworks {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(2.5) rotate(360deg); /* Daha da büyü ve dön */
        opacity: 0;
    }
}

/* Küçük yuvarlak renkli şekiller (baloncuklar) */
#ust_ek_menu_2 li:first-child a span.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 3; /* Butonun en üstünde olsun */
    animation: bubbleUp 1.5s ease-out forwards;
}

/* Baloncuk renkleri ve konumları için dinamik CSS */
#ust_ek_menu_2 li:first-child a:hover .bubble:nth-child(1) {
    background-color: #FF6347; /* Domates rengi */
    width: 12px; height: 12px;
    bottom: 5px; left: 10%;
    animation-delay: 0.1s;
}
#ust_ek_menu_2 li:first-child a:hover .bubble:nth-child(2) {
    background-color: #FFD700; /* Altın rengi */
    width: 10px; height: 10px;
    bottom: 0px; left: 30%;
    animation-delay: 0.3s;
}
#ust_ek_menu_2 li:first-child a:hover .bubble:nth-child(3) {
    background-color: #32CD32; /* Limon yeşili */
    width: 14px; height: 14px;
    bottom: 10px; left: 60%;
    animation-delay: 0.5s;
}
#ust_ek_menu_2 li:first-child a:hover .bubble:nth-child(4) {
    background-color: #6A5ACD; /* Kayrak mavisi */
    width: 9px; height: 9px;
    bottom: -5px; left: 80%;
    animation-delay: 0.7s;
}


@keyframes bubbleUp {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(0.8);
    }
    100% {
        transform: translateY(-100px) scale(0.2); /* Daha yukarı ve küçülerek kaybolsun */
        opacity: 0;
    }
}

/* Büyük beyaz yuvarlak içinde hareket eden renkli noktalar */
#ust_ek_menu_2 li:first-child a .dot {
    position: absolute;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--dot-color); /* JavaScript ile veya nth-child ile renk atanacak */
    opacity: 0;
    z-index: 1; /* Beyaz yuvarlağın üstünde olsun */
    animation: dotMove 3s linear infinite; /* Sürekli hareket etsin */
    animation-play-state: paused; /* Başlangıçta duraklat */
    transition: background-color 0.3s ease;
}

#ust_ek_menu_2 li:first-child a:hover .dot {
    opacity: 1;
    animation-play-state: running; /* Hover'da başla */
}

/* Nokta renkleri ve animasyon gecikmeleri */
#ust_ek_menu_2 li:first-child a .dot:nth-child(5) { /* İlk .bubble'dan sonraki ilk nokta */
    --dot-color: #FF00FF; /* Fuşya */
    top: 30%; left: 20%;
    animation-delay: 0s;
}
#ust_ek_menu_2 li:first-child a .dot:nth-child(6) {
    --dot-color: #00FFFF; /* Camgöbeği */
    top: 70%; left: 80%;
    animation-delay: 0.5s;
}
#ust_ek_menu_2 li:first-child a .dot:nth-child(7) {
    --dot-color: #FFFF00; /* Sarı */
    top: 50%; left: 50%;
    animation-delay: 1s;
}
#ust_ek_menu_2 li:first-child a .dot:nth-child(8) {
    --dot-color: #FF4500; /* Turuncu kırmızı */
    top: 10%; left: 60%;
    animation-delay: 1.5s;
}
#ust_ek_menu_2 li:first-child a .dot:nth-child(9) {
    --dot-color: #00FF7F; /* İlkbahar yeşili */
    top: 80%; left: 10%;
    animation-delay: 2s;
}


@keyframes dotMove {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(50px) rotate(360deg); }
}
