/* ========== REVIEWS PAGE (/reviews/) ========== */
/* Design tokens: uses Neo Remastered theme variables so the customizer propagates. */

/* ----- Admin tabs selector (top of page, only for admins) ----- */
.ReviewsSelection {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ReviewsSelection > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-custom);
    background: var(--card);
    text-decoration: none;
    transition: var(--transition-ease-2);
}

.ReviewsSelection > a.ReviewsHome {
    border-radius: var(--br-10) 0 0 var(--br-10);
}

.ReviewsSelection > a.ReviewsSettings {
    border-radius: 0 var(--br-10) var(--br-10) 0;
}

.ReviewsSelection > a:hover {
    background: var(--button-hover);
}

.ReviewsSelection > a.active_rev {
    color: var(--span);
    background: var(--span-low);
}

/* ----- Hero ----- */
.reviews-hero {
    position: relative;
    padding: 26px;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-12);
    overflow: hidden;
}

.reviews-hero-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.reviews-hero-info {
    flex: 1;
    min-width: 0;
}

.reviews-hero-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-default);
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.reviews-hero-subtitle {
    margin: 0 0 16px;
    color: var(--text-custom);
    font-size: 14px;
    line-height: 1.6;
}

.reviews-hero-highlight {
    color: var(--span);
    font-weight: 700;
    text-decoration: none;
}

.reviews-social {
    display: flex;
    gap: 8px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--transparent-5-w);
    color: var(--text-custom);
    transition: var(--transition-ease-2);
}

.social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-btn:hover {
    color: var(--span);
    background: var(--span-low);
    border-color: var(--span-middle);
    transform: translateY(-1px);
}

/* ----- Score card (right side of hero) ----- */
.reviews-summary {
    position: relative;
    flex-shrink: 0;
    min-width: 220px;
    padding: 20px;
    background: linear-gradient(155deg, var(--span-low), var(--card) 70%);
    border: 1px solid var(--span-middle);
    border-radius: var(--br-12);
    overflow: hidden;
    text-align: center;
}

.reviews-summary::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 70px;
    height: 70px;
    background: var(--span);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(18px);
    pointer-events: none;
}

.reviews-summary-main {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.rating-number {
    font-size: 44px;
    font-weight: 800;
    color: var(--span);
    line-height: 1;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.rating-text {
    color: var(--text-default);
    font-size: 13px;
    font-weight: 700;
}

.rating-count {
    color: var(--text-custom);
    font-size: 11px;
}

.rating-stars {
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.1);
}

.rating-stars .gold {
    color: gold;
}

/* ----- CTA strip ----- */
.reviews-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-10);
}

.reviews-cta-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-custom);
    font-size: 13px;
    flex-wrap: wrap;
}

.reviews-cta-icon {
    width: 18px;
    height: 18px;
    color: var(--span);
    fill: currentColor;
    flex-shrink: 0;
}

.reviews-cta-bonus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--br-6);
    background: var(--money-bg);
    border: 1px solid rgba(244, 202, 128, 0.2);
    color: var(--money);
    font-size: 11px;
    font-weight: 700;
}

.reviews-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--br-8);
    background: var(--span);
    color: var(--text-default-invert);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-ease-2);
    white-space: nowrap;
}

.reviews-cta-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.reviews-cta-button:hover {
    filter: brightness(110%);
}

/* ----- List header ----- */
.reviews-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-default);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reviews-list-header svg {
    width: 18px;
    height: 18px;
    color: var(--span);
    fill: currentColor;
}

/* ----- Review cards grid ----- */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ReviewsBlockAllBlock {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    min-height: 180px;
    background: var(--card);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-10);
    transition: var(--transition-ease-2);
}

.ReviewsBlockAllBlock:hover {
    border-color: var(--span-half);
    transform: translateY(-2px);
}

.ReviewsBlockAllInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ReviewsBlockAllInfo > a > img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--button);
}

.ReviewsBlockAllInfo h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-default);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ReviewsBlockAllInfo h4 > a {
    color: inherit;
    text-decoration: none;
}

.ReviewsBlockAllInfo > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 11px;
    color: var(--text-custom);
}

.ReviewsBlockAllInfo .gold {
    color: gold;
}

.ReviewsBlockAllText {
    flex: 1;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-8);
    color: var(--text-custom);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.ReviewsBlockAllTime {
    color: var(--text-custom);
    font-size: 10px;
    opacity: 0.7;
}

.ReviewsBlockAllLike {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--red-10);
    border: 1px solid rgba(255, 73, 64, 0.15);
    border-radius: var(--br-6);
    color: var(--red);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-ease-2);
    position: absolute;
    right: 14px;
    bottom: 14px;
}

.ReviewsBlockAllLike svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.ReviewsBlockAllLike:hover {
    background: var(--red-20);
}

.ReviewsBlockAllLike.like_red {
    background: var(--red);
    color: var(--text-default);
}

.ReviewsBlockAllLike.like_red svg {
    fill: var(--text-default);
}

.ReviewsBlockAllLike.like_red:hover {
    background: var(--red-20);
    color: var(--red);
}

.ReviewsBlockAllSetting {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 5px;
}

.ReviewsBlockAllSetting > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--red-10);
    border: 1px solid rgba(255, 73, 64, 0.15);
    border-radius: var(--br-6);
    cursor: pointer;
    transition: var(--transition-ease-2);
}

.ReviewsBlockAllSetting > a > svg {
    fill: var(--red);
    width: 12px;
    height: 12px;
}

.ReviewsBlockAllSetting > a:hover {
    background: var(--red-20);
}

.ReviewsBlockAllBlock > .ReviewsBlockAllTime {
    margin-top: auto;
    padding-right: 70px;
}

/* ----- Pagination ----- */
#DataPagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#DataPagination > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--br-6);
    background: var(--button);
    color: var(--text-custom);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-ease-2);
}

#DataPagination > button:hover {
    background: var(--button-hover);
    color: var(--text-default);
}

#DataPagination > button:disabled {
    background: var(--span);
    color: var(--text-default-invert);
    cursor: default;
}

/* ----- Rating radio (stars input) — used in modal ----- */
.rating_reviews {
    overflow: hidden;
    display: inline-flex;
    flex-direction: row-reverse;
}

.rating_reviews > input {
    display: none;
}

.rating_reviews > label {
    float: right;
    cursor: pointer;
    font-size: 28px;
    line-height: 30px;
    opacity: 0.2;
    color: var(--text-default);
    transition: var(--transition-ease-2);
}

.rating_reviews > label:before {
    content: '\2605';
}

.rating_reviews > input:checked ~ label {
    color: gold;
    opacity: 1;
    text-shadow: 1px 1px #c60;
}

.rating_reviews > label:hover,
.rating_reviews > label:hover ~ label {
    color: gold;
    opacity: 1;
}

.rating_reviews > input:checked + label:hover,
.rating_reviews > input:checked + label:hover ~ label,
.rating_reviews > input:checked ~ label:hover,
.rating_reviews > input:checked ~ label:hover ~ label,
.rating_reviews > label:hover ~ input:checked ~ label {
    color: gold;
    text-shadow: 1px 1px goldenrod;
}

/* ----- Modal contents (uses site-wide .popup_modal shell) ----- */
.reviews-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reviews-modal-subtitle {
    margin: 0;
    color: var(--text-custom);
    font-size: 13px;
}

.reviews-modal-textarea {
    resize: vertical;
    width: 100%;
    min-height: 140px;
    padding: 14px;
    background: var(--input-form);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-10);
    color: var(--text-default);
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out;
}

.reviews-modal-textarea:focus {
    outline: none;
    border-color: var(--span-half);
}

.reviews-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.reviews-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--br-8);
    background: var(--span);
    color: var(--text-default-invert);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-ease-2);
}

.reviews-modal-submit:hover {
    filter: brightness(110%);
}

/* ----- Settings page (admin) — minimal styles kept for backward compat ----- */
.settings_block {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 800px) {
    .settings_block {
        grid-template-columns: repeat(2, 1fr);
    }
}

.settings_block .settings_div {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    background: var(--card);
    border-radius: var(--br-10);
}

.settings_block .settings_div h2 {
    margin: 0 0 15px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--br-10) var(--br-10) 0 0;
    color: var(--text-default);
    font-size: 16px;
    text-align: center;
    opacity: 0.7;
}

.settings_form > div {
    padding: 20px 10px 5px 10px;
    color: var(--span);
    font-weight: 700;
    font-size: 13px;
}

.settings_form input {
    width: 100%;
    padding: 0 12px;
    line-height: 40px;
    box-sizing: border-box;
    background: var(--bg);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-6);
    color: var(--text-default);
    transition: border-color 0.15s ease-in-out;
}

.settings_form input:focus {
    outline: none;
    border-color: var(--span-half);
}

.settings_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid var(--span);
    border-radius: var(--br-6);
    color: var(--span);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-ease-2);
}

.settings_btn.width100 {
    width: 100%;
    margin-top: 20px;
}

.settings_btn:hover {
    background: var(--span);
    color: var(--text-default-invert);
}

.settings_bans {
    display: grid;
    gap: 20px;
    height: max-content;
}

.settings_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    align-items: center;
}

.settings_form_label {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    padding: 12px;
    justify-content: space-between;
    background: var(--bg);
    border-radius: var(--br-6);
}

.settings_form_label > div {
    color: var(--text-custom);
    font-weight: 600;
    font-size: 13px;
}

.settings_form_label input[type=checkbox] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings_form_label > label {
    position: relative;
    display: block;
    width: 50px;
    height: 25px;
    background: var(--card);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-ease-2);
}

.settings_form_label label:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: var(--text-default);
    border-radius: 50%;
    transition: var(--transition-ease-2);
}

.settings_form_label input:checked + label {
    background: var(--green);
}

.settings_form_label input:checked + label:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}

#settings_reviews,
#settings_bans {
    padding: 0 15px 15px;
}

.settings_table {
    padding: 0 15px;
}

.settings_info {
    display: flex;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    align-items: center;
}

.settings_info_line,
.settings_info_value {
    font-size: 13px;
    color: var(--text-custom);
}

.id_ban_del:before {
    font-size: 15px;
    content: '\1F512';
    cursor: pointer;
}

.id_ban_del:hover:before {
    content: '\1F513';
}

.table-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.style-tabl-time {
    opacity: 0.5;
}

a.span-color {
    color: var(--span);
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 970px) {
    .reviews-hero-body {
        flex-direction: column;
        align-items: stretch;
    }
    .reviews-summary {
        min-width: 0;
    }
    .reviews-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .reviews-cta-button {
        width: 100%;
    }
    .reviews-list {
        grid-template-columns: 1fr;
    }
}
