/* Variables: Defined in assets/css/variables.css */
/* Reviews Page Custom Styles - Premium Design */

/* Reviews Page Custom Styles */

body.page-template-reviews-page-template {
    background-color: #ffffff;
    /* White background like other pages */
    font-family: var(--cb-font-main);
    color: var(--cb-text-main);
}

/* Ensure breadcrumb area has white background */
body.page-template-reviews-page-template .cb-breadcrumbs-wrapper {
    background: #ffffff !important;
}

/* --- Layout & Common --- */
.reviews-page-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: var(--cb-font-weight-extrabold, 800);
    color: var(--cb-text-main);
    text-align: center;
    margin-bottom: var(--cb-spacing-2, 0.5rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title.white-text {
    color: #ffffff;
}

.section-desc {
    font-size: var(--cb-font-size-lg, 1.1rem);
    color: var(--cb-text-cloud);
    text-align: center;
    margin-bottom: var(--cb-spacing-12, 3.5rem);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: var(--cb-font-weight-medium);
}

/* Search Bar Container in Hero */
.reviews-hero-search-wrapper {
    max-width: 650px;
    margin: 40px auto 0;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.15);
}

/* Override search bar styles specifically for this wrapper if needed */
.reviews-search-wrapper .search-bar {
    width: 100%;
}

.reviews-search-wrapper .search-input {
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 1.1rem;
    padding-left: 20px;
}

.reviews-search-wrapper .search-input:focus {
    box-shadow: none;
    background: transparent;
}


/* --- Categories Section --- */
.reviews-categories-section {
    padding: 80px 0;
}

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

.reviews-cat-card {
    background: var(--cb-bg-card);
    padding: 40px 20px;
    border-radius: var(--cb-radius-md);
    box-shadow: var(--cb-shadow-sm);
    text-align: center;
    text-decoration: none;
    transition: var(--cb-transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cb-border-light);
    position: relative;
    overflow: hidden;
}

.reviews-cat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--cb-shadow-hover);
    border-color: var(--cb-border-light);
}

.reviews-cat-card .cat-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.reviews-cat-card:hover .cat-icon-wrapper {
    transform: scale(1.1);
}

.reviews-cat-card .cat-icon-wrapper svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

/* Specific Category Colors - Matching Homepage Tokens */
.reviews-cat-card.cat-mobile .cat-icon-wrapper {
    background: var(--cb-cat-mobile);
    box-shadow: var(--cb-shadow-glow-mobile);
}

.reviews-cat-card.cat-laptop .cat-icon-wrapper {
    background: var(--cb-cat-laptop);
    box-shadow: var(--cb-shadow-glow-laptop);
}

.reviews-cat-card.cat-watch .cat-icon-wrapper {
    background: var(--cb-cat-watch);
    box-shadow: var(--cb-shadow-glow-watch);
}

.reviews-cat-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cb-text-main);
    margin: 0;
}

/* Link area hidden by default to match cleaner homepage look, or kept for subtle interactive hint */
.reviews-cat-card .cat-link-text {
    display: none;
}


/* --- Latest Reviews Section --- */
.reviews-latest-section {
    padding: 80px 0;
    background-color: #fff;
}


/* --- Why Choose Us Section --- */
.reviews-features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 0;
    /* Or keep full width */
    position: relative;
    /* If you want it contained like Home CTA: */
    /* width: calc(100% - 40px); margin-left: 20px; border-radius: 30px; */
}

/* Optional: Make it contained like the homepage example */
@media (min-width: 768px) {
    .reviews-features-section {
        max-width: 1240px;
        margin: 60px auto;
        border-radius: 30px;
        box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    }
}

.reviews-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card .feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon-wrapper svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {

    /* Container comfort */
    .reviews-page-wrapper .container {
        padding: 0 16px;
    }

    /* Category cards */
    .reviews-cat-grid {
        gap: 20px;
    }

    .reviews-cat-card {
        padding: 36px 20px;
    }

    .reviews-cat-card h3 {
        font-size: 1.2rem;
    }

    /* Category cards - keep 2 columns on mobile */
    .reviews-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Features grid - single column for readability */
    .reviews-features-grid {
        grid-template-columns: 1fr;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero subtitles */
    .reviews-hero-subtitle,
    .reviews-hero-subtitle-2 {
        font-size: 2rem;
    }

    /* Section improvements */
    .section-title {
        font-size: 1.65rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .section-desc {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* Features section */
    .reviews-features-section {
        margin: 40px 16px;
        border-radius: 20px;
        padding: 36px 18px;
    }

    .feature-card {
        padding: 28px 18px;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Search bar */
    .reviews-hero-search-wrapper {
        margin: 28px 12px 0;
        padding: 8px;
    }

    .reviews-search-wrapper .search-input {
        font-size: 1rem;
    }

    /* Buttons */
    .rc-btn,
    .rc-btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {

    /* Container */
    .reviews-page-wrapper .container {
        padding: 0 12px;
    }

    /* Category cards - maintain 2 columns */
    .reviews-cat-grid {
        gap: 16px;
    }

    .reviews-cat-card {
        padding: 30px 16px;
    }

    .reviews-cat-card .cat-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .reviews-cat-card .cat-icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

    .reviews-cat-card h3 {
        font-size: 1.1rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    /* Features section */
    .reviews-features-section {
        margin: 32px 12px;
        padding: 32px 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-card .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }

    .feature-card .feature-icon-wrapper svg {
        width: 26px;
        height: 26px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* Search bar */
    .reviews-hero-search-wrapper {
        margin: 24px 8px 0;
        padding: 6px;
    }

    .reviews-search-wrapper .search-input {
        font-size: 0.95rem;
    }

    /* Buttons */
    .rc-btn,
    .rc-btn-primary {
        padding: 11px 20px;
        font-size: 0.95rem;
        min-height: 46px;
    }
}

/* --- Shared Button Utilities --- */
.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--cb-radius-md);
    font-weight: var(--cb-font-weight-bold);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--cb-transition-smooth);
    cursor: pointer;
    border: none;
}

.rc-btn-primary {
    background: var(--cb-gradient-primary);
    color: var(--cb-text-inverse);
    box-shadow: var(--cb-shadow-md);
}

.rc-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--cb-shadow-glow-primary);
    color: var(--cb-text-inverse);
    filter: brightness(1.05);
}