/**
 * Review Page Specific Styles
 * Complément au style.css global
 * ============================================
 */

/* ============================================
   ARTICLE HEADER - REVIEW
   ============================================ */
.article-header {
    background: var(--gradient-hero);
    color: var(--bg-white);
    padding: 2rem 0;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.article-header h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    font-size: 0.875rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
}

.article-meta-item i {
    color: var(--accent-light);
    font-size: 0.9rem;
}

/* Author Badge in Header */
.author-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background var(--transition-fast);
}

.author-badge:hover {
    background: rgba(255, 255, 255, 0.15);
}

.author-badge img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent-light);
}

.author-badge-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.author-badge-name {
    font-weight: 700;
    color: var(--bg-white);
    font-size: 0.9rem;
}

.author-badge-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TOC HORIZONTAL (Mobile)
   ============================================ */
.toc-horizontal {
    background: var(--bg-white);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 56px;
    z-index: 990;
    box-shadow: var(--shadow-xs);
}

.toc-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0.5rem;
}

.toc-scroll::-webkit-scrollbar {
    display: none;
}

.toc-scroll a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.toc-scroll a:hover,
.toc-scroll a.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.toc-scroll a i {
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .toc-horizontal {
        display: none;
    }
}

/* ============================================
   SUMMARY CARD
   ============================================ */
.summary-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.summary-card .product-image-main {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Pros & Cons */
.pros-cons {
    margin-top: 0.5rem;
}

.pros-title,
.cons-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-title {
    color: var(--success);
}

.pros-title i {
    color: var(--success);
}

.cons-title {
    color: var(--danger);
}

.cons-title i {
    color: var(--danger);
}

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

.pros-list li,
.cons-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.pros-list li:last-child,
.cons-list li:last-child {
    border-bottom: none;
}

.pros-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
}

.cons-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   MERCHANT BOX (Prices)
   ============================================ */
.merchant-box {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.merchant-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.merchant-box h4 i {
    color: var(--accent);
}

.merchant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: background var(--transition-fast);
}

.merchant-item:last-child {
    margin-bottom: 0;
}

.merchant-item:hover {
    background: var(--bg-soft);
}

.merchant-logo {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter var(--transition-fast);
}

.merchant-item:hover .merchant-logo {
    filter: grayscale(0%);
}

.merchant-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.merchant-item .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   QUICK CTA BANNER
   ============================================ */
.quick-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cta-text span:first-child {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.cta-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.quick-cta-banner .btn-cta {
    background: var(--secondary);
    border-color: var(--secondary);
    white-space: nowrap;
}

.quick-cta-banner .btn-cta:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    box-shadow: 0 4px 15px rgba(45, 62, 80, 0.3);
}

/* ============================================
   ARTICLE BODY
   ============================================ */
.article-body {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    color: var(--secondary);
}

.article-body h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-light);
}

.article-body p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.specs-table th,
.specs-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.specs-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary);
    width: 40%;
}

.specs-table td {
    color: var(--text-primary);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover {
    background: var(--bg-light);
}

/* ============================================
   RATING BOX
   ============================================ */
.rating-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-soft) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
}

.rating-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rating-max {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.rating-stars {
    color: var(--warning);
    font-size: 1.75rem;
    margin: 0.75rem 0;
}

.rating-stars i {
    margin: 0 0.1rem;
}

.rating-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 0.5rem;
}

/* ============================================
   CONCLUSION BOX
   ============================================ */
.conclusion-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
}

.conclusion-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
}

.conclusion-box h2 i {
    color: var(--primary);
}

.conclusion-box > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Verdict Grid */
.verdict-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 576px) {
    .verdict-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.verdict-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}

.verdict-item h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verdict-item.for h3 {
    color: var(--success);
}

.verdict-item.for h3 i {
    color: var(--success);
}

.verdict-item.against h3 {
    color: var(--danger);
}

.verdict-item.against h3 i {
    color: var(--danger);
}

.verdict-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verdict-item ul li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.verdict-item.for ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.verdict-item.against ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    margin: 2rem 0;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    border-bottom: none;
}

.faq-section h2 i {
    color: var(--primary);
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
    background: var(--bg-white);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--primary);
    transition: transform var(--transition-base);
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border: 1px solid var(--border-light);
}

.author-photo {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-light);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: var(--secondary);
}

.author-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.author-bio {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-links a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.author-links a:hover {
    color: var(--primary-dark);
}

@media (max-width: 575.98px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .author-links {
        justify-content: center;
    }
}

/* ============================================
   AFFILIATE DISCLOSURE
   ============================================ */
.affiliate-disclosure {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    line-height: 1.6;
}

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

.affiliate-disclosure a {
    color: var(--primary);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.sidebar-card h4 {
    font-size: 1rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h4 i {
    color: var(--accent);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.sidebar-list a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.sidebar-list a i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Hide sidebar TOC on mobile */
@media (max-width: 991.98px) {
    .sidebar-toc {
        display: none;
    }
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.main-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }
    
    .summary-card {
        padding: 1.25rem;
    }
    
    .rating-box {
        padding: 1.5rem;
    }
    
    .rating-score {
        font-size: 3rem;
    }
    
    .conclusion-box {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .article-header {
        padding: 1.25rem 0;
    }
    
    .author-badge {
        padding: 0.375rem 0.75rem;
    }
    
    .author-badge img {
        width: 30px;
        height: 30px;
    }
    
    .summary-card .product-image-main {
        max-height: 200px;
    }
    
    .merchant-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .merchant-logo {
        order: 1;
    }
    
    .merchant-price {
        order: 2;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .merchant-item .btn-cta {
        order: 3;
        width: 100%;
    }
    
    .quick-cta-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-cta-banner .btn-cta {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.main-content,
.summary-card,
.author-box,
.rating-box,
.conclusion-box {
    animation: fadeInUp 0.4s ease-out;
}

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .toc-horizontal,
    .quick-cta-banner,
    .merchant-box,
    .sidebar-card,
    .author-links,
    .btn-cta {
        display: none !important;
    }
    
    .main-content {
        box-shadow: none;
        padding: 0;
        border: none;
    }
    
    .article-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
    
    .article-header h1 {
        color: #000;
    }
}
