/* Newsletter Pop-up Banner Styles */
.newsletter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.newsletter-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.newsletter-popup-close i {
    font-size: 18px;
}

.newsletter-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.newsletter-popup-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.newsletter-popup-form {
    margin-top: 30px;
}

.newsletter-popup-input-group {
    position: relative;
    margin-bottom: 20px;
}

.newsletter-popup-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.newsletter-popup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-popup-input::placeholder {
    color: var(--text-muted);
}

.newsletter-popup-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.newsletter-popup-button:active {
    transform: translateY(0);
}

.newsletter-popup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-popup-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.newsletter-popup-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.newsletter-popup-footer a:hover {
    text-decoration: underline;
}

.newsletter-popup-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.newsletter-popup-checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary-color);
}

/* Success state */
.newsletter-popup.success .newsletter-popup-form {
    display: none;
}

.newsletter-popup.success .newsletter-popup-header {
    margin-bottom: 0;
}

.newsletter-popup-success {
    text-align: center;
    display: none;
}

.newsletter-popup.success .newsletter-popup-success {
    display: block;
}

.newsletter-popup-success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.newsletter-popup-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.newsletter-popup-success-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .newsletter-popup {
        padding: 30px 25px;
        max-width: 90%;
        margin: 20px;
    }
    
    .newsletter-popup-title {
        font-size: 24px;
    }
    
    .newsletter-popup-subtitle {
        font-size: 15px;
    }
    
    .newsletter-popup-input,
    .newsletter-popup-button {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* Dark/Light theme adjustments */
[data-theme="light"] .newsletter-popup {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .newsletter-popup-input {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .newsletter-popup-input:focus {
    border-color: var(--primary-color);
    background: white;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .newsletter-popup {
        transition: none;
    }
    
    .newsletter-popup-overlay {
        transition: none;
    }
    
    .newsletter-popup-close:hover {
        transform: none;
    }
    
    .newsletter-popup-button:hover {
        transform: none;
    }
}

/* Animation for popup entrance */
@keyframes newsletterPopupIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.newsletter-popup.active {
    animation: newsletterPopupIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
