/**
 * Gratis Redesign Popup Styling
 * Non-aggressive popup matching NixoWebBuilding brand style
 */

/* Overlay */
.redesign-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.redesign-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.redesign-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(41, 52, 196, 0.2);
    z-index: 9999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 2px solid rgba(75, 179, 255, 0.1);
}

.redesign-popup.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .redesign-popup {
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
    .redesign-popup {
        bottom: 20px;
        right: 20px;
        max-width: 400px;
    }
}

/* Close Button */
.redesign-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(107, 114, 128, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
}

.redesign-popup-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    transform: rotate(90deg);
}

/* Badge */
.redesign-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid rgba(75, 179, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.05);
    margin-bottom: 12px;
}

.redesign-popup-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    position: relative;
    isolation: isolate;
}

/* Pseudo-element pulse: transform+opacity (composited, geen box-shadow) */
.redesign-popup-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.5);
    animation: subtle-pulse-composited 2s infinite;
    will-change: transform, opacity;
}

@keyframes subtle-pulse-composited {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(2.2); opacity: 0;   }
    100% { transform: scale(1);   opacity: 0;   }
}

.redesign-popup-badge-text {
    font-size: 11px;
    font-weight: 700;
    color: #2934c4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content */
.redesign-popup-content {
    padding: 24px;
    padding-top: 20px;
}

.redesign-popup-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4bb3ff 0%, #2934c4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
}

.redesign-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #2934c4;
    line-height: 1.3;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.redesign-popup-text {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA Button - Matches hero 'Bel me even' button */
.redesign-popup-cta {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: #2934c4;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.redesign-popup-cta:hover {
    background: #4bb3ff;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Dismiss Link */
.redesign-popup-dismiss {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    text-decoration: none;
    padding: 8px;
    transition: color 0.2s ease;
}

.redesign-popup-dismiss:hover {
    color: #2934c4;
}

/* Features List */
.redesign-popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.redesign-popup-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1a1a1a;
    padding: 6px 10px;
    background: #f1f6fb;
    border-radius: 6px;
}

.redesign-popup-feature i {
    color: #10B981;
    font-size: 10px;
}

/* Animation entrance */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.redesign-popup.entering {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
