/* ==========================================================================
   FastKava Reviews — Bootstrap Enhanced Aesthetic
   ========================================================================== */

:root {
    --brand: #FB5300;
}

.desktop-only {
    display: block!important;
}

.mobile-only {
    display: none!important;
}

@media only screen and (max-width: 768px) {
    .desktop-only {
        display: none!important;
    }

    .mobile-only {
        display: block!important;
    }
}

.default-text {
    font-size: 16px;
    margin: 16px 0;
}

.breadcrumb {
    margin-top: 20px;
}

.breadcrumb-item a, .breadcrumb-item + .breadcrumb-item::before {
    color: black;
}

.breadcrumb-item.active {
    color: var(--mainColor);
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 65%;
    height: 25px;
    overflow: hidden;
}

/* Общий фон страницы */
.reviews-page {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ---------- Вкладки ---------- */
.reviews-page .nav-pills {
    gap: .5rem;
}

.reviews-page .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all .25s ease;
}

.reviews-page .nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.reviews-page .nav-pills .nav-link.active {
    background: linear-gradient(90deg, #ff6a00 0%, #ff9a3c 100%);
    color: #fff;
    border-color: #ff8122;
    box-shadow: 0 4px 15px rgba(255, 115, 0, .4);
}

/* ---------- Карточки отзывов ---------- */
.reviews-page #reviews-list > li .card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #f8f9fa;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: all .25s ease;
    overflow: hidden;
}

.reviews-page #reviews-list > li .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

/* Изображение */
.reviews-page .card-img-top {
    border-radius: 0;
    background: #000;
    min-height: 180px;
    object-fit: cover;
    opacity: .95;
    transition: opacity .3s;
    aspect-ratio: 1 / 1;
}

.reviews-page .card:hover .card-img-top {
    opacity: 1;
}

/* Метаданные */
.reviews-page .text-muted {
    color: #adb5bd !important;
}

.reviews-page .text-warning {
    color: #ffc107 !important;
}

/* Бейджи */
.review-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.reviews-page .badge {
    font-size: 0.75rem;
    letter-spacing: .2px;
    padding: .35rem .6rem;
}

.reviews-page .badge.text-bg-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(34, 197, 94, .4);
    border-radius: 60px;
}

.reviews-page .badge.text-bg-secondary {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 60px;
}

/* ---------- Детальная страница ---------- */

.review-view h1 {
    font-size: 2rem;
    font-weight: 600;
}

.review-view article {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    line-height: 1.65;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

/* Медиа */
.review-view .rv-media-grid img,
.review-view .rv-media-grid .rv-iframe {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    transition: transform .25s ease;
}

.review-view .rv-media-grid img:hover {
    transform: scale(1.03);
}

/* Verified */
.review-view .rv-detail-verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .4);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* ---------- Дополнительно ---------- */
.reviews-page a.link-primary,
.review-view a.link-primary {
    color: #ff8a2f !important;
    font-weight: 500;
}

.reviews-page a.link-primary:hover,
.review-view a.link-primary:hover {
    text-decoration: underline;
}

#load-spinner {
    color: #aaa;
}

/* Добавим немного glow */
.reviews-page #reviews-list > li .card:hover a.link-primary {
    color: #ffae42 !important;
}

/* Smooth fade-in эффект при загрузке карточек */
#reviews-list li {
    animation: fadeIn .5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link a {
    color: black;
    text-decoration: none;
}

.mr-4px {
    margin-right: 4px;
}

.custom-nav .nav-link {
    border-radius: 60px;
}

.review-card.card {
    border: 3px solid #FB5300 !important;
    border-radius: 16px;
    overflow: hidden;
}

.reviews-page audio {
    width: 100%;
    height: 36px;
    outline: none;
}

.reviews-page audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.06);
}

.reviews-page audio::-webkit-media-controls-enclosure {
    border-radius: 8px;
}

.preview-audio {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-absolute {
    position: absolute;
}

.position-relative {
    position: relative;
}

.svg-play-button {
    width: 24px;
    height: 24px;
}

/* ===== Detail: meta + chips ===== */
.review-view .rv-detail-meta {
    gap: .5rem;
}

.review-view .rv-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: #adb5bd;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    padding: .2rem .6rem;
    background: rgba(255, 255, 255, .06);
}

.review-view .rv-chip-verified {
    background: rgba(59, 130, 246, .15);
    border-color: rgba(59, 130, 246, .35);
    color: #3b82f6;
}

.reviews-page .badge.text-bg-gold,
.review-view .badge.text-bg-gold {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffb92f !important;
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 60px;
}

/* ===== Detail: breakdown rows ===== */
.review-view .rv-breakdown {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.review-view .rv-criterion {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.review-view .rv-crit-label {
    min-width: 160px;
    font-size: .92rem;
    color: #e9ecef;
}

.review-view .rv-crit-value {
    min-width: 96px;
    letter-spacing: .5px;
}

/* Тень карточек на детали (поддержка твоей палитры) */
.review-view .card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.review-card-body {
    display: flex;
    flex-direction: column;
}

.review-card-body .card-text {
    margin-top: auto;
}

/* ===== Header / Meta ===== */
.review-view .rv-header {
    margin-bottom: 1rem;
}

.review-view .rv-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.review-view .rv-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #6e7681;
}

.review-view .rv-stars {
    font-size: 1.1rem;
    color: #ffb400 !important;
}

.review-view .rv-score {
    font-weight: 600;
}

/* Chips */
.review-view .rv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .5rem;
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
}

.review-view .rv-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: #6e7681;
    background: #f7f7f9;
    border: 1px solid #e7e9ee;
    border-radius: 999px;
    padding: .25rem .6rem;
}

.review-view .rv-chip i {
    opacity: .8;
}

.review-view .rv-chip-verified {
    background: #eaf2ff;
    border-color: #d6e6ff;
    color: #2f6df6;
}

/* Article */
.review-view .rv-article .rv-text {
    line-height: 1.75;
}

/* Media */
.review-view .rv-h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .6rem;
}

.review-view .rv-media-grid img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.review-view .rv-iframe {
    border-radius: 12px;
    overflow: hidden;
}

.review-view .rv-photo {
    position: relative;
}

.review-view .rv-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

/* Aside sticky */
.review-view .rv-aside {
    position: sticky;
    top: 84px;
}

/* Breakdown */
.review-view .rv-breakdown {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.review-view .rv-criterion {
    display: grid;
    grid-template-columns: 1fr auto 36px;
    align-items: center;
    gap: .6rem;
}

.review-view .rv-crit-label {
    color: #2b2f33;
    font-size: .95rem;
}

.review-view .rv-crit-bar {
    position: relative;
    height: 8px;
    background: #eef1f5;
    border-radius: 6px;
    overflow: hidden;
}

.review-view .rv-crit-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #ff7a00, #ffb347);
    border-radius: 6px;
}

.review-view .rv-crit-num {
    font-variant-numeric: tabular-nums;
    color: #6e7681;
    font-size: .9rem;
}

/* Cards on detail page */
.review-view .card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 14px;
}

/* Links */
.review-view a.link-primary {
    color: #ff7a00 !important;
}

.review-view a.link-primary:hover {
    color: #ff8f2a !important;
    text-decoration: underline;
}


/* --- Зведений рейтинг за критеріями --- */
.reviews-summary {
    background: #fff;
    border: 3px solid var(--mainColor);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
    margin-bottom: 2rem;
}

.reviews-summary .criterion {
    margin-bottom: 1rem;
}

.reviews-summary .criterion-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #2d2d2d;
    margin-bottom: 4px;
}

.reviews-summary .criterion-label span:last-child {
    color: #888;
}

.reviews-summary .progress {
    height: 8px;
    background: #ffe8db;
    border-radius: 4px;
    overflow: hidden;
}

.reviews-summary .progress-bar {
    background: linear-gradient(90deg, #FB5300 0%, #ff8a2f 100%);
    border-radius: 4px;
    transition: width .5s ease;
    height: 100%;
}

.reviews-summary .verify-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #FB5300;
    cursor: pointer;
    user-select: none;
    margin-top: .75rem;
    text-decoration: none;
}

.reviews-summary .verify-toggle:hover {
    text-decoration: underline;
}

.reviews-summary .verify-toggle .chev {
    transition: transform .25s ease;
}

.reviews-summary .verify-toggle[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

.reviews-summary .verify-hint {
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 8px;
    line-height: 1.5;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    padding: 0 16px;
    margin-top: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .2s ease, margin .2s ease;
}

.reviews-summary .verify-hint[aria-hidden="false"] {
    opacity: 1;
    padding: 12px 16px;
    margin-top: 1rem;
}

.reviews-summary .progress {
    height: 8px;
    background: #ffe8db;
    border-radius: 4px;
    overflow: hidden;
}

.reviews-summary .progress-bar {
    background: linear-gradient(90deg, #FB5300 0%, #ff8a2f 100%);
    height: 100%;
    transition: width .5s ease;
}

.reviews-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-score-badge {
    display: flex;
    flex-direction: column;
}

.score-badge-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(251, 83, 0, .10), rgba(251, 83, 0, .04));
    border: 1px solid rgba(251, 83, 0, .25);
    box-shadow: inset 0 0 0 3px rgba(251, 83, 0, .06);
}

.score-badge .score {
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: .3px;
}

.score-badge .denom {
    align-self: flex-end;
    margin-bottom: 2px;
    color: #6e7681;
    font-weight: 600;
}

.score-badge .stars {
    font-size: 1.05rem;
    color: #ffb400 !important;
}

.score-badge .count {
    color: #6e7681 !important;
}

@media (max-width: 576px) {
    .score-badge .score {
        font-size: 1.8rem;
    }
}

.reviews-summary .verify-hint{
    background:#f8f9fa; color:#6c757d;
    border-radius:8px; line-height:1.5;
    overflow:hidden; opacity:0;
    max-height:0;
    padding:0 16px;
    margin-top:0;
    transition:max-height .35s ease, opacity .25s ease;
}

.reviews-summary .verify-hint[aria-hidden="false"]{
    opacity:1;
    padding:12px 16px;
    margin-top:1rem;
}

.reviews-summary .verify-toggle[aria-expanded="true"] .chev{ transform: rotate(180deg); }

@media only screen and (max-width: 911px) {

    .custom-nav {
        max-height: unset !important;
        flex-wrap: wrap !important;
        flex-direction: unset !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    .custom-nav .nav-link {
        background: transparent;
        color: var(--brand);
        border: 3px solid var(--brand);
        width: calc(50% - 4px);
    }

    .custom-nav .nav-link.active {
        background: var(--brand);
        color: white;
    }
}

.review-top-products { margin: 3rem 0; }
.review-top-products__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.review-top-products__grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.article-products__img {position: absolute;top: 0;left: 0;width: 100%;height: 100%; object-fit:cover; width:100%; border-radius:12px; background:#ffffff1f; padding: 15px}
.article-products__name { margin:.5rem 0; margin-top: auto; font-weight:700; color:white; display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; height:calc(2 * 24px);}
.article-products__price { margin-top:.25rem; font-weight:800; font-size:24px; color:var(--mainColor); margin-bottom:8px;}
.article-products__card {
    display: flex !important;
    height: auto!important;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    text-decoration: none;
    margin: 0 8px;
}

.review-top-products__slick .slick-track {
    display: flex;
}

#btn-load-more, #submit-btn {
    width: 320px;
}

@media (max-width: 576px) {

    #btn-load-more, #submit-btn {
        width: 100%;
    }

}


@media (max-width: 991.98px) {
    .display-only { display:none!important; }
    .mobile-only { display:flex!important;}
    .article-products__name {
        -webkit-line-clamp: 2;
        height: calc(2 * 24px);
    }
}
@media (min-width: 992px) {
    .mobile-only { display:none!important; }
}

.seo-text-block .seo-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}


#seo-text-wrapper.collapsed .seo-text-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}


#seo-text-wrapper .seo-text-more {
    max-height: 1000px;
    transition: max-height 0.7s ease-in;
}

#seo-text-toggle {
    cursor: pointer;
}



