/* Single Review Page - Mobile-First E-E-A-T Optimized Design */

/* ========== CSS VARIABLES ========== */
:root {
    /* Enhanced color palette */
    --review-primary: #0d6efd;
    --review-success: #28a745;
    --review-warning: #ffc107;
    --review-danger: #dc3545;
    --review-info: #17a2b8;
    
    /* Rating colors */
    --grade-a: #28a745;
    --grade-b: #6c757d;
    --grade-c: #ffc107;
    --grade-d: #dc3545;
    --grade-f: #6f42c1;
    
    /* Authority colors */
    --authority-gold: #ffd700;
    --authority-blue: #0066cc;
    --trust-green: #00b894;
    
    /* Purchase button colors */
    --amazon-orange: #ff9900;
    --amazon-hover: #e68a00;
    --justbats-blue: #0066cc;
    --justbats-hover: #0052a3;
    --sideline-green: #00b67a;
    --sideline-hover: #009960;
}

/* ========== BASE LAYOUT ========== */
.review-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
}

/* ========== HERO SECTION ========== */
.review-hero {
    background: var(--bg-secondary);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb li {
    margin-right: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--review-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

/* Hero Main Content */
.hero-main {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.review-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.meta-item i {
    font-size: 1rem;
}

.authority-badge {
    background: linear-gradient(135deg, var(--authority-gold), #ffed4e);
    color: #1a1a1a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Media */
.hero-media {
    width: 100%;
}

.video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ========== RATING DASHBOARD ========== */
.rating-dashboard {
    background: var(--bg-primary);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rating-container {
    max-width: 1200px;
    margin: 0 auto;
}

.rating-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.rating-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--review-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rating-card:hover::before {
    opacity: 1;
}

.rating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rating-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.rating-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.rating-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--grade-a);
    margin-bottom: 1rem;
}

.rating-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--grade-a), var(--grade-b));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.overall-rating {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--review-primary), var(--primary-hover));
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.3);
}

.overall-score {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.overall-label {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Rating Dashboard Fallback */
.rating-placeholder {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.placeholder-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0;
}

.placeholder-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.review-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-item i {
    color: var(--trust-green);
    font-size: 1rem;
}

/* ========== PURCHASE SECTION ========== */
.purchase-section {
    background: var(--bg-secondary);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.purchase-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.purchase-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.purchase-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.purchase-btn.amazon {
    background: linear-gradient(135deg, var(--amazon-orange), var(--amazon-hover));
}

.purchase-btn.justbats {
    background: linear-gradient(135deg, var(--justbats-blue), var(--justbats-hover));
}

.purchase-btn.sideline {
    background: linear-gradient(135deg, var(--sideline-green), var(--sideline-hover));
}

.purchase-btn.dicks {
    background: linear-gradient(135deg, #005cbf, #004a99);
}

.btn-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.btn-content {
    text-align: left;
}

.btn-label {
    font-size: 1rem;
    font-weight: 700;
}

.btn-price {
    font-size: 0.875rem;
    opacity: 0.9;
}

.purchase-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.purchase-note i {
    color: var(--review-primary);
    margin-right: 0.5rem;
}

/* ========== MAIN CONTENT ========== */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

/* Specs Card */
.specs-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.specs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-title i {
    color: var(--review-primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.spec-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.spec-item:hover {
    transform: translateY(-2px);
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Compact styling for aggregate specs */
.spec-item:nth-child(2) .spec-value, /* Leagues */
.spec-item:nth-child(3) .spec-value, /* Drop weights */
.spec-item:last-child .spec-value { /* Price range */
    font-size: 0.875rem;
    font-weight: 600;
}

/* Review Article */
.review-article {
    max-width: 800px;
}

.review-section {
    margin-bottom: 3rem;
}

.review-section.intro .section-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 400;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--review-primary);
    font-size: 1.25rem;
}

.section-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.section-content p {
    margin-bottom: 1.25rem;
}

.section-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

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

.section-content li {
    margin-bottom: 0.5rem;
}

/* Special section styling */
.review-section.recommendations .section-content {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--grade-a);
}

.review-section.conclusion .section-content {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--review-primary);
}

/* ========== SIDEBAR ========== */
.review-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--review-primary);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--review-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Related Reviews */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.related-item:hover {
    background: var(--bg-tertiary);
    border-left-color: var(--review-primary);
    transform: translateX(4px);
    color: inherit;
    text-decoration: none;
}

.related-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.related-excerpt {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Authority Signals */
.authority-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.authority-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.authority-item i {
    color: var(--trust-green);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--review-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.newsletter-btn {
    background: var(--review-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ========== RELATED BATS SECTION ========== */
.related-bats-section {
    background: var(--bg-secondary);
    padding: 3rem 1rem;
    margin-top: 2rem;
}

.related-bats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-bats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-bat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-bat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bat-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.bat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bat-info {
    padding: 1.25rem;
    text-align: center;
}

.bat-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.bat-rating {
    display: inline-block;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.bat-rating.a { background: var(--grade-a); }
.bat-rating.b { background: var(--grade-b); }
.bat-rating.c { background: var(--grade-c); color: #1a1a1a; }
.bat-rating.d { background: var(--grade-d); }
.bat-rating.f { background: var(--grade-f); }

.bat-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--review-primary);
    margin-bottom: 1rem;
}

.bat-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--amazon-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bat-buy-btn:hover {
    background: var(--amazon-hover);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
@media (min-width: 768px) {
    .hero-main {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .content-wrapper {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .review-hero {
        padding: 3rem 2rem;
    }
    
    .rating-dashboard {
        padding: 3rem 2rem;
    }
    
    .purchase-section {
        padding: 3rem 2rem;
    }
    
    .content-wrapper {
        padding: 3rem 2rem;
    }
    
    .rating-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .specs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .purchase-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

/* ========== DARK MODE SUPPORT ========== */
body.dark-mode .rating-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .rating-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .overall-rating {
    background: linear-gradient(135deg, #4da3ff, #80c0ff);
}

body.dark-mode .specs-card,
body.dark-mode .sidebar-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .spec-item,
body.dark-mode .authority-item,
body.dark-mode .related-item {
    background: var(--bg-tertiary);
}

body.dark-mode .newsletter-input {
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

body.dark-mode .related-bat-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--review-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* ========== ANIMATION ENHANCEMENTS ========== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rating-card {
    animation: slideInUp 0.6s ease forwards;
}

.rating-card:nth-child(1) { animation-delay: 0.1s; }
.rating-card:nth-child(2) { animation-delay: 0.2s; }
.rating-card:nth-child(3) { animation-delay: 0.3s; }
.rating-card:nth-child(4) { animation-delay: 0.4s; }

.sidebar-card {
    animation: fadeIn 0.8s ease forwards;
}

.sidebar-card:nth-child(1) { animation-delay: 0.2s; }
.sidebar-card:nth-child(2) { animation-delay: 0.4s; }
.sidebar-card:nth-child(3) { animation-delay: 0.6s; }
.sidebar-card:nth-child(4) { animation-delay: 0.8s; }

/* ========== BAT VARIANTS SECTION ========== */
.variants-section {
    background: var(--card-bg);
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.variants-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.variants-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.variants-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Tab System */
.tab-headers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-header {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-header:hover {
    border-color: var(--review-primary);
    color: var(--review-primary);
}

.tab-header.active {
    background: var(--review-primary);
    border-color: var(--review-primary);
    color: white;
}

.variant-count {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Variants Grid */
.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.variant-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.variant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--review-primary);
}

/* Variant Image */
.variant-image {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.variant-header {
    margin-bottom: 1rem;
}

.variant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.variant-specs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.league-badge {
    background: var(--review-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.league-badge.bbcor {
    background: var(--grade-a);
}

.league-badge.usssa {
    background: var(--review-info);
}

.league-badge.usa {
    background: var(--review-warning);
}

.league-badge.fastpitch {
    background: var(--review-danger);
}

.drop-badge {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Mini Ratings */
.variant-ratings {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-mini {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rating-mini-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.rating-mini-grade {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--grade-a);
}

.rating-mini.overall .rating-mini-grade {
    font-size: 1rem;
    color: var(--review-primary);
}

/* Variant Purchase Links */
.variant-purchase {
    margin-top: 1rem;
}

.variant-purchase-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-purchase-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.variant-purchase-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.variant-purchase-btn.amazon:hover {
    background: var(--amazon-orange);
    border-color: var(--amazon-orange);
}

.variant-purchase-btn.justbats:hover {
    background: var(--justbats-blue);
    border-color: var(--justbats-blue);
}

.variant-purchase-btn.sideline:hover {
    background: var(--sideline-green);
    border-color: var(--sideline-green);
}

.variant-purchase-btn.dicks:hover {
    background: var(--review-danger);
    border-color: var(--review-danger);
}

.no-links {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
    margin: 0;
}

/* Variants responsive */
@media (max-width: 768px) {
    .tab-headers {
        gap: 0.5rem;
    }
    
    .tab-header {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .variants-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .variant-ratings {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    .rating-mini {
        padding: 0.4rem 0.2rem;
    }
    
    .rating-mini-label {
        font-size: 0.6rem;
    }
    
    .rating-mini-grade {
        font-size: 0.8rem;
    }
    
    .variant-purchase-links {
        justify-content: center;
    }
}

/* Bat Image in Rating Dashboard */
.rating-bat-image {
    width: 100%;
    max-width: 600px;
    height: 150px;
    margin: 1.5rem auto 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-bat-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== MULTI-VARIANT DASHBOARD STYLES ========== */
.rating-dashboard.multi-variant {
    background: var(--card-bg);
}

.rating-dashboard.multi-variant .rating-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* League Ratings Section */
.league-ratings {
    margin-bottom: 2rem;
}

.league-rating-group {
    margin-bottom: 2rem;
}

.league-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.variant-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.variant-summary {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.variant-drop {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.variant-grades {
    display: flex;
    gap: 0.75rem;
}

.grade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.grade-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grade-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.grade-item:hover .grade-badge {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grade-badge.power { 
    color: var(--review-danger);
    border-color: var(--review-danger);
}
.grade-badge.control { 
    color: var(--review-info);
    border-color: var(--review-info);
}
.grade-badge.quality { 
    color: var(--review-warning);
    border-color: var(--review-warning);
}
.grade-badge.value { 
    color: var(--review-success);
    border-color: var(--review-success);
}
.grade-badge.overall { 
    background: var(--review-primary);
    color: white;
    border-color: var(--review-primary);
}

/* Model Assessment Section */
.model-assessment {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.assessment-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.assessment-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.assessment-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.assessment-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.rating-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.rating-pending {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Variant Card Ring Styles */
.variant-card {
    position: relative;
    overflow: visible;
}

/* Corner badge for overall grade */
.variant-overall-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 52px;
    height: 52px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    border: 3px solid white;
}

/* Variant ratings with ring display */
.variant-card .variant-ratings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.variant-card .rating-ring {
    text-align: center;
    position: relative;
}

.variant-card .ring-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 4px;
    position: relative;
}

.variant-card .ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.variant-card .ring-background {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 5;
}

.variant-card .ring-progress {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

/* Ring colors based on score */
.variant-card .ring-power { stroke: #FF6B6B; }
.variant-card .ring-control { stroke: #4ECDC4; }
.variant-card .ring-quality { stroke: #9B59B6; }
.variant-card .ring-value { stroke: #F39C12; }

/* Grade in center of ring */
.variant-card .ring-grade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Metric label below ring */
.variant-card .rating-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1;
}

/* Adjust variant specs to make room for corner badge */
.variant-specs {
    padding-right: 50px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .variant-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .variant-summary {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .variant-grades {
        gap: 0.5rem;
    }
    
    .grade-label {
        font-size: 0.6rem;
    }
    
    .grade-badge {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
        min-width: 2.2rem;
    }
    
    .assessment-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Variant card ring adjustments for mobile */
    .variant-card .ring-container {
        width: 50px;
        height: 50px;
    }
    
    .variant-card .ring-grade {
        font-size: 14px;
    }
    
    .variant-overall-badge {
        width: 44px;
        height: 44px;
        font-size: 16px;
        top: -6px;
        right: -6px;
    }
    
    /* 2x2 grid on mobile */
    .variant-card .variant-ratings {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
}