/* ===================================
   Popup Announcement System
   =================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #0f0f1a;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(139, 92, 246, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
}

/* Subtle glow effect */
.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.3);
}

.popup-content {
    padding: 50px 40px 40px;
    text-align: center;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.popup-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.popup-message strong {
    color: #a78bfa;
    font-weight: 600;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.popup-btn:hover::before {
    left: 100%;
}

.popup-btn-primary {
    background: #8B5CF6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.popup-btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-container {
        max-width: 90%;
        margin: 20px;
    }

    .popup-content {
        padding: 40px 30px 30px;
    }

    .popup-title {
        font-size: 24px;
    }

    .popup-message {
        font-size: 16px;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .popup-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 35px 25px 25px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-message {
        font-size: 15px;
    }

    .popup-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* ===================================
   Trustpilot Compact Badge
   =================================== */

.trustpilot-cta {
    margin-top: 24px;
}

.trustpilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 182, 122, 0.1);
    color: #00b67a;
    border: 1.5px solid rgba(0, 182, 122, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.trustpilot-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 182, 122, 0.15), transparent);
    transition: left 0.5s ease;
}

.trustpilot-badge:hover::before {
    left: 100%;
}

.trustpilot-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 182, 122, 0.3);
    background: rgba(0, 182, 122, 0.15);
    border-color: rgba(0, 182, 122, 0.5);
}

.trustpilot-star {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #00b67a;
    transition: transform 0.3s ease;
}

.trustpilot-badge:hover .trustpilot-star {
    transform: rotate(15deg) scale(1.1);
}

.trustpilot-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #00b67a;
}

.trustpilot-stars {
    font-size: 11px;
    line-height: 1;
    color: #00b67a;
    opacity: 0.85;
}

/* Footer Trustpilot Icon */
.footer-social .social-link.trustpilot {
    background: linear-gradient(135deg, #00b67a 0%, #00875a 100%);
}

.footer-social .social-link.trustpilot:hover {
    background: linear-gradient(135deg, #00875a 0%, #006644 100%);
    box-shadow: 0 8px 25px rgba(0, 182, 122, 0.4);
}

.footer-social .social-link.trustpilot svg {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trustpilot-badge {
        padding: 8px 12px;
        gap: 6px;
        font-size: 12px;
    }

    .trustpilot-star {
        width: 14px;
        height: 14px;
    }

    .trustpilot-label {
        font-size: 12px;
    }

    .trustpilot-stars {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .trustpilot-cta {
        margin-top: 20px;
    }

    .trustpilot-badge {
        padding: 7px 10px;
        gap: 5px;
        font-size: 11px;
    }

    .trustpilot-star {
        width: 13px;
        height: 13px;
    }

    .trustpilot-label {
        font-size: 11px;
    }

    .trustpilot-stars {
        font-size: 9px;
    }
}
