/* ============================================================
   conversion-boost.css – Donusum Artirici Ozellikler
   Minimal & Zarif Tasarim
   ============================================================ */

/* ---- 1. ACILIYET SAYACI (Urun kartlarinda stok/teslimat) ---- */
.cb-urgency {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
    animation: cb-pulse-soft 2.5s ease-in-out infinite;
}

.cb-urgency i {
    font-size: 0.68rem;
}

.cb-urgency-stock {
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-color: #fca5a5;
}

@keyframes cb-pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Urun detay sayfasi icin buyuk sayac */
.cb-urgency-pdp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b45309;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.cb-urgency-pdp i {
    font-size: 1rem;
}

/* ---- 2. SOSYAL KANIT POPUP ---- */
.cb-social-proof {
    position: fixed;
    bottom: 100px;
    left: 24px;
    background: #fff;
    border: 1px solid rgba(139, 94, 60, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    max-width: 320px;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    cursor: pointer;
}

.cb-social-proof.show {
    transform: translateX(0);
    opacity: 1;
}

.cb-social-proof-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5E3C, #C8956C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.cb-social-proof-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cb-social-proof-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1A1008;
}

.cb-social-proof-detail {
    font-size: 0.72rem;
    color: #6B6560;
}

.cb-social-proof-time {
    font-size: 0.68rem;
    color: #C8956C;
    font-weight: 500;
}

.cb-social-proof-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.cb-social-proof-close:hover {
    color: #999;
}

/* ---- 3. CIKIS NIYETI POPUP (Exit Intent) ---- */
.cb-exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 16, 8, 0.6);
    backdrop-filter: blur(6px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cb-exit-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cb-exit-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    padding: 48px 36px 40px;
    position: relative;
    box-shadow: 0 30px 80px rgba(139, 94, 60, 0.25);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cb-exit-overlay.show .cb-exit-modal {
    transform: scale(1) translateY(0);
}

.cb-exit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cb-exit-close:hover {
    background: #eee;
    color: #666;
}

.cb-exit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: #C8956C;
}

.cb-exit-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #5C3D20;
    margin-bottom: 10px;
    line-height: 1.2;
}

.cb-exit-desc {
    font-size: 0.92rem;
    color: #6B6560;
    line-height: 1.6;
    margin-bottom: 28px;
}

.cb-exit-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.cb-exit-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
}

.cb-exit-secondary {
    display: block;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.cb-exit-secondary:hover {
    color: #666;
}

/* ---- 4. SEPET HATIRLATMA BAR ---- */
.cb-cart-reminder {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1900;
    background: linear-gradient(135deg, #5C3D20, #8B5E3C);
    color: #fff;
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cb-cart-reminder.show {
    transform: translateY(0);
}

.cb-cart-reminder-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cb-cart-reminder i {
    font-size: 0.9rem;
}

.cb-cart-reminder-text {
    font-size: 0.82rem;
    font-weight: 500;
}

.cb-cart-reminder-text strong {
    font-weight: 700;
}

.cb-cart-reminder-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.cb-cart-reminder-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cb-cart-reminder-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 4px;
    transition: color 0.2s;
}

.cb-cart-reminder-close:hover {
    color: #fff;
}

/* Hatirlatma bari acikken body'ye padding ekle */
body.cb-reminder-active .site-header,
body.cb-reminder-active .navbar {
    top: 38px;
}

body.cb-reminder-active .top-bar {
    margin-top: 38px;
}

/* ---- 5. HIZLI SATIN AL BUTONU ---- */
.cb-quick-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.cb-quick-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.cb-quick-buy i {
    font-size: 0.72rem;
}

/* ---- 6. GUVEN ROZETLERI (Trust Badges) ---- */
.cb-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8fffe, #ecfdf5);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
}

.cb-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #065f46;
    white-space: nowrap;
}

.cb-trust-item i {
    font-size: 0.9rem;
    color: #059669;
}

.cb-trust-divider {
    width: 1px;
    height: 20px;
    background: #a7f3d0;
}

/* Urun detay sayfasi icin guven rozetleri */
.cb-trust-pdp {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
}

/* Odeme sayfasi icin guven rozetleri */
.cb-trust-checkout {
    margin-bottom: 24px;
}

/* ---- Goruntulenen urun sayaci (sosyal kanit) ---- */
.cb-viewers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6B6560;
    margin-top: 8px;
}

.cb-viewers-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: cb-blink 1.5s ease-in-out infinite;
}

@keyframes cb-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cb-social-proof {
        left: 12px;
        right: 12px;
        bottom: 90px;
        max-width: none;
    }

    .cb-exit-modal {
        padding: 36px 24px 32px;
    }

    .cb-exit-title {
        font-size: 1.5rem;
    }

    .cb-trust-badges {
        gap: 10px;
        padding: 12px 14px;
    }

    .cb-trust-item {
        font-size: 0.72rem;
    }

    .cb-trust-divider {
        display: none;
    }

    .cb-cart-reminder-inner {
        padding: 8px 16px;
        gap: 8px;
    }

    .cb-cart-reminder-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cb-exit-modal {
        padding: 32px 20px 28px;
        border-radius: 18px;
    }

    .cb-exit-title {
        font-size: 1.3rem;
    }

    .cb-exit-cta {
        padding: 12px 24px;
        font-size: 0.88rem;
    }
}
