/*
 Theme Name:   Best Digital Piano
 Theme URI:    https://bestdigitalpiano.org
 Description:  Custom affiliate child theme for BestDigitalPiano.org — digital pianos & musical gear reviews.
 Author:       BestDigitalPiano
 Author URI:   https://bestdigitalpiano.org
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  bestdigitalpiano
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --bdp-charcoal: #1a1a2e;
    --bdp-dark: #16213e;
    --bdp-navy: #0f3460;
    --bdp-gold: #d4a574;
    --bdp-gold-hover: #c4925f;
    --bdp-cta: #e8913a;
    --bdp-cta-hover: #d17e2d;
    --bdp-success: #27ae60;
    --bdp-warning: #f39c12;
    --bdp-light: #f8f9fa;
    --bdp-gray: #6c757d;
    --bdp-gray-light: #e9ecef;
    --bdp-border: #dee2e6;
    --bdp-white: #ffffff;
    --bdp-text: #2d3436;
    --bdp-text-light: #636e72;
    --bdp-star: #f1c40f;
    --bdp-radius: 8px;
    --bdp-radius-lg: 12px;
    --bdp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bdp-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --bdp-transition: all 0.2s ease;
}

/* ==========================================================================
   Global Overrides
   ========================================================================== */

body {
    color: var(--bdp-text);
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: var(--bdp-navy);
    transition: var(--bdp-transition);
}

a:hover {
    color: var(--bdp-cta);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bdp-charcoal);
    font-weight: 700;
    line-height: 1.3;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--bdp-charcoal) !important;
    background-color: var(--bdp-charcoal) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Override GeneratePress customizer colors - must use !important to beat inline customizer CSS */
.site-header .main-title a,
.site-header .main-title a:hover,
.site-header .main-navigation .main-nav ul li a,
.site-header .main-navigation .menu-toggle,
.site-header .main-navigation .menu-bar-items,
.site-header .mobile-menu-control-wrapper .menu-toggle {
    color: var(--bdp-white) !important;
}

/* Navigation background must also be dark to override customizer */
.main-navigation,
.main-navigation ul ul {
    background-color: var(--bdp-charcoal) !important;
}

/* Mobile hamburger button - transparent bg, no border, white icon */
.site-header .menu-toggle,
.site-header .mobile-menu-control-wrapper .menu-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--bdp-white) !important;
    padding: 8px;
}

.site-header .main-navigation .main-nav ul li a:hover,
.site-header .main-navigation .main-nav ul li.sfHover > a {
    color: var(--bdp-gold);
}

.site-header .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--bdp-gold);
}

/* ==========================================================================
   Product Box (Shortcode: [product_box])
   ========================================================================== */

.bdp-product-box {
    background: var(--bdp-white);
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius-lg);
    padding: 28px;
    margin: 30px 0;
    box-shadow: var(--bdp-shadow);
    transition: var(--bdp-transition);
    position: relative;
}

.bdp-product-box:hover {
    box-shadow: var(--bdp-shadow-hover);
}

.bdp-product-box.bdp-editors-choice {
    border-color: var(--bdp-gold);
    border-width: 2px;
}

.bdp-product-box.bdp-editors-choice::before {
    content: "Editor's Choice";
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--bdp-gold);
    color: var(--bdp-white);
    padding: 2px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bdp-product-box__header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.bdp-product-box__image {
    flex: 0 0 200px;
    text-align: center;
}

.bdp-product-box__image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bdp-radius);
}

.bdp-product-box__info {
    flex: 1;
}

.bdp-product-box__title {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--bdp-charcoal);
}

.bdp-product-box__subtitle {
    color: var(--bdp-text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.bdp-product-box__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bdp-product-box__score {
    background: var(--bdp-charcoal);
    color: var(--bdp-white);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 16px;
}

.bdp-product-box__stars {
    color: var(--bdp-star);
    font-size: 16px;
    letter-spacing: 2px;
}

.bdp-product-box__summary {
    color: var(--bdp-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bdp-product-box__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bdp-product-box__features li {
    font-size: 14px;
    color: var(--bdp-text);
    padding-left: 20px;
    position: relative;
}

.bdp-product-box__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bdp-success);
    font-weight: 700;
}

/* ==========================================================================
   Check Price Button
   ========================================================================== */

.bdp-check-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bdp-cta);
    color: var(--bdp-white);
    padding: 14px 32px;
    border-radius: var(--bdp-radius);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--bdp-transition);
    text-align: center;
    border: none;
    cursor: pointer;
}

.bdp-check-price:hover {
    background: var(--bdp-cta-hover);
    color: var(--bdp-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 145, 58, 0.35);
}

.bdp-check-price::after {
    content: "→";
    transition: var(--bdp-transition);
}

.bdp-check-price:hover::after {
    transform: translateX(3px);
}

.bdp-check-price--small {
    padding: 10px 20px;
    font-size: 14px;
}

.bdp-check-price--full {
    display: flex;
    justify-content: center;
    width: 100%;
}

.bdp-check-price__subtext {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

/* ==========================================================================
   Comparison Table (Shortcode: [comparison_table])
   ========================================================================== */

.bdp-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: var(--bdp-radius-lg);
    overflow: hidden;
    box-shadow: var(--bdp-shadow);
    font-size: 15px;
}

.bdp-comparison-table thead th {
    background: var(--bdp-charcoal);
    color: var(--bdp-white);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdp-comparison-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bdp-border);
    vertical-align: middle;
}

.bdp-comparison-table tbody tr:nth-child(even) {
    background: var(--bdp-light);
}

.bdp-comparison-table tbody tr:hover {
    background: #fff8f0;
}

.bdp-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.bdp-comparison-table .bdp-table-product {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.bdp-comparison-table .bdp-table-product img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.bdp-comparison-table .bdp-table-badge {
    display: inline-block;
    background: var(--bdp-gold);
    color: var(--bdp-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.bdp-comparison-table .bdp-table-rating {
    color: var(--bdp-star);
}

/* Responsive table wrapper */
.bdp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
}

/* ==========================================================================
   Pros & Cons Box (Shortcode: [pros_cons])
   ========================================================================== */

.bdp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.bdp-pros,
.bdp-cons {
    padding: 24px;
    border-radius: var(--bdp-radius-lg);
}

.bdp-pros {
    background: #f0faf4;
    border: 1px solid #c3e6cb;
}

.bdp-cons {
    background: #fdf0f0;
    border: 1px solid #f5c6cb;
}

.bdp-pros__title,
.bdp-cons__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdp-pros__title {
    color: #155724;
}

.bdp-cons__title {
    color: #721c24;
}

.bdp-pros ul,
.bdp-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bdp-pros li,
.bdp-cons li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.bdp-pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--bdp-success);
    font-weight: 700;
    font-size: 18px;
}

.bdp-cons li::before {
    content: "−";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================================================
   Verdict Box (Shortcode: [verdict_box])
   ========================================================================== */

.bdp-verdict {
    background: linear-gradient(135deg, var(--bdp-charcoal), var(--bdp-dark));
    color: var(--bdp-white);
    border-radius: var(--bdp-radius-lg);
    padding: 32px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.bdp-verdict::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15), transparent);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.bdp-verdict__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bdp-verdict__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bdp-gold);
    font-weight: 700;
}

.bdp-verdict__score {
    background: var(--bdp-gold);
    color: var(--bdp-charcoal);
    font-size: 28px;
    font-weight: 800;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdp-verdict__title {
    font-size: 22px;
    color: var(--bdp-white);
    margin: 0 0 12px;
}

.bdp-verdict__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bdp-verdict__ratings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.bdp-verdict__rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.bdp-verdict__rating-bar {
    flex: 0 0 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 10px;
}

.bdp-verdict__rating-fill {
    height: 100%;
    background: var(--bdp-gold);
    border-radius: 3px;
}

.bdp-verdict .bdp-check-price {
    background: var(--bdp-gold);
    color: var(--bdp-charcoal);
}

.bdp-verdict .bdp-check-price:hover {
    background: var(--bdp-gold-hover);
    color: var(--bdp-charcoal);
}

/* ==========================================================================
   Star Rating
   ========================================================================== */

.bdp-stars {
    display: inline-flex;
    gap: 2px;
}

.bdp-stars .star-filled {
    color: var(--bdp-star);
}

.bdp-stars .star-half {
    color: var(--bdp-star);
}

.bdp-stars .star-empty {
    color: var(--bdp-gray-light);
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.bdp-toc {
    background: var(--bdp-light);
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius-lg);
    padding: 24px 28px;
    margin: 30px 0;
}

.bdp-toc__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--bdp-charcoal);
}

.bdp-toc ol {
    margin: 0;
    padding: 0 0 0 20px;
}

.bdp-toc li {
    padding: 4px 0;
    font-size: 15px;
}

.bdp-toc a {
    color: var(--bdp-navy);
    text-decoration: none;
}

.bdp-toc a:hover {
    color: var(--bdp-cta);
    text-decoration: underline;
}

/* Sticky TOC on scroll */
.bdp-toc--sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* ==========================================================================
   Quick Summary / TLDR Box
   ========================================================================== */

.bdp-quick-summary {
    background: #f0f4ff;
    border-left: 4px solid var(--bdp-navy);
    border-radius: 0 var(--bdp-radius) var(--bdp-radius) 0;
    padding: 24px 28px;
    margin: 30px 0;
}

.bdp-quick-summary__title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bdp-navy);
    font-weight: 700;
    margin: 0 0 10px;
}

.bdp-quick-summary__text {
    font-size: 16px;
    color: var(--bdp-text);
    margin: 0;
}

.bdp-quick-summary--with-image .bdp-quick-summary__body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.bdp-quick-summary__image {
    flex: 0 0 200px;
    text-align: center;
}

.bdp-quick-summary__image img {
    width: 200px;
    border-radius: 6px;
    display: block;
    margin: 0 auto 10px;
}

.bdp-quick-summary__btn {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--bdp-gold);
    text-decoration: none;
    white-space: nowrap;
}

.bdp-quick-summary__btn:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .bdp-quick-summary--with-image .bdp-quick-summary__body {
        flex-direction: column;
    }
    .bdp-quick-summary__image {
        flex: none;
    }
}

/* ==========================================================================
   Category Archive Intro
   ========================================================================== */

.bdp-archive-intro {
    background: #f0f4ff;
    border-left: 4px solid var(--bdp-navy);
    border-radius: 0 var(--bdp-radius) var(--bdp-radius) 0;
    padding: 20px 24px;
    margin: 0 0 32px;
    font-size: 16px;
    color: var(--bdp-text);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.bdp-faq {
    margin: 40px 0;
}

.bdp-faq__item {
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.bdp-faq__question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bdp-white);
    transition: var(--bdp-transition);
    font-size: 16px;
}

.bdp-faq__question:hover {
    background: var(--bdp-light);
}

.bdp-faq__question::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--bdp-gray);
    transition: var(--bdp-transition);
}

.bdp-faq__item.active .bdp-faq__question::after {
    transform: rotate(45deg);
}

.bdp-faq__answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.bdp-faq__item.active .bdp-faq__answer {
    padding: 0 24px 18px;
    max-height: 500px;
}

/* ==========================================================================
   Affiliate Disclosure
   ========================================================================== */

.bdp-disclosure {
    background: var(--bdp-light);
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius);
    padding: 10px 16px;
    font-size: 15px;
    color: var(--bdp-text-light);
    margin: 0 0 20px;
    line-height: 1.4;
}

.bdp-disclosure strong {
    color: var(--bdp-text);
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.bdp-hero {
    background: linear-gradient(135deg, var(--bdp-charcoal) 0%, var(--bdp-navy) 100%);
    padding: 64px 48px;
    border-radius: var(--bdp-radius-lg);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bdp-hero::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bdp-hero h1 {
    color: var(--bdp-white);
    font-size: 2.4em;
    margin: 0 0 16px;
    line-height: 1.2;
}

.bdp-hero .bdp-hero__subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Trust Stats Row */
.bdp-trust-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bdp-trust-stat {
    text-align: center;
}

.bdp-trust-stat__number {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: var(--bdp-gold);
    line-height: 1;
}

.bdp-trust-stat__label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top Picks at a Glance */
.bdp-top-picks {
    background: var(--bdp-light);
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius-lg);
    padding: 28px;
    margin: 0 0 44px;
}

.bdp-top-picks__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bdp-text-light);
    font-weight: 700;
    margin: 0 0 20px;
}

.bdp-top-picks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bdp-top-pick {
    background: var(--bdp-white);
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius);
    padding: 20px 16px;
    text-align: center;
    transition: var(--bdp-transition);
}

.bdp-top-pick--featured {
    border-color: var(--bdp-gold);
    border-width: 2px;
}

.bdp-top-pick__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bdp-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.bdp-top-pick__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--bdp-charcoal);
    margin-bottom: 4px;
}

.bdp-top-pick__price {
    font-size: 13px;
    color: var(--bdp-text-light);
    margin-bottom: 14px;
}

.bdp-top-pick__review-link {
    display: block;
    font-size: 12px;
    color: var(--bdp-navy);
    text-decoration: none;
    margin-top: 8px;
}

.bdp-top-pick__review-link:hover {
    text-decoration: underline;
}

/* Color-Coded Score Badges */
.bdp-score--high {
    background: var(--bdp-success);
}

.bdp-score--mid {
    background: var(--bdp-warning);
    color: var(--bdp-charcoal);
}

.bdp-score--low {
    background: #dc3545;
}

/* Recent Posts Grid (Homepage Blog Section) */
.bdp-recent-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.bdp-recent-post-card {
    background: var(--bdp-white);
    border: 1px solid var(--bdp-border);
    border-radius: var(--bdp-radius-lg);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--bdp-transition);
}

.bdp-recent-post-card:hover {
    box-shadow: var(--bdp-shadow-hover);
    transform: translateY(-2px);
    color: inherit;
}

.bdp-recent-post-card__date {
    font-size: 12px;
    color: var(--bdp-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdp-recent-post-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bdp-charcoal);
    margin: 0 0 12px;
    line-height: 1.4;
}

.bdp-recent-post-card__read-more {
    font-size: 13px;
    color: var(--bdp-cta);
    font-weight: 600;
}

/* ==========================================================================
   Category Cards (Home / Archive)
   ========================================================================== */

.bdp-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    max-width: 960px;
}

.bdp-category-card {
    position: relative;
    background: var(--bdp-white);
    border-radius: var(--bdp-radius-lg);
    overflow: hidden;
    box-shadow: var(--bdp-shadow);
    transition: var(--bdp-transition);
}

.bdp-category-card__link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 0;
    text-indent: -9999px;
}

.bdp-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bdp-shadow-hover);
    color: inherit;
}

.bdp-category-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.bdp-category-card__body {
    padding: 20px;
}

.bdp-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--bdp-charcoal), var(--bdp-navy));
    border-radius: 50%;
    font-size: 22px;
    margin: 0 auto 14px;
    line-height: 1;
}

.bdp-category-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bdp-charcoal);
}

.bdp-category-card__excerpt {
    font-size: 14px;
    color: var(--bdp-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Post / Article Enhancements
   ========================================================================== */

.entry-content h2 {
    margin-top: 48px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bdp-gold);
}

.entry-content h3 {
    margin-top: 36px;
}

.entry-content img {
    border-radius: var(--bdp-radius);
}

/* Author box */
.bdp-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bdp-light);
    border-radius: var(--bdp-radius-lg);
    padding: 24px;
    margin: 40px 0;
}

.bdp-author-box__avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.bdp-author-box__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.bdp-author-box__title {
    font-size: 13px;
    color: var(--bdp-gold);
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdp-author-box__bio {
    font-size: 14px;
    color: var(--bdp-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Last updated notice */
.bdp-updated {
    font-size: 13px;
    color: var(--bdp-text-light);
    font-style: italic;
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--bdp-charcoal);
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: var(--bdp-gold);
}

/* Hide GP's auto-rendered page title on homepage - our bdp-hero has its own h1 */
.home .entry-header {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .bdp-hero {
        padding: 40px 24px;
    }

    .bdp-hero h1 {
        font-size: 1.8em;
    }

    .bdp-trust-stats {
        gap: 24px;
    }

    .bdp-trust-stat__number {
        font-size: 1.6em;
    }

    .bdp-top-picks__grid {
        grid-template-columns: 1fr;
    }

    .bdp-recent-posts {
        grid-template-columns: 1fr;
    }

    .bdp-product-box__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bdp-product-box__image {
        flex: none;
        width: 100%;
        max-width: 250px;
    }

    .bdp-product-box__features {
        grid-template-columns: 1fr;
    }

    .bdp-pros-cons {
        grid-template-columns: 1fr;
    }

    .bdp-verdict__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .bdp-verdict__ratings {
        grid-template-columns: 1fr;
    }

    .bdp-comparison-table {
        font-size: 13px;
    }

    .bdp-comparison-table thead th,
    .bdp-comparison-table tbody td {
        padding: 10px 12px;
    }

    .bdp-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bdp-check-price {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure content never touches window edge at any width */
.grid-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.inside-article {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (max-width: 480px) {
    .bdp-product-box {
        padding: 20px;
    }

    .bdp-verdict {
        padding: 24px;
    }

    .bdp-verdict__score {
        font-size: 22px;
        width: 52px;
        height: 52px;
    }
}
