/* Brand Article Styles */

/* Hero Card */
.brand-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.brand-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.brand-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.brand-logo-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-hero-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}
.brand-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}
.brand-pill svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

/* Stats Bar */
.brand-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table of Contents */
.brand-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.brand-toc h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1e293b;
}
.brand-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}
.brand-toc li {
    margin-bottom: 0.5rem;
}
.brand-toc a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
}
.brand-toc a:hover {
    text-decoration: underline;
}

/* Section Headers */
.brand-article h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}
.brand-article h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #334155;
    margin: 1.5rem 0 0.75rem;
}

/* Tire Review Card */
.tire-review {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s;
}
.tire-review:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tire-review-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
.tire-review-img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tire-review-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.tire-review-title {
    flex: 1;
}
.tire-review-title h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}
.tire-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

/* Score Bars */
.score-bars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}
.score-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.score-bar-label {
    font-size: 0.8rem;
    color: #64748b;
    width: 80px;
    flex-shrink: 0;
}
.score-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}
.score-bar-value {
    font-size: 0.85rem;
    font-weight: 700;
    width: 35px;
    text-align: right;
    flex-shrink: 0;
}

/* Score Colors */
.score-green { color: #16a34a; }
.score-yellow { color: #d97706; }
.score-red { color: #dc2626; }
.score-bar-fill.fill-green { background: #16a34a; }
.score-bar-fill.fill-yellow { background: #d97706; }
.score-bar-fill.fill-red { background: #dc2626; }

/* Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}
.score-badge.bg-green { background: #dcfce7; color: #16a34a; }
.score-badge.bg-yellow { background: #fef3c7; color: #d97706; }
.score-badge.bg-red { background: #fecaca; color: #dc2626; }
.score-badge.bg-gray { background: #f1f5f9; color: #94a3b8; }

/* Season Badges */
.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.season-all_season, .season-all-season {
    background: #dcfce7;
    color: #166534;
}
.season-summer {
    background: #fef3c7;
    color: #92400e;
}
.season-winter {
    background: #dbeafe;
    color: #1e40af;
}

/* EU Label Badges */
.eu-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.eu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.eu-badge-label {
    font-weight: 400;
    opacity: 0.8;
}
.eu-a { background: #dcfce7; color: #166534; }
.eu-b { background: #d1fae5; color: #065f46; }
.eu-c { background: #fef3c7; color: #92400e; }
.eu-d { background: #fed7aa; color: #9a3412; }
.eu-e { background: #fecaca; color: #991b1b; }
.eu-f { background: #fca5a5; color: #7f1d1d; }
.eu-g { background: #ef4444; color: #fff; }

/* Comparison Table */
.comparison-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.comparison-table thead {
    background: #f8fafc;
}
.comparison-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.comparison-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.comparison-table tbody tr:hover {
    background: #f8fafc;
}
.comparison-table .tire-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.table-tire-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8fafc;
    flex-shrink: 0;
}
.table-tire-name {
    font-weight: 600;
    color: #1e293b;
}

/* Competition Cards */
.competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.comp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}
.comp-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.comp-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.comp-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8fafc;
    padding: 4px;
}
.comp-card-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.comp-card-info p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}
.comp-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}
.comp-card-stat {
    display: flex;
    flex-direction: column;
}
.comp-card-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
}
.comp-card-stat-value {
    font-weight: 700;
    color: #1e293b;
}

/* FAQ Section */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    border: none;
    width: 100%;
    text-align: left;
}
.faq-question:hover {
    background: #f8fafc;
}
.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #94a3b8;
}
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.25rem 1rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Verdict Box */
.verdict-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border: 2px solid #bbf7d0;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}
.verdict-box h3 {
    margin: 0 0 1rem;
    color: #166534;
}
.verdict-box p {
    color: #334155;
    line-height: 1.7;
}

/* Related Brands */
.related-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.related-brand-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.related-brand-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.related-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}
.related-brand-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
}

/* About Section */
.brand-about {
    line-height: 1.8;
    color: #374151;
    font-size: 0.95rem;
}
.brand-about p {
    margin-bottom: 1rem;
}

/* Article Container */
.brand-article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Ad Container */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
    min-height: 90px;
}

/* Review text */
.tire-review-text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 0.75rem;
}
.tire-review-text p {
    margin-bottom: 0.5rem;
}

/* Sizes info */
.tire-sizes-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-hero {
        padding: 2rem 1.25rem;
    }
    .brand-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .brand-meta-pills {
        justify-content: center;
    }
    .brand-hero-info h1 {
        font-size: 1.5rem;
    }
    .brand-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .tire-review-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .score-bars {
        grid-template-columns: 1fr;
    }
    .competition-grid {
        grid-template-columns: 1fr;
    }
    .comparison-table {
        font-size: 0.8rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.65rem;
    }
    .brand-article-container {
        padding: 1rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .brand-logo-wrap {
        width: 80px;
        height: 80px;
    }
    .brand-hero-info h1 {
        font-size: 1.25rem;
    }
    .brand-stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .stat-card {
        padding: 0.75rem;
    }
    .stat-value {
        font-size: 1.35rem;
    }
    .related-brands-grid {
        grid-template-columns: 1fr 1fr;
    }
}
