/* 用户信息面板样式文件 */

/* 用户信息面板从右侧滑出样式 */
.user-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-info-overlay.show {
    opacity: 1;
}

.user-info-panel {
    position: relative;
    top: 0;
    right: -450px; /* 初始位置在屏幕右侧外，宽度调整为450px */
    width: 450px; /* 从400px增加到450px，增加约5个字母的宽度 */
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-info-overlay.show .user-info-panel {
    right: 0;
}

.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    flex-shrink: 0;
}

.user-info-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.user-info-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.user-info-section {
    margin-bottom: 24px;
}

.user-info-section:last-child {
    margin-bottom: 0;
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-address-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-short {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    word-break: break-all;
}

.address-full {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    word-break: break-all;
}

.wallet-status-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
}

.status-indicator.connected {
    background-color: var(--secondary-color);
}

.membership-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.membership-status .status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.membership-status i {
    color: var(--accent-color);
}

.membership-status .membership-type {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.membership-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.membership-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-item:last-child {
    border-bottom: none;
}

.membership-item .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.membership-item .value {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.membership-item .value.expired {
    color: #ff6b6b;
    font-weight: 600;
}

/* 不同用户状态的样式 */
.membership-info.active-member {
    border-left: 4px solid #4caf50;
    padding-left: 16px;
}

.membership-info.expired-member {
    border-left: 4px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
    padding-left: 16px;
}

.membership-info.new-user {
    border-left: 4px solid #2196f3;
    background: rgba(33, 150, 243, 0.05);
    padding-left: 16px;
}

/* 过期会员特殊样式 */
.expired-crown {
    color: #ff6b6b !important;
}

.membership-badge.expired {
    background: #ff6b6b !important;
    color: white !important;
}

.membership-type.expired {
    color: #ff6b6b;
    font-weight: 600;
}

.membership-item.highlight {
    background: rgba(255, 107, 107, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
}

.renewal-reminder {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6b6b;
    font-size: 14px;
}

.renewal-reminder i {
    color: #ff6b6b;
    font-size: 16px;
}

/* 新用户升级建议 */
.upgrade-suggestion {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2196f3;
    font-size: 14px;
}

.upgrade-suggestion i {
    color: #2196f3;
    font-size: 16px;
}

/* 过期会员权益信息样式 */
.benefits-info.expired-benefits {
    opacity: 0.7;
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.benefits-info.expired-benefits .benefits-title {
    color: #ff6b6b;
}

.benefits-info.expired-benefits .benefits-title i {
    color: #ff6b6b;
}

/* 过期会员按钮样式 */
#membershipBtn.expired {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    border-color: #ff6b6b;
}

#membershipBtn.expired:hover {
    background: linear-gradient(45deg, #ff5252, #ff4444);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.user-info-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.logout-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #f44336, #d32f2f);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.logout-btn:active {
    transform: translateY(0);
}

/* 会员权益使用情况样式 */
.loading-benefits {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.benefits-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #f44336;
    font-size: 14px;
    margin-top: 12px;
}

.benefits-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.benefits-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.benefits-title i {
    color: var(--accent-color);
}

.benefits-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.benefits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.benefits-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.benefits-value {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.benefits-progress {
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.benefits-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.benefits-remaining {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.benefits-percent {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 500;
}

.membership-type-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.type-item:last-child {
    border-bottom: none;
}

.type-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.type-value {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-info-panel {
        width: 100%;
        right: -100%;
    }
    
    .user-info-header {
        padding: 16px 20px;
    }
    
    .user-info-content {
        padding: 20px;
    }
    
    .user-info-actions {
        padding: 16px 20px;
    }
    
    .address-short {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .address-full {
        font-size: 10px;
        padding: 4px 8px;
    }
} 