/* ==========================
   Compact rating display
   ========================== */
.post__rating-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.post__rating-compact .rating-icon {
    color: gold;
}

/* ==========================
   Modal overlay
   ========================== */
.rating-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal content box */
.rating-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

/* Close button */
/* Close button (X) in the top-right corner of modal */
.rating-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.8rem;        /* bigger */
    font-weight: bold;
    color: #333;              /* dark for visibility */
    cursor: pointer;
    z-index: 100;             /* above modal content */
    transition: color 0.2s ease;
}

.rating-modal-close:hover {
    color: #e74c3c;           /* red hover effect */
}


/* Stars inside modal */
.modal-stars {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    justify-content: center;
    margin: 10px 0;
    cursor: pointer;
}

.modal-stars .fa-star {
    color: #ccc; /* default grey */
    transition: color 0.2s;
}

/* Hover effect */
.modal-stars .fa-star.hovered,
.modal-stars .fa-star.selected {
    color: gold;
}

/* Submit button */
#submit-rating {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background-color: gold;
    font-weight: bold;
}
