.community-section {
    margin-top: 5rem;
    padding-top: 3rem;
}

.community-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 1.5rem;
}

.average-rating-simplified {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.review-item {
    padding: 2rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
}

.verified-badge {
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.star-rating {
    color: #ffb800;
    font-size: 0.875rem;
}

.review-comment {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.25rem;
    white-space: pre-line;
}

.tasting-notes-refined {
    font-size: 0.875rem;
    color: #6b7280;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lightbox-img {
    max-height: 80vh;
    object-fit: contain;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.z-index-modal {
    z-index: 1060;
}

.review-form-container {
    padding-top: 2rem;
}

.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.2rem;
    position: relative;
    line-height: 1;
}

.rating-input input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    display: none !important; /* Adding back display: none as a fallback */
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #e5e7eb;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    margin: 0;
}

/* Hover & Checked State */
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffb800;
}

.rating-input label:hover {
    transform: scale(1.2) rotate(-5deg);
}

.rating-input input:checked + label {
    animation: star-pulse 0.3s ease-out;
}

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
