/* ========================================
   GLAMZN NEWSLETTER MODAL STYLES
   ======================================== */

/* Newsletter Trigger Button in Topbar - Pill Style avec haute visibilité */
.glamzn-newsletter-trigger {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 1);
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.glamzn-newsletter-trigger:hover {
    background: rgba(99, 102, 241, 1) !important;
    border-color: rgba(79, 70, 229, 1);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.glamzn-newsletter-trigger i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.glamzn-newsletter-trigger:hover i {
    transform: scale(1.15);
}

.glamzn-newsletter-text {
    display: inline-block;
    letter-spacing: 0.3px;
}

/* Newsletter Response Message Styles */
.newsletter-response-message {
    margin-top: 1rem;
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.newsletter-response-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
}

.newsletter-response-message.success i {
    color: #10b981;
    font-size: 1.125rem;
}

.newsletter-response-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.newsletter-response-message.error i {
    color: #ef4444;
    font-size: 1.125rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode for response messages */
.dark .newsletter-response-message.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.dark .newsletter-response-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Dark mode support for newsletter button */
.dark .glamzn-newsletter-trigger,
html.dark .glamzn-newsletter-trigger,
body.dark .glamzn-newsletter-trigger,
[data-theme="dark"] .glamzn-newsletter-trigger {
    background: rgba(99, 102, 241, 0.9) !important;
    border-color: rgba(99, 102, 241, 1) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.dark .glamzn-newsletter-trigger:hover,
html.dark .glamzn-newsletter-trigger:hover,
body.dark .glamzn-newsletter-trigger:hover,
[data-theme="dark"] .glamzn-newsletter-trigger:hover {
    background: rgba(99, 102, 241, 1) !important;
    border-color: rgba(79, 70, 229, 1) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.glamzn-newsletter-text {
    display: inline-block;
}

/* Responsive - Optimisation Mobile */
@media (max-width: 768px) {
    .glamzn-newsletter-text {
        display: none !important;
    }

    .glamzn-newsletter-trigger {
        padding: 7px !important;
        margin-right: 0.5rem;
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 50% !important;
        justify-content: center;
        gap: 0;
    }

    .glamzn-newsletter-trigger i {
        font-size: 1rem;
        margin: 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .glamzn-newsletter-trigger {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 6px !important;
        margin-right: 0.4rem;
    }

    .glamzn-newsletter-trigger i {
        font-size: 0.95rem;
    }
}

/* Newsletter Benefits Section */
.glamzn-newsletter-benefits {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glamzn-benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.glamzn-benefit-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.glamzn-benefit-item i {
    font-size: 1.5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.glamzn-benefit-item span {
    font-size: 0.95rem;
    color: var(--text-color, #333);
    line-height: 1.5;
}

/* Dark mode support */
.dark .glamzn-benefit-item {
    background: rgba(99, 102, 241, 0.1);
}

.dark .glamzn-benefit-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.dark .glamzn-benefit-item span {
    color: rgba(255, 255, 255, 0.9);
}

/* Newsletter Response Message */
.glamzn-newsletter-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInDown 0.3s ease;
}

.glamzn-newsletter-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.glamzn-newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dark .glamzn-newsletter-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.dark .glamzn-newsletter-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom styling for newsletter modal icon */
#uc-newsletter-subscribe-modal .glamzn-search-icon-large {
    animation: envelopePulse 2s ease-in-out infinite;
}

@keyframes envelopePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Ensure the envelope icon in the form maintains consistency */
#uc-newsletter-subscribe-modal .glamzn-search-input-icon {
    color: #6366f1;
}

/* Submit button hover effect for newsletter */
#uc-newsletter-subscribe-modal .glamzn-search-submit-btn {
    background: #6366f1;
}

#uc-newsletter-subscribe-modal .glamzn-search-submit-btn:hover {
    background: #4f46e5;
    transform: translateX(5px);
}
