/* ===================================
   ORACNOOS - Newsletter Styles
   Modern Email Subscription
   =================================== */

/* Newsletter Section in Footer */
.newsletter-section {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 229, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.newsletter-section > * {
    position: relative;
    z-index: 1;
}

.newsletter-section h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.newsletter-section h3 i {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-base);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-input-group {
    display: flex;
    gap: var(--spacing-sm);
    position: relative;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-color);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1), var(--shadow-glow);
    background: var(--card-bg);
}

.newsletter-form input[type="email"].valid {
    border-color: var(--accent-green);
}

.newsletter-form input[type="email"].invalid {
    border-color: var(--accent-pink);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

/* Subscribe Button */
.newsletter-submit {
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    min-width: 140px;
}

.newsletter-submit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow-hover);
}

.newsletter-submit:active {
    transform: translateY(0) scale(1);
}

.newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* GDPR Consent */
.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.newsletter-consent label {
    cursor: pointer;
    line-height: 1.5;
}

.newsletter-consent a {
    color: var(--primary-color);
    text-decoration: underline;
}

.newsletter-consent a:hover {
    color: var(--primary-light);
}

/* Error Message */
.newsletter-error {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 64, 129, 0.1);
    border: 1px solid var(--accent-pink);
    border-radius: var(--radius-md);
    color: var(--accent-pink);
    font-size: var(--font-size-sm);
    animation: slideInUp 0.3s ease;
}

.newsletter-error i {
    font-size: var(--font-size-base);
}

/* ===================================
   Success Modal
   =================================== */

.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 229, 255, 0.2);
    max-width: 500px;
    width: 100%;
    padding: var(--spacing-3xl);
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-slow);
    position: relative;
}

.newsletter-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.modal-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.modal-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.subscriber-email {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    word-break: break-all;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.modal-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.modal-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.modal-btn-secondary:hover {
    background: rgba(0, 229, 255, 0.05);
    color: var(--primary-color);
}

/* ===================================
   Popup Newsletter (Optional)
   =================================== */

.newsletter-popup {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    padding: var(--spacing-xl);
    z-index: 9998;
    transform: translateY(120%);
    transition: transform var(--transition-slow);
}

.newsletter-popup.show {
    transform: translateY(0);
}

.newsletter-popup-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-size-xl);
    padding: 0.5rem;
    transition: color var(--transition-base);
}

.newsletter-popup-close:hover {
    color: var(--primary-color);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .newsletter-section {
        padding: var(--spacing-xl);
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-submit {
        width: 100%;
    }
    
    .modal-content {
        padding: var(--spacing-2xl);
    }
    
    .newsletter-popup {
        left: var(--spacing-md);
        right: var(--spacing-md);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .newsletter-section h3 {
        font-size: var(--font-size-xl);
    }
    
    .newsletter-form input[type="email"] {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .newsletter-submit {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* ===================================
   Newsletter Badge (Optional)
   =================================== */

.newsletter-badge {
    position: fixed;
    bottom: 80px;
    right: var(--spacing-lg);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    cursor: pointer;
    z-index: 9997;
    transition: all var(--transition-bounce);
    animation: float 3s ease-in-out infinite;
}

.newsletter-badge:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-hover);
}

.newsletter-badge.hidden {
    display: none;
}

