/* =============================================
   NEWSLETTER SUBSCRIPTION STYLES
   Universal Newsletter Form Styles
============================================= */

/* Newsletter Form Enhancements */
.newsletter-form {
    position: relative;
}

.newsletter-form button {
    position: relative;
    min-width: 120px;
    transition: all 0.3s ease;
}

.newsletter-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
}

/* Newsletter KVKK Checkbox */
.newsletter-kvkk {
    margin: 1rem 0;
}

.newsletter-kvkk .kvkk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-kvkk .kvkk-checkbox input[type="checkbox"] {
    position: relative;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #999;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.newsletter-kvkk .kvkk-checkbox input[type="checkbox"]:hover {
    border-color: #666;
    background: #f5f5f5;
}

.newsletter-kvkk .kvkk-checkbox input[type="checkbox"]:checked {
    background: #f57b20;
    border-color: #f57b20;
}

.newsletter-kvkk .kvkk-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 15px;
    font-weight: bold;
}

.newsletter-kvkk .checkmark {
    display: none;
}

.newsletter-kvkk .kvkk-text {
    flex: 1;
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.6;
    text-shadow: none;
    font-weight: 500;
}

.newsletter-kvkk .kvkk-link {
    color: #d32f2f;
    text-decoration: underline;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration-color: rgba(211, 47, 47, 0.6);
    text-underline-offset: 3px;
}

.newsletter-kvkk .kvkk-link:hover {
    color: #b71c1c;
    text-decoration-color: #b71c1c;
    text-shadow: 0 0 8px rgba(183, 28, 28, 0.4);
}

/* KVKK Modal Footer Override */
.kvkk-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
}

.kvkk-modal-footer .btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kvkk-modal-footer .btn-primary {
    background: linear-gradient(135deg, #a91446 0%, #8a1038 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(169, 20, 70, 0.3);
}

.kvkk-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(169, 20, 70, 0.4);
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Newsletter Message Styles */
.newsletter-message {
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

.newsletter-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.newsletter-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.newsletter-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Newsletter Modal Styles */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.newsletter-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
}

.newsletter-modal-overlay.show .newsletter-modal {
    transform: scale(1) translateY(0);
}

.newsletter-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.newsletter-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.newsletter-modal-success .newsletter-modal-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.newsletter-modal-info .newsletter-modal-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

.newsletter-modal-warning .newsletter-modal-icon {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.newsletter-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.newsletter-modal-body {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.newsletter-modal-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
}

.newsletter-modal-detail {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.newsletter-modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

.newsletter-modal-btn {
    background: linear-gradient(135deg, #a91446 0%, #d63384 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.newsletter-modal-btn:hover {
    background: linear-gradient(135deg, #8b0f3a 0%, #b8256f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(169, 20, 70, 0.3);
}

/* Animation Keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-modal {
        max-width: 95%;
        margin: 1rem;
    }
    
    .newsletter-modal-header,
    .newsletter-modal-body,
    .newsletter-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .newsletter-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .newsletter-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .newsletter-modal-message {
        font-size: 1rem;
    }
    
    .newsletter-modal-detail {
        font-size: 0.9rem;
    }
    
    .newsletter-alert {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .newsletter-alert i {
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .newsletter-modal {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .newsletter-modal-header {
        border-bottom-color: #4a5568;
    }
    
    .newsletter-modal-header h3 {
        color: #e2e8f0;
    }
    
    .newsletter-modal-message {
        color: #e2e8f0;
    }
    
    .newsletter-modal-detail {
        color: #a0aec0;
    }
    
    .newsletter-alert-success {
        background: linear-gradient(135deg, #22543d 0%, #2f855a 100%);
        color: #c6f6d5;
        border-color: #2f855a;
    }
    
    .newsletter-alert-error {
        background: linear-gradient(135deg, #742a2a 0%, #c53030 100%);
        color: #fed7d7;
        border-color: #c53030;
    }
    
    .newsletter-alert-info {
        background: linear-gradient(135deg, #2a4365 0%, #3182ce 100%);
        color: #bee3f8;
        border-color: #3182ce;
    }
}

/* Print styles */
@media print {
    .newsletter-modal-overlay {
        display: none !important;
    }
}
