/* Basic styling for the container */
#vouchesContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row by default */
    gap: 1rem; /* Space between vouches */
    margin-top: 20px;
    padding: 10px;
    background-color: #1d232a;
    border-radius: 10px;
    border: 1px solid #2f3b44;
    max-width: 100%;
    width: 100%; /* Ensure full width */
}

/* Each individual vouch */
.vouch {
    background-color: #242c37;
    padding: 20px;
    border-radius: 10px;
    color: #f4f4f8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%; /* Ensure each vouch takes full width of its grid cell */
}

/* For small screens (mobile), change to 1 item per row */
@media (max-width: 768px) {
    #vouchesContainer {
        grid-template-columns: 1fr; /* 1 item per row on mobile */
    }
}

/* Vouch Header - User's name, user ID, profile picture */
.vouch-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column; /* Stack profile picture, username, and user ID vertically */
}

.vouch-header .user-pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.vouch-header .username {
    font-size: 16px;
    font-weight: bold;
    color: #26A69A;
}

.vouch-header .user-id {
    font-size: 12px;
    color: #b0b7be;
}

/* Stars are now in their own div below the header */
.vouch .rating {
    display: flex;
    gap: 5px;
    margin-top: 10px; /* Add margin to separate stars from text */
    justify-content: flex-start;
}

/* Styling for the star icon */
.vouch .rating .star {
    color: #FF7043;
}

/* Message inside the vouch */
.vouch .message {
    font-size: 14px;
    color: #ffffff;
    margin-top: 10px;
    font-style: italic;
}

/* Timestamp */
.vouch .timestamp {
    font-size: 12px;
    color: #b0b7be;
    position: absolute;
    bottom: 10px;
    right: 10px;
}
