/* WeChat Modal Styling */
.wechat-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wechat-modal.active {
    opacity: 1;
}

.wechat-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.wechat-modal.active .wechat-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.wechat-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wechat-close:hover {
    color: var(--primary);
}

.wechat-modal h3 {
    color: var(--primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.wechat-qr-container {
    text-align: center;
    margin: 20px 0;
}

.wechat-qr {
    max-width: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wechat-modal p {
    text-align: center;
    color: var(--primary);
    margin-bottom: 0;
    font-size: 0.9em;
}

/* Animation for QR code */
@keyframes qrFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.wechat-qr {
    animation: qrFadeIn 0.5s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .wechat-modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 90%;
    }
    
    .wechat-qr {
        width: 180px;
        height: 180px;
    }
} 