/* Community Popup Styles */
.community-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.community-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.community-popup {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    padding: 20px;
    padding-top: 35px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.community-popup-overlay.show .community-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.community-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.community-popup-close:hover {
    color: #333;
}

.community-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    color: #1976d2;
    font-size: 40px;
}

.community-popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.community-popup-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.community-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-join-group {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.btn-join-group:hover {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-join-group i {
    margin-right: 2px;
}

.popup-actions {
    display: row;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-close, .btn-close-24h {
    background: none;
    border: none;
    padding: 8px -1px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    flex: 1;
}

.btn-close {
    text-align: left;
    visibility: hidden;
}

.btn-close-24h {
    text-align: right;
}

.btn-close:hover, .btn-close-24h:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Accessibility */
.community-popup:focus-within {
    outline: 2px solid #1976d2;
}

.community-popup button:focus,
.community-popup a:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .community-popup {
        padding: 5px 20px;
        padding-top: 35px;
    }
    
    .community-popup-title {
        font-size: 22px;
    }
    
    .community-popup-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .community-popup-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 15px;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 0px;
        padding-top: 0px;
        text-align: left;
    }
    
    .btn-close, .btn-close-24h {
        text-align: left;
    }
    .btn-close{
        visibility: hidden;

    }
    .btn-close-24h{
        margin-left: 15px;
        padding-top: 0px;
    }
} 