/**
 * 短碼系統 CSS 樣式
 * 檔案位置: /wp-content/themes/astra-child/interest-system/assets/css/shortcodes.css
 */

/* 用戶等級顯示樣式 */
.user-level-display {
    background: linear-gradient(299deg, #2196F3 0%, #00BCD4 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.level-badge {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stars-display {
    font-size: 20px;
    margin-bottom: 8px;
}

.total-stars {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.progress-info {
    font-size: 14px;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}

/* 評價統計顯示樣式 */
.user-rating-stats {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.user-rating-stats .average-rating {
    text-align: center;
    margin-bottom: 15px;
}

.user-rating-stats .stars {
    font-size: 24px;
    margin-right: 10px;
}

.user-rating-stats .rating-number {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.user-rating-stats .rating-details {
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.user-rating-stats .total-stars,
.user-rating-stats .total-ratings {
    color: #6c757d;
    font-size: 14px;
}

/* 頂級用戶排行榜樣式 */
.top-rated-users {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
}

.top-rated-users h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-rank-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    transition: all 0.3s ease;
}

.user-rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #e9ecef;
}

.rank-number {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
    margin-right: 15px;
    min-width: 40px;
}

.user-avatar {
    margin-right: 15px;
}

.user-avatar img {
    border-radius: 50%;
    border: 2px solid #dee2e6;
}

.user-info {
    flex-grow: 1;
}

.user-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.user-info h4 a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.user-info h4 a:hover {
    color: #007cba;
    text-decoration: underline;
}

.user-level {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 3px;
    font-weight: 600;
}

.user-stars {
    font-size: 14px;
    margin-bottom: 3px;
}

.user-total-stars {
    font-size: 12px;
    color: #6c757d;
}

/* 前三名特殊樣式 */
.user-rank-item:nth-child(1) {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff8e1, #f8f9fa);
}

.user-rank-item:nth-child(1) .rank-number {
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.user-rank-item:nth-child(2) {
    border-left-color: #c0c0c0;
    background: linear-gradient(135deg, #f5f5f5, #f8f9fa);
}

.user-rank-item:nth-child(2) .rank-number {
    color: #c0c0c0;
}

.user-rank-item:nth-child(3) {
    border-left-color: #cd7f32;
    background: linear-gradient(135deg, #fdf2e9, #f8f9fa);
}

.user-rank-item:nth-child(3) .rank-number {
    color: #cd7f32;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .user-level-display {
        padding: 15px;
        margin: 15px 0;
    }
    
    .level-badge {
        font-size: 20px;
    }
    
    .stars-display {
        font-size: 18px;
    }
    
    .user-rank-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .user-avatar {
        margin: 0;
    }
    
    .rank-number {
        margin: 0;
    }
    
    .user-info {
        text-align: center;
    }
    
    .user-rating-stats .rating-details {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .top-rated-users {
        padding: 15px;
        margin: 15px 0;
    }
    
    .user-rank-item {
        padding: 12px;
    }
    
    .level-badge {
        font-size: 18px;
    }
}