/**
 * 加群小工具样式
 * 
 * @package PixelShare
 * @author 猫大大
 * @version 1.0.0
 */

/* 加群小工具容器 */
.join-group-widget {
    width: 100%;
    padding: 20px 16px;
    box-sizing: border-box;
    overflow: visible;
}

/* 群信息头部 */
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.group-info {
    flex: 1;
    margin-right: 20px;
    min-width: 0;
}

.group-name {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary, #1f2937);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.group-desc {
    margin: 0;
    font-size: 15px;
    color: var(--color-text-regular, #6b7280);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 群状态信息 */
.group-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary, #6366f1);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary, #9ca3af);
    margin-top: 4px;
    font-weight: 500;
}

.stat-status {
    font-size: 12px;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* 二维码区域 */
.qr-code-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 16px;
}

.qr-code-container {
    margin-bottom: 16px;
}

.qr-code-image {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.qr-code-image:hover {
    transform: scale(1.08);
}

.qr-tip {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary, #9ca3af);
    font-weight: 500;
}

/* 按钮区域 */
.join-button-section {
    text-align: center;
}

.join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--color-primary, #6366f1);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-button:hover {
    background: #5855eb;
    transform: translateY(-2px);
}

.join-button:active {
    transform: translateY(0);
}

.join-button i {
    font-size: 18px;
}

.join-button span {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .join-group-widget {
        padding: 16px 12px;
    }
    
    .group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .group-info {
        margin-right: 0;
    }
    
    .group-stats {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .group-name {
        font-size: 18px;
    }
    
    .qr-code-image {
        width: 120px;
        height: 120px;
    }
    
    .join-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .group-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .group-name {
        color: var(--color-text-primary, #f9fafb);
    }
    
    .group-desc {
        color: var(--color-text-regular, #d1d5db);
    }
    
    .qr-code-section {
        background: rgba(99, 102, 241, 0.05);
    }
    
    .stat-status {
        background: rgba(5, 150, 105, 0.15);
    }
}

/* 小工具标题样式 */
.pixelshare_join_group_widget .widget-title {
    color: var(--color-text-primary, #1f2937);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
}

.pixelshare_join_group_widget .widget-title::before {
    content: "👥";
    margin-right: 10px;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* 深色模式标题 */
@media (prefers-color-scheme: dark) {
    .pixelshare_join_group_widget .widget-title {
        color: var(--color-text-primary, #f9fafb);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

/* 动画效果 */
.join-group-widget {
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 