/* Article Review System - Public Styles */

.ars-rating-fields {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.ars-rating-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ars-rating-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ars-rating-label {
    min-width: 100px;
    font-weight: 500;
    color: #444;
    font-size: 13px;
}

.ars-slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ars-rating-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.ars-rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ars-rating-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ars-slider-value {
    min-width: 45px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* Rating colors */
.ars-rating-low { color: #ef4444 !important; }
.ars-rating-mid { color: #3b82f6 !important; }
.ars-rating-high { color: #22c55e !important; }

/* Comment ratings display */
.ars-comment-ratings {
    margin-bottom: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.ars-comment-ratings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-bottom: 8px;
}

.ars-comment-criterion {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.ars-criterion-label {
    color: #64748b;
}

.ars-criterion-value {
    font-weight: 700;
}

.ars-comment-overall {
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.ars-comment-overall span {
    font-weight: 700;
    font-size: 14px;
}

/* Rating Summary */
.ars-rating-summary {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ars-summary-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.ars-criteria-ratings {
    margin-bottom: 20px;
}

.ars-criterion-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ars-criterion-name {
    min-width: 120px;
    font-weight: 500;
    color: #555;
}

.ars-rating-bar-container {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.ars-rating-bar {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.ars-rating-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.ars-rating-count {
    color: #888;
    font-size: 14px;
}

.ars-overall-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
}

/* Leaderboards */
.ars-leaderboard {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.ars-leaderboard-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.ars-period-filter {
    margin-bottom: 20px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 5px;
    display: inline-block;
    font-size: 14px;
    color: #666;
}

.ars-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ars-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ars-leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ars-leaderboard-item.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.ars-leaderboard-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.ars-leaderboard-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
}

.ars-rank {
    min-width: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.ars-rank.trending-icon {
    font-size: 18px;
}

.ars-user-info,
.ars-post-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ars-user-info img {
    border-radius: 50%;
}

.ars-user-name {
    font-weight: 600;
    color: #333;
}

.ars-post-info a {
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

.ars-post-info a:hover {
    text-decoration: underline;
}

.ars-post-meta {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 3px;
}

.ars-points,
.ars-review-count {
    min-width: 80px;
    text-align: right;
    font-weight: 700;
    color: #3b82f6;
}

.ars-rating-badge {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.ars-no-data {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* User Reviews */
.ars-user-reviews {
    margin: 20px 0;
}

.ars-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ars-review-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ars-review-criterion {
    color: #666;
    font-weight: 500;
}

.ars-review-date {
    color: #999;
    font-size: 13px;
}

/* BuddyPress Integration */
.ars-bp-reviews,
.ars-bp-points {
    padding: 20px;
}

.ars-bp-review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ars-points-total {
    padding: 30px;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.ars-points-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-top: 10px;
}

.ars-points-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ars-points-entry {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ars-entry-date {
    margin-left: auto;
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .ars-criterion-rating {
        flex-wrap: wrap;
    }
    
    .ars-criterion-name {
        min-width: 100%;
    }
    
    .ars-leaderboard-item {
        flex-wrap: wrap;
    }
}
