/* Newsletter Popup Styles */
.newsletter-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1040; /* Bootstrap modal'lardan önce (modal: 1050-1055) */
    animation: fadeIn 0.3s ease-in-out;
}

.newsletter-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-popup {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.newsletter-popup-close:hover {
    color: #333;
}

.newsletter-popup-icon {
    text-align: center;
    margin-bottom: 20px;
}

.newsletter-popup-icon i {
    font-size: 50px;
    color: #6c757d;
}

.newsletter-popup h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #6c757d;
}

.newsletter-form button {
    padding: 12px 30px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #5a6268;
}

.newsletter-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.newsletter-message {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

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

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

.newsletter-privacy {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .newsletter-popup {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-popup h3 {
        font-size: 20px;
    }
}

/* Footer Newsletter Section */
.footer-newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-section h5 {
    color: #fff;
    font-weight: 600;
}

.footer-newsletter-section p {
    font-size: 14px;
    margin-bottom: 1rem;
    color: #fff;
}

#footer-newsletter-form .form-control {
    border: 2px solid #dee2e6;
    padding: 10px 15px;
    font-size: 14px;
}

#footer-newsletter-form .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#footer-newsletter-form .btn {
    padding: 10px 25px;
    font-weight: 600;
}

#footer-newsletter-message {
    font-size: 14px;
    font-weight: 500;
}

#footer-newsletter-message.success {
    color: #28a745;
}

#footer-newsletter-message.error {
    color: #dc3545;
}

@media (max-width: 576px) {
    #footer-newsletter-form {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    #footer-newsletter-form .form-control,
    #footer-newsletter-form .btn {
        width: 100%;
        max-width: 100% !important;
    }
}
