/* =============================================================================
   Tyres For Pages - Browse by Car Brand/Model
   ============================================================================= */

/* =============================================================================
   Hero Card (shared across all levels)
   ============================================================================= */

.tyres-for-hero-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    margin-bottom: 28px;
    overflow: hidden;
}

.tyres-for-hero-card h1 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0;
    padding: 18px 20px 0;
    line-height: 1.4em;
}

.tyres-for-hero-body {
    padding: 10px 20px 14px;
}

.tyres-for-hero-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
    margin: 0 0 8px;
}

.tyres-for-hero-body p:last-child {
    margin-bottom: 0;
}

.tyres-for-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 20px;
    background: linear-gradient(to right, #f8fafc, #e2e8f0);
    border-top: 1px solid #eef1f5;
}

.tyres-for-hero-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    font-size: 0.85rem;
    color: #555;
}

.tyres-for-hero-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.tyres-for-hero-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.tyres-for-hero-stat-divider {
    width: 1px;
    height: 28px;
    background: #cbd5e1;
}

.tyres-for-hero-btn {
    margin-top: 10px;
    display: inline-block;
}

/* =============================================================================
   Search Box Container
   ============================================================================= */

.tyres-for-search {
    max-width: 500px;
    margin-bottom: 24px;
}

/* =============================================================================
   Alphabetical Index (Level 1)
   ============================================================================= */

.tyres-for-alpha-index {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.tyres-for-alpha-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 1px solid #e2e8f0;
}

.tyres-for-alpha-link:hover {
    background: var(--tyre-reviews-blue, #0db1e7);
    color: #fff;
    border-color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: none;
}

.tyres-for-alpha-link--disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* =============================================================================
   Section Header (dark bar with blue left border)
   ============================================================================= */

.tyres-for-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #1e293b;
    border-left: 4px solid var(--tyre-reviews-blue, #0db1e7);
    border-radius: 10px 10px 0 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 32px;
}

.tyres-for-section-header:first-of-type {
    margin-top: 0;
}

.tyres-for-section-header i {
    color: var(--tyre-reviews-blue, #0db1e7);
}

.tyres-for-section-count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

/* =============================================================================
   Brand Card Grid (Level 1)
   ============================================================================= */

.tyres-for-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #f8fafc;
}

.tyres-for-brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    transition: background 0.15s, box-shadow 0.15s;
}

.tyres-for-brand-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
}

.tyres-for-brand-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.tyres-for-brand-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tyres-for-brand-card-count {
    font-size: 0.75rem;
    color: #64748b;
}

.tyres-for-brand-card-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--tyre-reviews-blue, #0db1e7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* =============================================================================
   Model List (Level 2)
   ============================================================================= */

.tyres-for-model-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
    overflow: hidden;
}

.tyres-for-model-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.tyres-for-model-card:last-child {
    border-bottom: none;
}

.tyres-for-model-card:hover {
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.tyres-for-model-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.tyres-for-model-card-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.tyres-for-model-card-badge i {
    font-size: 0.65rem;
}

/* =============================================================================
   Size Pills (Level 2 & 3)
   ============================================================================= */

.tyres-for-sizes {
    margin-bottom: 24px;
}

.tyres-for-sizes-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.tyres-for-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tyres-for-size-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tyres-for-size-pill:hover {
    border-color: var(--tyre-reviews-blue, #0db1e7);
    color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: none;
}

/* =============================================================================
   Review Cards (Level 3)
   ============================================================================= */

.tyres-for-reviews {
    margin-top: 8px;
}

.tyres-for-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
}

.tyres-for-review-card-header {
    margin-bottom: 10px;
}

.tyres-for-review-card-header a {
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.tyres-for-review-card-header a:hover {
    color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: underline;
}

.tyres-for-review-pct {
    font-weight: 700;
    color: var(--tyre-reviews-blue, #0db1e7);
}

.tyres-for-review-size {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-left: 4px;
}

.tyres-for-review-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
}

.tyres-for-review-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 10px;
}

.tyres-for-review-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* =============================================================================
   Encouragement / CTA Section
   ============================================================================= */

.tyres-for-cta {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

.tyres-for-cta a {
    color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: none;
}

.tyres-for-cta a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .tyres-for-hero-card h1 {
        font-size: 1.3rem;
        padding: 16px 16px 0;
    }

    .tyres-for-hero-body {
        padding: 8px 16px 12px;
    }

    .tyres-for-hero-stat {
        padding: 0 12px;
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }

    .tyres-for-brand-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 6px;
    }

    .tyres-for-section-header {
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .tyres-for-model-card {
        padding: 12px 16px;
    }

    .tyres-for-alpha-link {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .tyres-for-hero-card {
        border-radius: 10px;
    }

    .tyres-for-hero-card h1 {
        font-size: 1.15rem;
        padding: 14px 14px 0;
    }

    .tyres-for-hero-body {
        padding: 6px 14px 10px;
    }

    .tyres-for-hero-body p {
        font-size: 0.82rem;
    }

    .tyres-for-hero-stat {
        padding: 0 8px;
    }

    .tyres-for-hero-stat-value {
        font-size: 0.9rem;
    }

    .tyres-for-review-card {
        padding: 16px;
    }

    .tyres-for-model-card {
        padding: 10px 14px;
        gap: 10px;
    }

    .tyres-for-alpha-link {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}
