/**
 * Newsletter Popup Styles
 * Scroll tetiklemeli e-posta abonelik pop-up'ı
 */

.newsletter-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 60px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.newsletter-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.newsletter-popup-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px 25px;
    position: relative;
    animation: slideInBounce 0.6s ease-out;
}

@keyframes slideInBounce {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.newsletter-popup-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

.newsletter-popup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.newsletter-popup-icon i {
    font-size: 32px;
    color: white;
}

.newsletter-popup-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.newsletter-popup-content > p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

#newsletter-popup-form .form-group {
    margin-bottom: 12px;
}

#newsletter-popup-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

#newsletter-popup-form .form-control:focus {
    border-color: #667eea;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#newsletter-popup-form .btn_1 {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

#newsletter-popup-message {
    text-align: center;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#newsletter-popup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#newsletter-popup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-popup-footer {
    margin: 20px 0 0;
    text-align: center;
}

.newsletter-popup-footer small {
    color: #999;
    font-size: 13px;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .newsletter-popup {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .newsletter-popup-content {
        padding: 30px 20px;
    }
    
    .newsletter-popup-content h3 {
        font-size: 20px;
    }
    
    .newsletter-popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .newsletter-popup-icon i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .newsletter-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }
    
    .newsletter-popup-content {
        padding: 25px 18px;
        border-radius: 12px;
    }
    
    .newsletter-popup-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .newsletter-popup-content > p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    #newsletter-popup-form .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    #newsletter-popup-form .btn_1 {
        padding: 12px;
        font-size: 14px;
    }
}

/* Overlay efekti (opsiyonel) */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.newsletter-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

