/**
 * Product Review Base Styles
 *
 * Shared styles for all product review categories.
 * Category-specific files override these with their own accent colors.
 *
 * @package VividUltimate
 * @since 3.5.118
 */

/* ==========================================================================
   CSS Custom Properties (Category-specific overrides)
   ========================================================================== */

:root {
    /* Default accent - overridden by category CSS */
    --vae-accent-color: #0066c0;
    --vae-accent-hover: #004d99;
    --vae-accent-light: #e6f2ff;
    --vae-dark-bg: #2d2d3a;
    --vae-dark-text: #ffffff;
}

/* ==========================================================================
   Content Width Constraint
   ========================================================================== */

.vae-product-review .entry-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.vae-product-review .entry-content > * {
    max-width: 100%;
}

/* ==========================================================================
   Sticky Product Bar (Desktop Only)
   ========================================================================== */

.vae-sticky-product-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #2d2d3a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: none;
}

@media (min-width: 1025px) {
    .vae-sticky-product-bar {
        display: block;
    }
}

.vae-sticky-product-bar.vae-sticky-visible {
    transform: translateY(0);
}

.vae-sticky-product-bar.vae-sticky-hidden {
    transform: translateY(-100%);
}

.vae-sticky-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vae-sticky-product-info {
    flex: 1;
    min-width: 200px;
    max-width: 500px;
}

.vae-sticky-product-name {
    font-weight: 600;
    font-size: 16px;
    color: #fff !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 2px;
}

.vae-sticky-product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 4px;
    font-size: 14px;
}

.vae-sticky-price {
    font-weight: 700;
    color: #fff;
    background: var(--vae-dark-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

.vae-sticky-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
}

.vae-sticky-stars {
    color: #ff9800;
    letter-spacing: -1px;
}

.vae-star-full {
    color: #ff9800;
}

.vae-star-half {
    color: #ff9800;
    opacity: 0.6;
}

.vae-star-empty {
    color: #ddd;
}

.vae-sticky-rating-num {
    font-weight: 600;
    color: #fff;
}

.vae-sticky-review-count {
    color: #fff;
    font-size: 13px;
}

.vae-sticky-cta {
    flex-shrink: 0;
}

.vae-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.vae-sticky-btn:hover {
    background: linear-gradient(135deg, #ffaa00 0%, #ff7700 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.vae-sticky-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Body padding when sticky bar is active */
body.vae-sticky-active {
    padding-top: 70px;
}

/* ==========================================================================
   Comparison Tables
   ========================================================================== */

.vae-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vae-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.vae-comparison-table thead {
    background: var(--vae-dark-bg);
    color: var(--vae-dark-text);
}

.vae-comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.vae-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.vae-comparison-table tbody tr:hover {
    background: var(--vae-accent-light);
}

.vae-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Key Takeaways Box
   ========================================================================== */

.vae-key-takeaways {
    background: var(--vae-dark-bg);
    color: var(--vae-dark-text);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.vae-key-takeaways h3,
.vae-takeaways-title {
    margin: 0 0 15px 0;
    color: var(--vae-dark-text);
    font-size: 1.3em;
}

.vae-key-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

.vae-key-takeaways li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==========================================================================
   Quick Verdict Box
   ========================================================================== */

.vae-quick-verdict {
    background: #f8f9fa;
    border-left: 4px solid var(--vae-accent-color);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.vae-verdict-label {
    font-size: 18px;
    color: #111;
}

/* ==========================================================================
   Final Verdict Box
   ========================================================================== */

.vae-final-verdict {
    background: var(--vae-dark-bg);
    color: var(--vae-dark-text);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.vae-final-verdict h2,
.vae-final-verdict h3 {
    color: var(--vae-dark-text);
    margin-top: 0;
}

/* ==========================================================================
   Freshness Badge
   ========================================================================== */

.vae-freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #2e7d32;
    margin: 15px 0;
}

.vae-freshness-badge .vae-check {
    color: #4caf50;
}

/* ==========================================================================
   Amazon CTA Buttons
   ========================================================================== */

.vae-cta-wrapper {
    text-align: center;
    margin: 30px 0;
}

.vae-amazon-btn,
.vae-amazon-cta {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.vae-amazon-btn:hover,
.vae-amazon-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

/* ==========================================================================
   Pros/Cons Section
   ========================================================================== */

.vae-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .vae-pros-cons {
        grid-template-columns: 1fr;
    }
}

.vae-pros,
.vae-cons {
    padding: 20px;
    border-radius: 8px;
}

.vae-pros {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.vae-cons {
    background: #ffebee;
    border: 1px solid #ffcdd2;
}

.vae-pros h4,
.vae-cons h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.vae-pros h4 {
    color: #2e7d32;
}

.vae-cons h4 {
    color: #c62828;
}

/* ==========================================================================
   Praise/Complaints Sections
   ========================================================================== */

.vae-praise-section,
.vae-complaints-section {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.vae-praise-section {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.vae-complaints-section {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

/* ==========================================================================
   Specs Table
   ========================================================================== */

.vae-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.vae-specs-table th,
.vae-specs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.vae-specs-table th {
    background: #f5f5f5;
    font-weight: 600;
    width: 35%;
}

/* ==========================================================================
   About Reviewer
   ========================================================================== */

.vae-about-reviewer {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
}

.vae-about-reviewer h4 {
    margin: 0 0 10px 0;
    color: #333;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .vae-product-review .entry-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .vae-key-takeaways,
    .vae-final-verdict {
        padding: 20px;
        margin: 20px -15px;
        border-radius: 0;
    }

    .vae-quick-verdict {
        padding: 15px 20px;
    }

    .vae-amazon-btn,
    .vae-amazon-cta {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
}
