/* SB Email Capture Popup */
#sb-ec-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    animation: sb-fade-in 0.3s ease;
}

#sb-ec-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px 36px 36px;
    max-width: 420px;
    width: calc(100% - 40px);
    text-align: center;
    animation: sb-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Ortalama */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#sb-ec-popup.sb-ec-visible {
    display: block;
}

#sb-ec-overlay.sb-ec-visible {
    display: block;
}

/* Kapat butonu */
#sb-ec-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

#sb-ec-close:hover {
    color: #333;
    background: #f5f5f5;
}

/* İkon */
.sb-ec-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

/* Başlık */
.sb-ec-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Açıklama */
.sb-ec-desc {
    font-size: 15px;
    color: #555;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Form */
.sb-ec-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#sb-ec-email {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #333;
}

#sb-ec-email:focus {
    border-color: #f26b38; /* Elessi ana rengi */
}

#sb-ec-email.sb-ec-error {
    border-color: #e74c3c;
    animation: sb-shake 0.4s ease;
}

/* Buton */
.sb-ec-btn {
    width: 100%;
    padding: 14px 20px;
    background: #f26b38;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.sb-ec-btn:hover {
    background: #e05a28;
}

.sb-ec-btn:active {
    transform: scale(0.98);
}

.sb-ec-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading spinner */
.sb-ec-btn.sb-ec-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sb-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Gizlilik notu */
.sb-ec-privacy {
    font-size: 12px;
    color: #aaa;
    margin: 12px 0 0;
}

/* Animasyonlar */
@keyframes sb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sb-slide-up {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 30px)); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes sb-spin {
    to { transform: rotate(360deg); }
}

@keyframes sb-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    60%       { transform: translateX(6px); }
}

/* Mobil */
@media (max-width: 480px) {
    #sb-ec-popup {
        padding: 32px 24px 28px;
        width: calc(100% - 24px);
        border-radius: 12px;
    }

    .sb-ec-title {
        font-size: 19px;
    }

    .sb-ec-icon {
        font-size: 40px;
    }
}
