/* 3D Filamentim – Özel Stiller */

/* Genel */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Animasyonlar */
@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.0); opacity: 0; }
}

.animate-slide-in  { animation: slide-in  0.3s ease-out; }
.animate-fade-in   { animation: fade-in   0.25s ease-out; }

/* Navbar Scroll Efekti */
#main-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* Ürün Kartı Hover */
.product-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-4px); }

/* Sepet Rozeti Animasyonu */
.cart-badge-bump {
    animation: bump 0.3s ease;
}
@keyframes bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Özel Scrollbar */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: #f1f5f9; }
::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Toast Bildirimleri */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #1f2937;
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: slide-in 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
}
.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }

/* Filtre Formu Mobil */
@media (max-width: 1023px) {
    #filter-form { display: none; }
    #filter-form.open { display: block; }
}

/* Ürün İmage Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 200%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sayfa Geçiş */
.page-transition {
    animation: fade-in 0.3s ease-out;
}

/* Sıralama Select */
select { cursor: pointer; }

/* Input Focus Genel */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Mobil Menü Panel */
#mobile-menu-panel {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open #mobile-menu-panel {
    transform: translateX(0) !important;
}

/* Tablo Stilleri */
table { border-collapse: collapse; width: 100%; }
table td, table th { padding: 0; }

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Filament Spinner */
.filament-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Has [:checked] polyfill için */
label:has(input:checked) {
    border-color: #f97316;
    background-color: #fff7ed;
}

/* Print Styles */
@media print {
    header, footer, nav, .no-print { display: none !important; }
    body { font-size: 12px; }
}

/* Responsive Tablolar */
@media (max-width: 640px) {
    .overflow-x-auto { overflow-x: auto; }
    table { min-width: 600px; }
}

/* Hero Gradient Animasyonu */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* Prose İçerik Stilleri */
.prose p    { margin-bottom: 0.75rem; }
.prose ul   { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose ol   { list-style: decimal; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose li   { margin-bottom: 0.25rem; }
.prose h3   { font-weight: 700; font-size: 1rem; margin: 1rem 0 0.5rem; }
.prose strong { font-weight: 600; }
.prose a    { color: #f97316; text-decoration: underline; }
