/* Палитра */
:root {
    --gray-900: #000;
    --gray-850: #0d0d0d;
    --gray-800: #111;
    --gray-750: #181818;
    --gray-700: #222;

    --text-main: #ffffff;
    --text-soft: #cccccc;
    --text-muted: #888;

    --border-soft: #262626;
    --accent-gray: #333;
}

/* -------------------------- */
/* GRID / LAYOUT */
/* -------------------------- */

@media (min-width: 900px) {
    .HomeReviewsContainer {
        grid-template-columns: repeat(4, 1fr);
    }
    .HomeReviewsBlock2 {
        grid-column: 2/5;
        grid-template-columns: repeat(3, 1fr);
    }
}

.HomeReviewsContainer {
    display: grid;
    gap: 12px;
}

/* -------------------------- */
/* TITLE */
/* -------------------------- */

.HomeReviewsTitle {
    display: flex;
    margin-bottom: 12px;
    background-color: var(--gray-800);
    border: 1px solid var(--border-soft);
    border-radius: 8px;

    padding: 8px 15px;
    height: 60px;

    align-items: center;
    justify-content: space-between;
}

.HomeReviewsTitle > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* -------------------------- */
/* BLOCK 1 & BLOCK 2 */
/* -------------------------- */

.HomeReviewsBlock1 {
    display: grid;
    background-color: var(--gray-850);
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    padding: 18px;
}

.HomeReviewsBlock2 {
    display: grid;
    gap: 12px;
    position: relative;
}

/* -------------------------- */
/* REVIEW CARD */
/* -------------------------- */

.HomeReviewsReview {
    background-color: var(--gray-850);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: .3s ease;
}

.HomeReviewsReview:hover {
    background: var(--gray-750);
    border-color: var(--accent-gray);
}

/* -------------------------- */
/* SCORE */
/* -------------------------- */

.HomeReviewsScore {
    display: flex;
    align-items: center;
    gap: 15px;
}

.HomeReviewsScore > h1 {
    width: 90px;
    text-align: center;
    background: var(--gray-900);
    border-radius: 8px;
    color: var(--text-main);
    margin: 0;
    padding: 8px 0;
}

.HomeReviewsScore > div > h3,
.HomeReviewsScore > div > h6 {
    margin: 0;
}

.HomeReviewsScore > div > h6 {
    opacity: .5;
}

/* -------------------------- */
/* STARS */
/* -------------------------- */

.HomeReviewsStar {
    width: 100px;
    text-align: center;
    letter-spacing: 5px;
    color: var(--text-soft);
}

.HomeReviewsStar span {
    opacity: .15;
}

.HomeReviewsStar > a.gold {
    color: gold;
}

/* -------------------------- */
/* REVIEW MAIN INFO */
/* -------------------------- */

.HomeReviewsAllInfo {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 15px;
}

.HomeReviewsAllInfo > a > img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.HomeReviewsAllInfo h4 {
    margin: 0;
}

.HomeReviewsAllInfo > div > a.gold {
    color: gold;
}

/* -------------------------- */
/* REVIEW TEXT */
/* -------------------------- */

.HomeReviewsAllText {
    color: var(--text-soft);
    background: var(--gray-900);
    border: 2px solid var(--border-soft);
    border-radius: 8px;

    font-size: 13px;
    line-height: 1.45;

    height: 60px;
    overflow-y: scroll;
    white-space: pre-line;

    margin: 15px 0;
    padding: 8px 12px;
}

/* -------------------------- */
/* DATE */
/* -------------------------- */

.HomeReviewsAllTime {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    font-size: 10px;
    opacity: .25;
}

/* -------------------------- */
/* LIKE BUTTON */
/* -------------------------- */

.HomeReviewsAllLike {
    position: absolute;
    right: 20px;
    bottom: 6px;

    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 10px;
    cursor: pointer;
    transition: .3s;
}

.HomeReviewsAllLike svg {
    width: 11px;
    transition: .3s;
}

/* hover */
.HomeReviewsAllLike:hover {
    color: red;
}
.HomeReviewsAllLike:hover svg {
    fill: red;
}

/* active red */
.HomeReviewsAllLike.like_red,
.HomeReviewsAllLike.like_red svg {
    color: red;
    fill: red;
}

/* revert on hover when red */
.HomeReviewsAllLike.like_red:hover {
    color: var(--text-main);
}
.HomeReviewsAllLike.like_red:hover svg {
    fill: var(--text-main);
}

/* -------------------------- */
/* REVIEW SWITCH BUTTONS */
/* -------------------------- */

#next_reviews,
#start_reviews {
    cursor: pointer;
    display: flex;

    height: 32px;
    width: 32px;

    border-radius: 6px;
    background: var(--gray-750);
    border: 1px solid var(--border-soft);

    align-items: center;
    justify-content: center;
    transition: .25s;
}

#next_reviews:hover,
#start_reviews:hover {
    background: var(--accent-gray);
}

#next_reviews svg,
#start_reviews svg {
    height: 16px;
    fill: var(--text-main);
}

/* -------------------------- */
/* BUTTON */
/* -------------------------- */

.HomeReviewsButton {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 45px;

    background: var(--gray-900);
    color: var(--text-main);

    border-radius: 8px;
    border: 1px solid var(--border-soft);

    font-weight: 700;
    cursor: pointer;

    transition: .3s;
}

.HomeReviewsButton:hover {
    background: #000;
}

.HomeReviewsButton:active {
    background: #000;
}
