/* =========================================
MyCarMarket
Version: v1.10.9
File: reviews/static/reviews/css/reviews.css
Description: Reviews Frontend Styling + Compact Ad Fix
========================================= */

.reviews-page,
.review-detail-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 18px;
}

.reviews-hero {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    padding: 44px 28px;
    border-radius: 22px;
    margin-bottom: 30px;
}

.reviews-hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.reviews-hero p {
    max-width: 760px;
    color: #d1d5db;
    line-height: 1.7;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.review-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.review-card-image,
.review-card-placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f3f4f6;
}

.review-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.review-card-body {
    padding: 18px;
}

.review-card-meta {
    font-size: 13px;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 8px;
}

.review-card-body h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.review-card-body p {
    color: #4b5563;
    line-height: 1.6;
}

.review-card-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #111827;
}

.empty-reviews {
    grid-column: 1 / -1;
    background: white;
    border-radius: 18px;
    padding: 35px;
    text-align: center;
}

.review-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #6b7280;
}

.review-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.review-article {
    background: white;
    border-radius: 22px;
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.review-detail-header {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.review-label {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 14px;
}

.review-detail-header h1 {
    font-size: 40px;
    color: #111827;
    margin-bottom: 16px;
}

.review-summary {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.8;
}

.review-rating-box {
    margin-top: 22px;
    background: #111827;
    color: white;
    display: inline-flex;
    flex-direction: column;
    padding: 16px 20px;
    border-radius: 16px;
}

.review-rating-box strong {
    font-size: 28px;
}

.review-rating-box span {
    color: #d1d5db;
    font-size: 13px;
}

.review-detail-image {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    max-height: 360px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 30px;
}

.pros-box,
.cons-box {
    background: #f9fafb;
    border-radius: 18px;
    padding: 22px;
}

.pros-box h2,
.cons-box h2,
.review-faq h2,
.related-reviews h2 {
    margin-bottom: 14px;
    color: #111827;
}

.pros-box ul,
.cons-box ul {
    padding-left: 0;
    list-style: none;
}

.pros-box li,
.cons-box li {
    margin-bottom: 10px;
    color: #374151;
}

.review-content {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.review-content p {
    margin-bottom: 18px;
}

.review-faq {
    margin-top: 34px;
    padding: 24px;
    border-radius: 18px;
    background: #f9fafb;
    line-height: 1.8;
}

.related-reviews {
    margin-top: 34px;
}

.related-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.related-review-card {
    padding: 18px;
    background: #f9fafb;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    display: flex;
    justify-content: space-between;
}

/* =========================================
SECTION: COMPACT AD MODE FOR REVIEWS
========================================= */

.review-banner-ad-section {
    margin: 28px 0 34px;
    padding: 0;
    width: 100%;
}

.review-banner-ad-section .ad-banner-compact {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

.review-banner-ad-section .ad-banner-compact a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.review-banner-ad-section .ad-banner-compact .custom-banner-ad {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 170px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.review-banner-ad-section .ad-banner-compact .ad-placeholder {
    min-height: 120px !important;
    border-radius: 14px !important;
}

@media (max-width: 900px) {
    .reviews-grid,
    .review-detail-header,
    .pros-cons-grid,
    .related-review-grid {
        grid-template-columns: 1fr;
    }

    .review-detail-header h1 {
        font-size: 30px;
    }

    .reviews-hero h1 {
        font-size: 30px;
    }

    .review-banner-ad-section .ad-banner-compact .custom-banner-ad {
        max-height: 120px !important;
    }
}

/* =========================================
MyCarMarket
Version: v1.11.0
File: reviews/static/reviews/css/reviews.css
Description: Reviews Mobile Polish
========================================= */

@media (max-width: 768px) {

    .reviews-page,
    .review-detail-page {
        padding: 16px 12px;
    }

    .reviews-hero {
        padding: 24px 18px;
        border-radius: 16px;
        margin-bottom: 22px;
    }

    .reviews-hero h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .reviews-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .review-article {
        padding: 18px;
        border-radius: 16px;
    }

    .review-detail-header h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .review-summary {
        font-size: 16px;
        line-height: 1.7;
    }

    .review-rating-box {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .review-detail-image {
        max-height: 240px;
    }

    .pros-box,
    .cons-box,
    .review-faq {
        padding: 18px;
    }

    .review-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .related-review-card {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================
SECTION START
Professional Review Pagination
========================================= */

.review-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 45px auto 20px;
    flex-wrap: wrap;
}

.review-pagination a,
.review-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.review-pagination a:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    transform: translateY(-1px);
}

.review-pagination .active {
    background: linear-gradient(135deg, #111827, #374151);
    border-color: #111827;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

@media (max-width: 600px) {
    .review-pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .review-pagination a,
    .review-pagination span {
        min-width: 38px;
        height: 38px;
        padding: 0 11px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* =========================================
SECTION END
Professional Review Pagination
========================================= */


.review-search-filter {
    max-width: 1180px;
    margin: 24px auto 30px;
    padding: 0 18px;
}

.review-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.review-search-form input {
    flex: 1;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.review-search-form input:focus {
    border-color: #111827;
}

.review-search-form button,
.review-clear-filter {
    height: 46px;
    border-radius: 14px;
    border: none;
    padding: 0 18px;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-clear-filter {
    background: #ef4444;
}

.review-make-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.review-make-filter a {
    white-space: nowrap;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.review-make-filter a.active,
.review-make-filter a:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

@media (max-width: 650px) {
    .review-search-form {
        flex-direction: column;
    }

    .review-search-form button,
    .review-clear-filter {
        width: 100%;
    }
}

/* =========================================
MyCarMarket
Version: v1.11.6
File: reviews/css/reviews.css
Description: Review Social Media Share Buttons
========================================= */

.review-share-box {
    margin-top: 22px;
}

.review-share-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

.review-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s ease;
}

.review-share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.review-share-btn.facebook {
    background: #1877f2;
}

.review-share-btn.whatsapp {
    background: #25d366;
}

.review-share-btn.twitter {
    background: #111827;
}

.review-share-btn.linkedin {
    background: #0a66c2;
}

@media (max-width: 600px) {
    .review-share-buttons {
        gap: 8px;
    }

    .review-share-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}