/* Rating Feature Styles */

#ratingSection {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Author View Styles */
.rating-summary {
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    display: block !important;
    visibility: visible !important;
}

.average-rating {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding: 0;
    display: block !important;
}

#ratingsList {
    max-height: 300px;
    overflow-y: auto;
    /* border-top: 2px solid #f3f4f6; */
    padding-top: 0.5rem;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.rating-user {
    font-weight: 600;
    color: #1f2937;
}

.rating-value {
    color: #4299e1;
    font-weight: 600;
}

.rating-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Stakeholder View Styles */
.rating-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.rating-button {
    background-color: #f3f4f6;
    color: #4b5563;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-button:hover {
    background-color: #d97706;
    color: white;
    transform: translateY(-1px);
}

.rating-button.bg-yellow-400 {
    background-color: #facc15;
    border: 1px solid #eab308;
}

.rating-button.bg-gray-100 {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
    #ratingSection {
        padding: 0.75rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .rating-summary {
        padding: 0.75rem;
    }

    .average-rating {
        font-size: 1rem;
    }

    #ratingsList {
        max-height: 200px;
    }

    .rating-buttons {
        flex-wrap: wrap;
    }

    .rating-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
}

/* Rating Feature Styles */

#ratingSection {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.rating-summary {
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    padding: 0.25rem 0rem;
    margin-bottom: 0rem;
}

.average-rating {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0rem;
    padding: 0.25rem 0rem;
}

#ratingsList {
    list-style-type: none;
    padding: 0;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.rating-user {
    font-weight: 500;
    color: #1f2937;
    justify-self: flex-start;
}

.rating-value {
    color: #3b82f6;
    font-weight: 600;
}

.rating-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Mobile Styles */
@media only screen and (max-width: 600px) {
    #ratingSection {
        padding: 0rem;
    }

    .rating-summary {
        padding: 0.25rem 0.1rem;
    }

    .rating-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-user {
        margin-bottom: 0.25rem;
    }

    .rating-value {
        margin-bottom: 0.25rem;
    }
}

/* Desktop Styles */
@media only screen and (min-width: 601px) {
    #ratingSection {
        /* max-width: 600px; */
        margin-left: 0;
        margin-right: 0;
        margin: 1rem;
        margin-top: 2rem;
    }

    .rating-item {
        display: grid;
        grid-template-columns: 2fr 1.5fr 1fr;
        /* gap: 1rem; */
        /* align-items: center; */
    }

    .rating-value {
        text-align: right;
        justify-self: center;
        justify-self: flex-end;
    }

    .rating-date {
        text-align: right;
    }
}

/* Stakeholder View Styles */
.rating-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding-left: 0.1rem;
}

.stakeholder-view{
    padding-bottom: 1rem;
    margin: 1rem;
    margin-left: 1.5rem;
    border-top: 0.1px solid #80808033;
    padding-top: 0.3rem;
}

.rating-button {
    background-color: #f3f4f6;
    color: #4b5563;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-button:hover {
    background-color: #d97706;
    color: white;
    transform: translateY(-1px);
}

.rating-button.bg-yellow-400 {
    background-color: #facc15;
    border: 1px solid #eab308;
}

.rating-button.bg-gray-100 {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}