/**
 * AIDA Newsletter Styles
 * Version: 1.0.0
 */

/* ============================================
   SECTION NEWSLETTER
   ============================================ */
.aida-newsletter-section {
    padding: 0;
    background: rgba(15, 15, 25, 0.8);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aida-newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 100% at 0% 50%, rgba(255, 174, 0, 0.08), transparent),
        radial-gradient(ellipse 50% 100% at 100% 50%, rgba(168, 85, 247, 0.08), transparent);
    pointer-events: none;
}

.aida-newsletter-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.aida-newsletter-glow-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffae00, #A855F7, #ff00ff, transparent);
}

/* ============================================
   CONTAINER
   ============================================ */
.aida-newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ============================================
   CONTENT
   ============================================ */
.aida-newsletter-content {
    padding-right: 1rem;
}

.aida-newsletter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 174, 0, 0.1);
    border: 1px solid rgba(255, 174, 0, 0.5);
    border-radius: 100px;
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffae00;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px -5px rgba(255, 174, 0, 0.4);
    animation: aida-newsletter-pulse 2s ease-in-out infinite;
}

@keyframes aida-newsletter-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px -5px rgba(255, 174, 0, 0.4);
    }
    50% { 
        box-shadow: 0 0 30px -5px rgba(255, 174, 0, 0.6), 0 0 60px -10px rgba(255, 174, 0, 0.3);
    }
}

.aida-newsletter-tag-dot {
    width: 8px;
    height: 8px;
    background: #ffae00;
    border-radius: 50%;
    animation: aida-newsletter-dot-pulse 2s ease-out infinite;
}

@keyframes aida-newsletter-dot-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.aida-newsletter-title {
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--aida-text, #F1F5F9);
    line-height: 1.2;
}

.aida-newsletter-title span,
.aida-newsletter-title strong {
    background: linear-gradient(135deg, #ffae00, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aida-newsletter-description {
    color: var(--aida-text-muted, #94A3B8);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ============================================
   BENEFITS
   ============================================ */
.aida-newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aida-newsletter-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--aida-text-muted, #94A3B8);
}

.aida-newsletter-benefit-icon {
    width: 22px;
    height: 22px;
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #39ff14;
    flex-shrink: 0;
}

/* ============================================
   FORM WRAPPER
   ============================================ */
.aida-newsletter-form-wrapper {
    background: rgba(8, 8, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
}

.aida-newsletter-form-title {
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--aida-text, #F1F5F9);
    text-align: center;
}

/* ============================================
   FORM
   ============================================ */
.aida-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aida-newsletter-input {
    width: 100%;
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--aida-text, #F1F5F9);
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.aida-newsletter-input:focus {
    outline: none;
    border-color: #ffae00;
    box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.1);
}

.aida-newsletter-input::placeholder {
    color: var(--aida-text-dim, #64748B);
}

.aida-newsletter-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffae00, #A855F7);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.aida-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 174, 0, 0.5);
}

.aida-newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.aida-newsletter-btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.aida-newsletter-btn:hover .aida-newsletter-btn-icon {
    transform: translateX(4px);
}

.aida-newsletter-btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: aida-newsletter-spin 0.8s linear infinite;
}

.aida-newsletter-btn.loading .aida-newsletter-btn-text,
.aida-newsletter-btn.loading .aida-newsletter-btn-icon {
    display: none;
}

.aida-newsletter-btn.loading .aida-newsletter-btn-loader {
    display: block;
}

@keyframes aida-newsletter-spin {
    to { transform: rotate(360deg); }
}

.aida-newsletter-privacy {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--aida-text-dim, #64748B);
    text-align: center;
}

.aida-newsletter-privacy a {
    color: #ffae00;
    text-decoration: none;
}

.aida-newsletter-privacy a:hover {
    text-decoration: underline;
}

/* ============================================
   SUCCESS & ERROR MESSAGES
   ============================================ */
.aida-newsletter-success,
.aida-newsletter-error {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    animation: aida-newsletter-fadeIn 0.3s ease;
}

@keyframes aida-newsletter-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aida-newsletter-success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.aida-newsletter-success.active {
    display: flex;
}

.aida-newsletter-success-icon {
    width: 28px;
    height: 28px;
    background: rgba(57, 255, 20, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #39ff14;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.aida-newsletter-success p {
    color: #39ff14;
    font-size: 0.95rem;
    margin: 0;
}

.aida-newsletter-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.aida-newsletter-error.active {
    display: flex;
}

.aida-newsletter-error-icon {
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.aida-newsletter-error p {
    color: #EF4444;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .aida-newsletter-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem;
    }

    .aida-newsletter-content {
        padding-right: 0;
        text-align: center;
    }

    .aida-newsletter-benefits {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .aida-newsletter-container {
        padding: 2.5rem 1rem;
        gap: 2rem;
    }

    .aida-newsletter-title {
        font-size: 1.5rem;
    }

    .aida-newsletter-description {
        font-size: 0.95rem;
    }

    .aida-newsletter-form-wrapper {
        padding: 1.5rem;
    }
    
    .aida-newsletter-form-title {
        font-size: 1rem;
    }
    
    .aida-newsletter-input {
        padding: 0.875rem 1rem;
    }
    
    .aida-newsletter-btn {
        padding: 0.875rem 1.5rem;
    }
}
