/* ========================================== */
/* HEADER.PHP İÇİN CSS KODLARI                */
/* ========================================== */

* { -webkit-tap-highlight-color: transparent; outline: none !important; }
body { transition: background-color 0.15s ease-out, color 0.15s ease-out; overflow-x: hidden; }
.gpu-accel { 
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* IMAGE MARQUEE CSS */
@keyframes marquee-img {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-img-marquee {
    display: flex;
    width: max-content;
    animation: marquee-img var(--marquee-speed, 800s) linear infinite; 
}
.sticky-banner-wrap:hover .animate-img-marquee { animation-play-state: paused; }

.marquee-image-item {
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* NAVBAR & BADGE CSS */
.nav-link { position: relative; padding: 8px 16px; border-radius: 12px; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-link:not(.active-nav):hover { background-color: rgba(249, 115, 22, 0.08); color: #f97316; }
.active-nav { background-color: rgba(249, 115, 22, 0.12); color: #f97316 !important; font-weight: 800; }
.badge-center { display: flex; align-items: center; justify-content: center; line-height: 1; font-feature-settings: "tnum"; }

@keyframes badgePop { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.3); } 
}
.animate-pop { animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* MOBILE SEARCH CSS */
#mobile-search-bar { transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobile-search-bar.active { max-height: 100px; opacity: 1; padding: 12px 16px; }

/* SCROLLBAR CSS */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; transition: background 0.3s; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* ========================================== */
/* BİLDİRİM ÇÖP KUTUSU EFEKTLERİ (YENİ EKLENDİ)*/
/* ========================================== */
.notif-item { position: relative; }

/* Masaüstünde sadece fare üzerine gelince çıkar */
.notif-item .notif-delete-btn { 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.3s ease; 
    transform: translateX(10px); 
}
.notif-item:hover .notif-delete-btn { 
    opacity: 1; 
    pointer-events: auto; 
    transform: translateX(0); 
}

/* Mobilde her zaman görünür olsun (Dokunmatik ekran olduğu için hover çalışmaz) */
@media (max-width: 768px) {
    .notif-item .notif-delete-btn { 
        opacity: 1; 
        pointer-events: auto; 
        transform: translateX(0); 
    }
}

/* ========================================== */
/* DOSYA SONU: header.php CSS                 */
/* ========================================== */

/* ========================================== */
/* ACCOUNT-SETTINGS.PHP İÇİN CSS KODLARI      */
/* ========================================== */

.drawer-transition { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.backdrop-transition { transition: opacity 0.4s ease; }

@keyframes alertFadeIn { 
    from { opacity: 0; transform: translateY(-10px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* Scrollbar ayarları (style.css'te zaten var, çakışmaması için burada tekrar eklemene gerek yok, sadece hatırlatma) */

/* ========================================== */
/* DASHBOARD.PHP İÇİN CSS KODLARI             */
/* ========================================== */

/* Not: Animasyonlar (fadeInUp) ve GPU Accel sınıfları ana stilde mevcut, 
sadece Scrollbar hover eklentisi burada özelleştirildi */

.custom-scrollbar:hover::-webkit-scrollbar-thumb { background: #94a3b8; }

/* ========================================== */
/* FAVORITES.PHP İÇİN CSS KODLARI             */
/* ========================================== */

/* Not: fadeInUp animasyonu vs style.css ana dosyasında bulunduğu için 
buraya sadece karta özel line-clamp eklendi. */

.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========================================== */
/* ADMIN-CATEGORIES.PHP İÇİN CSS KODLARI      */
/* ========================================== */

@keyframes alertIn { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}
.animate-alertIn { animation: alertIn 0.3s forwards; }

/* Diğer gerekli CSS sınıfları (gpu-accel, fadeInUp, alertFadeIn, custom-scrollbar)
zaten önceki dosyalardan ana style.css dosyasına eklenmiştir. Çakışma olmaması
için tekrar edilmemiştir. Sadece bu dosyaya özgü alertIn eklendi. */

/* ========================================== */
/* ADMIN-PRODUCTS.PHP İÇİN CSS KODLARI        */
/* ========================================== */

@keyframes scaleIn { 
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}
.animate-scaleIn { animation: scaleIn 0.2s ease-out; }

/* Not: fadeInUp animasyonu, alertFadeIn animasyonu, gpu-accel ve 
custom-scrollbar gibi sınıflar zaten önceki sayfalardan style.css dosyasına 
eklendiği için çakışma ve kod tekrarı olmaması adına buraya eklenmemiştir. Sınıflar ortaktır. */

/* ========================================== */
/* CAMPAIGNS.PHP İÇİN CSS KODLARI             */
/* ========================================== */

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Dashboard ve Shop sayfalarındaki ortak gpu-accel sınıfı zaten style.css'te var */

/* ========================================== */
/* CART.PHP İÇİN CSS KODLARI                  */
/* ========================================== */

input[type="text"] { font-variant-numeric: tabular-nums; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Not: fadeInUp animasyonu, gpu-accel ve custom-scrollbar gibi
sınıflar ana CSS dosyasında zaten olduğu için tekrara düşmemek adına
buraya eklenmemiştir. Sınıflar sayfa geneli ortaktır. */

/* ========================================== */
/* PRODUCT-DETAIL.PHP İÇİN CSS KODLARI        */
/* ========================================== */

@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-slide-down { animation: slideDown 0.3s ease-out forwards; }

#main-product-img { transition: opacity 0.3s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

/* Not: gpu-accel, fadeInUp, no-scrollbar, custom-scrollbar, line-clamp-2 
gibi sınıflar önceki sayfalardan dolayı style.css'te bulunduğu için çakışmaması
adına buraya eklenmemiştir. Tüm sayfaların stilleri uyum içindedir. */

/* ========================================== */
/* SETTINGS.PHP İÇİN ÖZEL CSS KODLARI         */
/* ========================================== */

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* Form alanları (Logo/Metin seçimi) arası geçişlerdeki yumuşak animasyon */
.animate-fade-in { 
    animation: fadeIn 0.4s ease-in-out forwards; 
}

/* * NOT: fadeInUp, alertFadeIn animasyonları ile gpu-accel ve 
 * custom-scrollbar sınıfları zaten genel style.css dosyasında mevcuttur. 
 * Sınıflar ortaktır, çakışmayı engellemek için tekrar eklenmemiştir. 
 */
/* ========================================== */
/* SHOP.PHP İÇİN CSS KODLARI                  */
/* ========================================== */

.active-cat { transform: scale(1.05); }
.active-filter { transform: translateX(5px); }

/* Not: gpu-accel, fadeInUp, fadeIn, no-scrollbar gibi genel animasyon ve 
scroll sınıfları zaten style.css içinde diğer sayfalardan eklendiği için çakışmayı 
engellemek adına tekrar eklenmemiştir. Stiller sayfa geneli ortaktır. */

/* ========================================== */
/* TRACK-ORDER.PHP İÇİN CSS KODLARI           */
/* ========================================== */

@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-slide-down { animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Not: gpu-accel ve fadeInUp gibi genel animasyon sınıfları 
zaten style.css içinde bulunduğu için çakışmaması adına tekrar eklenmemiştir. 
Stiller sayfa geneli ortaktır. */

/* ========================================== */
/* SQL-SETTINGS.PHP İÇİN CSS KODLARI          */
/* ========================================== */

/* Inline Edit Input Stili */
.inline-input { 
    @apply bg-white dark:bg-slate-800 border border-brand-500 rounded px-2 py-1 text-xs w-full min-w-[100px] outline-none text-slate-900 dark:text-white shadow-inner; 
}

/* Not: gpu-accel, fadeInUp, alertFadeIn, custom-scrollbar 
gibi sınıflar önceki sayfalardan dolayı style.css'te bulunduğu için çakışmaması
adına buraya eklenmemiştir. Ortak stillerdir. */

/* ========================================== */
/* HOME.PHP İÇİN ÖZEL PREMİUM STİLLER         */
/* ========================================== */

/* Performans ve Donanım Hızlandırma */
.gpu-accel { 
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Yavaş Yakınlaştırma Animasyonu (Hero Görseli İçin) */
@keyframes slow-zoom { 
    0% { transform: scale(1.02); } 
    100% { transform: scale(1.12); } 
}
.animate-slow-zoom { 
    animation: slow-zoom 25s infinite alternate ease-in-out; 
}

/* Aşağıdan Yukarı Yumuşak Giriş Animasyonu */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-fade-in-up { 
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}

/* 2 Satırla Sınırlama (Ürün İsimleri İçin) */
.line-clamp-2 { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* ========================================== */
/* YATAY KAYDIRMA (SLIDER) ÖZEL STİLLERİ      */
/* ========================================== */

/* Kaydırma Çubuğunu Tamamen Gizleme */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Son Gezilenler Listesi İçin İnce Premium Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 10px;
    margin: 0 15px; /* Kenarlardan boşluk */
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.3); /* Turuncu tema uyumlu şeffaf scroll */
    border-radius: 10px;
    transition: background 0.3s ease;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.8); /* Üzerine gelince belirginleşir */
}

/* Dark Mode İçin Scrollbar Uyumu */
html.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3); 
}