/* ========================================================
   ekoken.com - Ultra Gelişmiş Açık Tema, Buton & Kart Stilleri
   Çin E-Ticaret & Tech Estetiği (3D Derinlik, Shimmer, Glow)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #0a578d;
    --primary-dark: #073f67;
    --primary-hover: #084672;
    --primary-light: #e0f2fe;
    --secondary: #0284c7;
    --accent-orange: #ff5722;
    --accent-gold: #f59e0b;
    --accent-emerald: #10b981;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-card: rgba(226, 232, 240, 0.85);
    --border-hover: rgba(2, 132, 199, 0.35);
    --text-title: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --gradient-brand: linear-gradient(135deg, #0a578d 0%, #0284c7 50%, #38bdf8 100%);
    --gradient-btn: linear-gradient(135deg, #0a578d 0%, #0284c7 100%);
    --gradient-warm: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    --gradient-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Çin Tarzı Parlak Geometrik Izgara Arka Planı */
.bg-china-pattern {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(10, 87, 141, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(255, 87, 34, 0.03) 0%, transparent 50%),
        linear-gradient(rgba(226, 232, 240, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.35) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* ==========================================
   GELİŞMİŞ BUTON TASARIMLARI
========================================== */
.btn-primary {
    background: var(--gradient-btn) !important;
    color: #ffffff !important;
    font-weight: 800;
    border-radius: 0.875rem;
    padding: 0.875rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(10, 87, 141, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 25px rgba(10, 87, 141, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.05);
}

.btn-secondary {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0a578d !important;
    font-weight: 800;
    border-radius: 0.875rem;
    padding: 0.875rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

/* Parlayan Aksiyon Butonu (Glow Button) */
.btn-glow-pulse {
    animation: glowPulse 2.5s infinite;
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 87, 141, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(10, 87, 141, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 87, 141, 0); }
}

/* ==========================================
   GELİŞMİŞ KUTUCUK (CONTAINER & KART) TASARIMLARI
========================================== */
.china-card {
    background: #ffffff !important;
    border: 1px solid var(--border-card);
    border-radius: 1.5rem;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.01),
        0 10px 24px -4px rgba(10, 87, 141, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.china-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.02),
        0 20px 40px -6px rgba(10, 87, 141, 0.12);
}

/* Kartların Üst Kenar Renkli Vurgu Çizgisi */
.card-accent-top {
    position: relative;
}
.card-accent-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 1.5rem 1.5rem 0 0;
}

/* Shimmer Işık Efekti */
.china-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-25deg);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}
.china-card:hover::after {
    left: 140%;
}

/* ==========================================
   SAYAÇ KUTULARI (STAT BOXES)
========================================== */
.stat-box-pro {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 87, 141, 0.04);
    transition: all 0.35s ease;
}

.stat-box-pro:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 16px 30px rgba(10, 87, 141, 0.1);
}

.stat-box-pro .stat-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* ==========================================
   HEADER ÖZEL GELİŞTİRMELERİ
========================================== */
.nav-link-item {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: #334155;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.nav-link-item:hover {
    color: #0a578d;
    background-color: #f0f9ff;
}

.nav-link-item.active {
    color: #0a578d;
    background-color: #e0f2fe;
}

/* Header Canlı Destek Pill */
.nav-live-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1);
}

/* ==========================================
   ÇİN TEKNOLOJİ GRAFİK SİMÜLASYON KARTI (HERO MOCKUP)
========================================== */
.hero-growth-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #cbd5e1;
    border-radius: 2rem;
    box-shadow: 
        0 10px 30px rgba(10, 87, 141, 0.08),
        0 30px 60px -12px rgba(10, 87, 141, 0.14);
    position: relative;
    overflow: hidden;
}

/* Animasyonlar */
.animate-float {
    animation: floatingObj 4s ease-in-out infinite;
}
.animate-float-slow {
    animation: floatingObj 6s ease-in-out infinite alternate;
}
@keyframes floatingObj {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Ribbon Rozetler */
.ribbon-hot {
    background: linear-gradient(135deg, #ff3b30 0%, #ff9500 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.35);
}

.ribbon-vip {
    background: linear-gradient(135deg, #0a578d 0%, #0284c7 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(10, 87, 141, 0.3);
}

/* Metin Gradyanı */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Kayan Duyuru Bandı */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content {
    display: inline-flex;
    animation: tickerAnim 26s linear infinite;
}
@keyframes tickerAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Sağ Sabit Dock (WhatsApp Dahil 4'lü Squircle İkon Seti) */
.floating-quick-dock {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dock-item {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 18px;
    transition: all 0.25s ease;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    border-style: solid;
}
.dock-item:hover {
    transform: translateX(-4px) scale(1.06);
    color: #ffffff;
    border-color: transparent;
}

/* WhatsApp Squircle İkonu */
.dock-item.dock-whatsapp {
    color: #25d366;
    font-size: 22px;
}
.dock-item.dock-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.dock-whatsapp-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: dockPulse 2s infinite;
    pointer-events: none;
}

@keyframes dockPulse {
    0% { transform: scale(0.96); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.15; }
    100% { transform: scale(1.15); opacity: 0; }
}

.dock-item .chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

.dock-item.dock-telegram:hover { background: #0088cc; box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4); }
.dock-item.dock-quote:hover { background: #0a578d; box-shadow: 0 8px 24px rgba(10, 87, 141, 0.4); }
.dock-item.dock-top:hover { background: #475569; }

.dock-item .dock-tooltip {
    position: absolute;
    right: 58px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    z-index: 1000;
}
.dock-item:hover .dock-tooltip { opacity: 1; transform: translateX(0); }

/* İnteraktif Açılır Sohbet Penceresi (Dock yanından açılır) */
.whatsapp-chat-box {
    position: fixed;
    bottom: 24px;
    right: 78px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.92);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.whatsapp-chat-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-box-header {
    background: linear-gradient(135deg, #0a578d 0%, #0284c7 100%);
    color: #ffffff;
    padding: 18px 20px;
    position: relative;
}

.chat-box-body {
    background: #f8fafc;
    background-image: radial-gradient(rgba(203, 213, 225, 0.4) 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 18px 16px;
    max-height: 380px;
    overflow-y: auto;
}

.chat-message-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px 18px 18px 4px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.chat-quick-chips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.chat-chip-btn {
    text-align: left;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #0a578d;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-chip-btn:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    color: #0284c7;
    transform: translateX(3px);
}

.chat-box-footer {
    padding: 14px 16px;
    background: #ffffff;
    border-t: 1px solid #f1f5f9;
}

/* ==========================================
   VİTRİN & ŞABLON KARTLARI (SHOWCASE CARDS)
========================================== */
.showcase-template-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.showcase-template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.5rem 1.5rem 0 0;
    background: var(--gradient-brand);
    opacity: 0.8;
}
.showcase-template-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 20px 40px -15px rgba(10, 87, 141, 0.15);
}

.showcase-template-card.featured-template {
    border-color: #0284c7;
    box-shadow: 0 15px 35px -10px rgba(2, 132, 199, 0.2);
    position: relative;
}
.showcase-template-card.featured-template::before {
    height: 6px;
    background: linear-gradient(90deg, #ff5722 0%, #ff9800 50%, #0284c7 100%);
}

.template-badge-hot {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
}

.template-feature-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: #475569;
}
.template-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.template-feature-list li i {
    margin-top: 0.2rem;
    color: #10b981;
    font-size: 0.875rem;
}

/* ==========================================
   MOBİL UYUMLULUK VE RESPONSIVE DÜZENLER
   (Akıllı Telefonlar, Tabletler & iOS Safe Area)
========================================== */
@media (max-width: 768px) {
    /* Sayfa tabanı boşluğu (Mobil sabit alt menü için) */
    body {
        padding-bottom: 68px;
    }

    /* iOS Safari otomatik yakınlaştırmayı engelleme (font-size 16px) */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Mobil Sabit Alt Menü Safe Area */
    .mobile-bottom-nav {
        padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
        height: 60px;
    }

    /* Mobil Sağ Sabit Hızlı Butonlar */
    .floating-quick-dock {
        bottom: 76px !important;
        right: 12px !important;
        gap: 8px !important;
    }

    .dock-item {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    /* Mobilde tooltip gizle */
    .dock-item .dock-tooltip {
        display: none !important;
    }

    .dock-item.dock-whatsapp {
        font-size: 18px !important;
    }

    .dock-whatsapp-pulse {
        border-radius: 14px !important;
    }

    /* Açılır Sohbet Kartı (Mobilde tam ekran hizalama & taşma önleme) */
    .whatsapp-chat-box {
        position: fixed !important;
        bottom: 72px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(85vh - 72px) !important;
        border-radius: 20px !important;
        z-index: 99999 !important;
    }

    .chat-box-body {
        max-height: 280px !important;
    }

    /* Kart ve Konteyner dolguları mobilde optimize */
    .china-card {
        border-radius: 1.25rem !important;
    }

    .showcase-template-card {
        padding: 1.5rem !important;
        border-radius: 1.25rem !important;
    }

    /* Hero Büyüme Kartı mobilde ferah sığsın */
    .hero-growth-card {
        padding: 1.25rem !important;
    }

    /* Butonlar mobilde dokunmatik dostu */
    .btn-primary, .btn-secondary {
        min-height: 46px;
    }
}


