/* Rating and Review Styles */

/* Star Rating Display */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.star {
    color: var(--accent-gold, #d4af37);
    line-height: 1;
    transition: color 0.2s ease;
}

/* Use higher specificity to override style.css rule (.star-rating .star) */
.star-rating .star.star-full {
    color: var(--accent-gold, #d4af37);
}

.star-rating .star.star-half {
    position: relative;
    color: #666;
}

.star-rating .star.star-half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: var(--accent-gold, #d4af37);
}

.star-rating .star.star-empty {
    color: #666;
}

/* Star sizes */
.star-small .star {
    font-size: 14px;
}

.star-medium .star {
    font-size: 20px;
}

.star-large .star {
    font-size: 28px;
}

/* Interactive Star Selector */
.star-selector {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.star-interactive {
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none;
}

.star-interactive:hover {
    transform: scale(1.2);
}

.star-interactive:active {
    transform: scale(1.1);
}

/* Rating Summary */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 8px;
    margin-bottom: 24px;
}

.rating-summary-score {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent-gold, #d4af37);
    line-height: 1;
}

.rating-summary-details {
    flex: 1;
}

.rating-summary-stars {
    margin-bottom: 4px;
}

.rating-summary-count {
    font-size: 14px;
    color: var(--text-secondary, #999);
}

/* Rating Distribution */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-bar-label {
    font-size: 14px;
    color: var(--text-secondary, #999);
    width: 60px;
}

.rating-bar-container {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary, #2a2a2a);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--accent-gold, #d4af37);
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 14px;
    color: var(--text-secondary, #999);
    width: 40px;
    text-align: right;
}

/* Review Card */
.review-card {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}

.review-card:hover {
    border-color: var(--accent-gold, #d4af37);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary, #999);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-text {
    color: var(--text-primary, #ccc);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #333);
}

.review-action-btn {
    font-size: 12px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--border, #333);
    border-radius: 4px;
    color: var(--text-secondary, #999);
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-action-btn:hover {
    border-color: var(--accent-gold, #d4af37);
    color: var(--accent-gold, #d4af37);
}

.review-action-btn.danger:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Review Form */
.review-form {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border, #333);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.review-form-title {
    font-size: 20px;
    font-family: Colus;
    font-weight: 600;
    margin-bottom: 16px;
    color: #c9a227;
}

.review-form-group {
    margin-bottom: 20px;
}

.review-form-label {
    display: block;
    font-family: Colus;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 8px;
}

.review-form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: var(--bg-tertiary, #0d0d0d);
    border: 1px solid var(--border, #333);
    border-radius: 4px;
    color: var(--text-primary, #fff);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.review-form-textarea:focus {
    outline: none;
    border-color: var(--accent-gold, #d4af37);
}

.review-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Rating badge on adventure cards */
.adventure-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(212, 175, 55, 0);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.adventure-rating-badge .star {
    font-size: 14px;
}

/* Empty state for reviews */
.reviews-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary, #999);
}

.reviews-empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.reviews-empty-state-text {
    font-size: 16px;
    margin-bottom: 8px;
}

.reviews-empty-state-subtext {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-summary-score {
        font-size: 36px;
    }
    
    .star-interactive {
        font-size: 28px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .review-form-actions {
        flex-direction: column;
    }
    
    .review-form-actions button {
        width: 100%;
    }
}
