/**
 * Half Time 36 - Marketing Automation Styles
 */

/* ==========================================
   Email Capture Popup
   ========================================== */
.marketing-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.marketing-popup.active {
    display: flex;
}

.marketing-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.marketing-popup-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.marketing-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.marketing-popup-close:hover {
    color: #fff;
}

.marketing-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4a039 0%, #b8860b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #1a1a2e;
}

.marketing-popup-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.marketing-popup-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
    color: #d4a039;
}

.marketing-popup-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.6;
}

.marketing-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marketing-form input {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.marketing-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.marketing-form input:focus {
    outline: none;
    border-color: #d4a039;
}

.marketing-form button {
    padding: 14px 24px;
    font-size: 16px;
}

.marketing-popup-note {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

/* ==========================================
   SMS Signup Widget
   ========================================== */
.sms-signup-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #d4a039 0%, #b8860b 100%);
    padding: 20px 25px;
    border-radius: 12px;
    color: #1a1a2e;
}

.sms-signup-box i {
    font-size: 32px;
}

.sms-signup-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.sms-signup-content p {
    margin: 0;
    font-size: 14px;
}

.sms-keyword {
    font-weight: 700;
    background: #1a1a2e;
    color: #d4a039;
    padding: 2px 8px;
    border-radius: 4px;
}

.sms-number {
    font-weight: 700;
}

.sms-subscribed {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #48bb78;
    font-weight: 600;
}

/* ==========================================
   Review Prompt
   ========================================== */
.review-prompt {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
}

.review-prompt.active {
    opacity: 1;
    transform: translateX(0);
}

.review-prompt-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 280px;
    position: relative;
}

.review-prompt-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.review-prompt-content p {
    color: #333;
    margin: 0 0 10px;
    font-size: 14px;
}

.review-prompt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.review-prompt-buttons .btn {
    font-size: 12px;
    padding: 8px 12px;
}

/* ==========================================
   Social Proof Notification
   ========================================== */
.social-proof-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    max-width: 350px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s ease;
}

.social-proof-notification.active {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4a039 0%, #b8860b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.social-proof-content {
    flex: 1;
}

.social-proof-text {
    color: #333;
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 500;
}

.social-proof-time {
    color: #999;
    font-size: 12px;
}

.social-proof-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ==========================================
   Urgency Elements
   ========================================== */
.urgency-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e53e3e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================
   Mobile Responsive
   ========================================== */
@media (max-width: 768px) {
    .marketing-popup-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .marketing-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .marketing-popup-content h3 {
        font-size: 26px;
    }

    .social-proof-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .review-prompt {
        right: 10px;
        left: 10px;
        bottom: 80px;
    }

    .review-prompt-content {
        max-width: none;
    }

    .review-prompt-buttons {
        flex-direction: column;
    }
}

/* Hide on very small screens to avoid clutter */
@media (max-width: 480px) {
    .social-proof-notification {
        display: none;
    }
}
