/* ============================================
   KALEM DÜNYASI KIRTASİYE - Ana Stil Dosyası
   ============================================ */

/* Genel */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
}

/* Fredoka One başlıklar */
.font-fredoka {
    font-family: 'Fredoka One', cursive;
}

/* Animasyonlar */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
}

.animate-wiggle:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* Ürün Kartları */
.urun-kart {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.urun-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.urun-kart .urun-resim {
    transition: transform 0.5s ease;
}

.urun-kart:hover .urun-resim {
    transform: scale(1.1);
}

/* Kategori Kartları */
.kategori-kart {
    transition: all 0.3s ease;
}

.kategori-kart:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Butonlar */
.btn-bounce:active {
    transform: scale(0.95);
}

/* Hero Dekoratif Elementler */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(234, 179, 8, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
}

/* Gradient Bar */
.gradient-bar {
    background: linear-gradient(90deg, #dc2626, #eab308, #2563eb, #dc2626);
    background-size: 200% 100%;
    animation: rainbow 4s linear infinite;
    height: 4px;
}

/* Kampanya Rozeti */
.kampanya-rozeti {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fef9c3;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Form Focus Stili */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Sayfa Geçiş */
main {
    animation: slideInUp 0.4s ease-out;
}

/* Badge / Etiket */
.badge-yeni {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.badge-indirim {
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #1e293b;
}

/* Marka Logoları Kaydırma */
.marka-slider {
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive fine-tuning */
@media (max-width: 640px) {
    .font-fredoka {
        letter-spacing: -0.02em;
    }
}

/* Star rating */
.star-rating .fa-star {
    color: #eab308;
}

.star-rating .fa-star-half-stroke {
    color: #eab308;
}

/* Çizgili desen arka plan */
.pattern-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(37, 99, 235, 0.03) 10px,
        rgba(37, 99, 235, 0.03) 20px
    );
}

/* Noktalı desen */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}


/* ===== Overflow / Tasma Korumasi ===== */
body {
    overflow-x: hidden;
}

*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

p, li, td, th, a, span, h1, h2, h3, h4, h5, h6, label, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
