/* WebHazır Conversion Capture Module
 * Sticky WhatsApp, sosyal kanıt barı, exit popup, dinamik teklif kutusu
 * Not: !important kullanılmadı. Spesifiklik yüksek class isimleriyle çakışma önlenir.
 */

/* ==== SOSYAL KANIT BARI ==== */
.wh-social-bar {
    position: sticky;
    top: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 35px;
    padding: 6px 44px 6px 16px;
    background: #2563eb;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.wh-social-bar.wh-hidden { display: none; }
.wh-social-bar .wh-social-text { flex: 1; }
.wh-social-bar .wh-check {
    display: inline-block;
    margin-right: 4px;
    color: #dcfce7;
    font-weight: 700;
}
.wh-social-bar .wh-social-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.85;
    border-radius: 4px;
}
.wh-social-bar .wh-social-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.15); }

/* ==== WHATSAPP STICKY BUTTON ==== */
.wh-whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wh-whatsapp-btn:hover,
.wh-whatsapp-btn:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55);
    outline: none;
}
.wh-whatsapp-btn svg { display: block; }
@media (max-width: 768px) {
    .wh-whatsapp-btn {
        right: 15px;
        bottom: 15px;
        width: 56px;
        height: 56px;
    }
}

/* ==== DİNAMİK TEKLİF KUTUSU ==== */
.wh-offer-box {
    margin: 20px auto;
    max-width: 720px;
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    color: #7c3a00;
    line-height: 1.5;
}
.wh-offer-box .wh-offer-line1 { margin-bottom: 4px; }
.wh-offer-box .wh-offer-line2 { margin-bottom: 12px; color: #5a2b00; }
.wh-offer-box .wh-offer-cta {
    display: inline-block;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
}
.wh-offer-box .wh-offer-cta:hover { background: #1fb355; }

/* ==== EXIT INTENT POPUP ==== */
.wh-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: whFadeIn 0.22s ease;
}
.wh-popup-overlay[hidden] { display: none; }
@keyframes whFadeIn { from { opacity: 0; } to { opacity: 1; } }
.wh-popup {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.wh-popup-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 6px 10px;
    border-radius: 4px;
}
.wh-popup-close:hover { background: #f1f5f9; color: #0f172a; }
.wh-popup-title {
    margin: 0 0 14px;
    font-size: 1.4rem;
    color: #0f172a;
    line-height: 1.3;
}
.wh-popup-sub {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.98rem;
}
.wh-popup-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.wh-popup-list li {
    position: relative;
    padding: 6px 0 6px 26px;
    color: #1e293b;
    font-size: 0.98rem;
}
.wh-popup-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    color: #22c55e;
    font-weight: 700;
}
.wh-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wh-popup-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}
.wh-popup-btn-primary {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}
.wh-popup-btn-primary:hover { background: #1fb355; border-color: #1fb355; }
.wh-popup-btn-ghost {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
}
.wh-popup-btn-ghost:hover { background: #f8fafc; }

/* Popup form */
.wh-popup-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wh-popup-form[hidden] { display: none; }
.wh-popup-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
.wh-popup-form input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.wh-popup-form .wh-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.wh-popup-msg {
    margin: 4px 0 0;
    font-size: 13.5px;
    min-height: 18px;
}
.wh-popup-msg.wh-ok { color: #047857; }
.wh-popup-msg.wh-err { color: #b91c1c; }

@media (max-width: 600px) {
    .wh-popup { padding: 24px 20px; }
    .wh-popup-title { font-size: 1.2rem; }
}
