/* =========================================================
   TinyMar – Bebek & Çocuk Giyim Tema CSS  v2
   Renk Paleti: #2a9dff (mavi) · #ff2afd (pembe) · #ff702a (turuncu)
   ========================================================= */

/* ---- CSS Değişkenleri ---- */
:root {
    --blue:          #2a9dff;
    --pink:          #ff2afd;
    --orange:        #ff702a;
    --blue-light:    #e5f4ff;
    --pink-light:    #ffe5fe;
    --orange-light:  #fff0e5;
    --bg-page:       #fdf8ff;
    --gradient-main: linear-gradient(135deg, #2a9dff, #7b6fff, #ff2afd);
    --gradient-warm: linear-gradient(135deg, #ff702a, #ff2afd);
    --dark-hero:     linear-gradient(135deg, #1a0d3c 0%, #0d2040 40%, #1a0a00 100%);
}

/* ---- Genel ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--bg-page);
    font-family: 'Outfit', sans-serif;
}

/* ====================================================
   ARKA PLAN DESENİ (tüm frontend sayfalar)
   ==================================================== */
.kids-dots {
    background-color: #fdf8ff;
    background-image:
        radial-gradient(rgba(42, 157, 255, 0.16) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255, 42, 253, 0.11) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255, 112, 42, 0.09) 1.5px, transparent 1.5px);
    background-size: 52px 52px, 52px 52px, 52px 52px;
    background-position: 0 0, 17px 17px, 34px 8px;
}

/* ====================================================
   HERO BANDI (İç sayfa başlıkları)
   ==================================================== */
.kids-hero-inner {
    background: var(--dark-hero);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
.kids-hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(42,157,255,0.30) 0%, transparent 55%),
        radial-gradient(circle at 85% 50%, rgba(255,42,253,0.25) 0%, transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(255,112,42,0.18) 0%, transparent 50%);
    pointer-events: none;
}
.kids-hero-inner::after {
    content: '🐣 🌈 🧸 ⭐ 🎀 🦋 🌸 🎠 🎉';
    position: absolute;
    bottom: 10px; left: 0; right: 0;
    text-align: center;
    font-size: 17px;
    letter-spacing: 10px;
    opacity: 0.20;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

/* Breadcrumb içindeki aktif metin */
.kids-hero-inner .crumb-active { color: var(--pink); font-weight: 600; }

/* Küçük sayfa hero (profil, kayıt vb.) */
.kids-hero-sm {
    background: var(--dark-hero);
    position: relative;
    overflow: hidden;
    padding: 100px 0 40px;
}
.kids-hero-sm::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 60%, rgba(42,157,255,0.25) 0%, transparent 55%),
        radial-gradient(circle at 80% 40%, rgba(255,42,253,0.20) 0%, transparent 55%);
    pointer-events: none;
}

/* ====================================================
   RENKLI DIVIDER ŞERİDİ
   ==================================================== */
.kids-divider {
    height: 4px;
    background: linear-gradient(to right, var(--blue), var(--pink), var(--orange), var(--pink), var(--blue));
    background-size: 200% 100%;
    animation: gradient-shift 4s linear infinite;
}

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

/* ====================================================
   YÜZEN DEKORATİF ŞEKİLLER (sadece ana sayfa)
   ==================================================== */
.floating-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: float-around 12s ease-in-out infinite;
    opacity: 0.5;
}
.floating-shape:nth-child(1) { animation-delay: 0s;   animation-duration: 14s; }
.floating-shape:nth-child(2) { animation-delay: -4s;  animation-duration: 10s; }
.floating-shape:nth-child(3) { animation-delay: -8s;  animation-duration: 16s; }
.floating-shape:nth-child(4) { animation-delay: -2s;  animation-duration: 12s; }
.floating-shape:nth-child(5) { animation-delay: -6s;  animation-duration: 18s; }

@keyframes float-around {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25%       { transform: translateY(-18px) rotate(8deg) scale(1.05); }
    50%       { transform: translateY(-8px) rotate(-5deg) scale(0.97); }
    75%       { transform: translateY(-22px) rotate(12deg) scale(1.08); }
}

/* ====================================================
   BUTONLAR
   ==================================================== */
.btn-kids {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--gradient-main);
    color: white;
    border-radius: 999px;
    font-weight: 700;
}
.btn-kids:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(42,157,255,0.38);
}
.btn-kids:active { transform: translateY(0) scale(0.98); }
.btn-kids::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.btn-kids:hover::after { left: 160%; }

/* Turuncu-Pembe varyant */
.btn-kids-warm {
    background: var(--gradient-warm);
}

/* ====================================================
   BÖLÜM BAŞLIĞI
   ==================================================== */
.section-title-kids {
    position: relative;
    display: inline-block;
}
.section-title-kids::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 3px;
    background: linear-gradient(to right, var(--blue), var(--pink));
    border-radius: 999px;
}

/* ====================================================
   METİN GRADİYAN
   ==================================================== */
.text-gradient-kids {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================================
   HEADER – ARAMA OVERLAY
   ==================================================== */
#search-overlay {
    background: linear-gradient(135deg, rgba(253,248,255,0.98), rgba(240,248,255,0.98)) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
#search-overlay .id-search-panel input {
    color: #1a1a2e;
}
#search-overlay .id-search-panel input::placeholder {
    color: rgba(42,157,255,0.35);
}
#search-overlay .id-search-panel {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--blue), var(--pink)) 1;
}

/* ====================================================
   HEADER – SEPET DRAWER
   ==================================================== */
#cart-drawer {
    background: linear-gradient(160deg, #fdf8ff 0%, #f8f8ff 60%, #fff 100%) !important;
}
#cart-drawer .cart-drawer-header-bar {
    background: linear-gradient(to right, var(--blue), var(--pink), var(--orange));
    height: 4px;
}
#cart-drawer #cart-count-title {
    background: linear-gradient(135deg, rgba(42,157,255,0.12), rgba(255,42,253,0.10));
    color: var(--blue);
    border-radius: 999px;
}
/* Ürün sepet kartları */
#cart-items-container .cart-item-img {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(42,157,255,0.12);
}

/* ====================================================
   HEADER – AUTH (GİRİŞ) MODAL
   ==================================================== */
#auth-modal {
    background: linear-gradient(145deg, #fff 0%, #fdf8ff 100%) !important;
}
#auth-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--blue), var(--pink), var(--orange));
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

/* ====================================================
   MENÜ DRAWER (SOL PANEL)
   ==================================================== */
#menu-drawer {
    background: linear-gradient(160deg, #fff8ff 0%, #f0f8ff 100%) !important;
}

/* ====================================================
   ÜRÜN DETAY MODAL (QUICK VIEW)
   ==================================================== */
#product-detail-modal {
    border-radius: 1.5rem !important;
    overflow: hidden;
}
#product-detail-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--blue), var(--pink), var(--orange));
    z-index: 10;
    pointer-events: none;
}

/* ====================================================
   TOAST BİLDİRİMİ
   ==================================================== */
#toast {
    background: linear-gradient(135deg, #1a0d3c, #0d2040) !important;
    border: 1px solid rgba(42,157,255,0.3) !important;
}

/* ====================================================
   PROFİL & HESABIM SAYFASI
   ==================================================== */
.profile-card {
    background: white;
    border-radius: 1.5rem;
    border: 1.5px solid rgba(42,157,255,0.10);
    box-shadow: 0 4px 24px rgba(42,157,255,0.07), 0 1px 4px rgba(255,42,253,0.05);
    transition: box-shadow 0.3s ease;
}
.profile-card:hover {
    box-shadow: 0 8px 32px rgba(42,157,255,0.12), 0 2px 8px rgba(255,42,253,0.08);
}

.profile-nav-item {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    display: block;
    color: #6b7280;
}
.profile-nav-item:hover {
    background: linear-gradient(135deg, rgba(42,157,255,0.08), rgba(255,42,253,0.06));
    color: var(--blue);
    transform: translateX(3px);
}
.profile-nav-item.active {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    color: white;
}

/* Form Input Odak */
.kids-input {
    background: rgba(253,248,255,0.7);
    border: 1.5px solid rgba(42,157,255,0.15);
    border-radius: 0.75rem;
    transition: all 0.25s ease;
}
.kids-input:focus {
    outline: none;
    border-color: var(--blue) !important;
    background: white;
    box-shadow: 0 0 0 4px rgba(42,157,255,0.12) !important;
}

/* ====================================================
   SİPARİŞLERİM SAYFASI
   ==================================================== */
.order-card {
    background: white;
    border-radius: 1.25rem;
    border: 1.5px solid rgba(42,157,255,0.08);
    box-shadow: 0 2px 12px rgba(42,157,255,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}
.order-card:hover {
    box-shadow: 0 8px 28px rgba(42,157,255,0.14);
    transform: translateY(-2px);
}
.order-card-header {
    background: linear-gradient(135deg, rgba(42,157,255,0.05), rgba(255,42,253,0.04));
    border-bottom: 1px solid rgba(42,157,255,0.08);
}

/* Sipariş Durum Renkleri */
.status-beklemede       { background: rgba(42,157,255,0.10);  color: #2a9dff; border: 1px solid rgba(42,157,255,0.2); }
.status-odeme_alindi    { background: rgba(99,102,241,0.10);  color: #6366f1; border: 1px solid rgba(99,102,241,0.2); }
.status-hazirlaniyor    { background: rgba(245,158,11,0.10);  color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.status-kargoya_verildi { background: rgba(139,92,246,0.10);  color: #7c3aed; border: 1px solid rgba(139,92,246,0.2); }
.status-teslim_edildi   { background: rgba(34,197,94,0.12);   color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.status-iptal_edildi    { background: rgba(239,68,68,0.10);   color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.status-iade_talep      { background: rgba(255,112,42,0.10);  color: #ff702a; border: 1px solid rgba(255,112,42,0.2); }
.status-iade_edildi     { background: rgba(100,116,139,0.10); color: #64748b; border: 1px solid rgba(100,116,139,0.2); }

/* ====================================================
   FAVORİLER / BOŞALTMA SAYFASI
   ==================================================== */
.empty-state-kids {
    text-align: center;
    padding: 80px 20px;
}
.empty-state-kids .empty-icon {
    width: 96px; height: 96px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(42,157,255,0.10), rgba(255,42,253,0.08));
    border: 2px solid rgba(42,157,255,0.12);
    font-size: 40px;
}

/* ====================================================
   ÖDEME (ALIŞVERİŞİ TAMAMLA) SAYFASI
   ==================================================== */
.checkout-step-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-step {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9ca3af;
    transition: color 0.3s;
}
.checkout-step.active {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.checkout-step-divider {
    width: 20px; height: 1px;
    background: linear-gradient(to right, rgba(42,157,255,0.3), rgba(255,42,253,0.3));
}

/* ====================================================
   KAYIT OL / GİRİŞ YAP FORMU
   ==================================================== */
.auth-card {
    background: white;
    border-radius: 1.75rem;
    border: 1.5px solid rgba(42,157,255,0.10);
    box-shadow: 0 20px 60px rgba(42,157,255,0.10), 0 4px 16px rgba(255,42,253,0.06);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--blue), var(--pink), var(--orange));
}

/* ====================================================
   SCROLLBAR
   ==================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #fdf8ff; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--blue), var(--pink));
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ====================================================
   CHECKBOX & INPUT FOCUS
   ==================================================== */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(42,157,255,0.12) !important;
}
input[type="checkbox"]:checked  { accent-color: var(--blue); }
input[type="radio"]:checked     { accent-color: var(--pink); }

/* ====================================================
   SPINNER
   ==================================================== */
@keyframes kids-spin { to { transform: rotate(360deg); } }
.kids-spinner {
    display: inline-block;
    width: 28px; height: 28px;
    border: 3px solid rgba(42,157,255,0.2);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: kids-spin 0.7s linear infinite;
}

/* ====================================================
   BADGE / ROZETLERin
   ==================================================== */
.badge-kids {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--gradient-main);
    color: white;
}

/* ====================================================
   ÜRÜN KARTLARI
   ==================================================== */
.product-card-wrapper {
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.product-card-wrapper:hover {
    transform: translateY(-5px) rotate(-0.4deg);
    box-shadow: 0 16px 36px rgba(255,42,253,0.12), 0 6px 14px rgba(42,157,255,0.09);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer.kids-footer {
    background: linear-gradient(145deg, #140826 0%, #0a1a38 50%, #1a0a00 100%);
    border-top: 5px solid;
    border-image: linear-gradient(to right, var(--blue), var(--pink), var(--orange)) 1;
    position: relative;
    overflow: hidden;
}
footer.kids-footer::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(42,157,255,0.07) 1px, transparent 1px),
        radial-gradient(rgba(255,42,253,0.05) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    background-position: 0 0, 20px 20px;
    pointer-events: none;
}

/* ====================================================
   KOOKİ BANERİ
   ==================================================== */
#cookie-banner {
    border-radius: 1.25rem !important;
    border: 1.5px solid rgba(42,157,255,0.15) !important;
    background: linear-gradient(145deg, #fff, #fdf8ff) !important;
}

/* ====================================================
   SAYFA YÜKLENİRKEN ANİMASYON
   ==================================================== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.6s ease-out both; }
.animate-delay-100  { animation-delay: 0.1s; }
.animate-delay-200  { animation-delay: 0.2s; }
.animate-delay-300  { animation-delay: 0.3s; }

/* ====================================================
   MOBİL DOKUNMA & ERİŞİLEBİLİRLİK
   ==================================================== */
@media (hover: none) {
    .btn-kids:hover { transform: none; }
    .product-card-wrapper:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .kids-divider,
    .btn-kids::after,
    .badge-kids { animation: none; }
    .btn-kids:hover,
    .product-card-wrapper:hover { transform: none; }
}
