/* =============================================================================
   Tyre Size Pages - Browse by Tyre Size
   ============================================================================= */

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

.tyre-size-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;
}

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

.tyre-size-hero-body {
    padding: 10px 20px 14px;
}

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

.tyre-size-hero-body p:last-child {
    margin-bottom: 0;
}

.tyre-size-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;
}

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

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

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

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

.tyre-size-hero-btn {
    margin-top: 10px;
    display: inline-block;
}

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

.tyre-size-search {
    max-width: 500px;
    margin-bottom: 24px;
}

/* =============================================================================
   Wheel Size Card Grid (Level 0)
   ============================================================================= */

.tyre-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.tyre-size-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.tyre-size-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-color: var(--tyre-reviews-blue, #0db1e7);
    text-decoration: none;
    color: inherit;
}

.tyre-size-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(36px * var(--scale, 1));
    height: calc(36px * var(--scale, 1));
    border-radius: 9px;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    flex-shrink: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tyre-size-card:hover .tyre-size-card-icon {
    border-color: var(--tyre-reviews-blue, #0db1e7);
    box-shadow: 0 0 0 2px rgba(13,177,231,0.12), inset 0 1px 0 rgba(255,255,255,0.75);
}

.tyre-size-card-icon svg {
    width: 100%;
    height: 100%;
}

.tyre-size-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.tyre-size-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

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

.tyre-size-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;
}

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

.tyre-size-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;
}

.tyre-size-section-header:first-of-type {
    margin-top: 0;
}

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

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

/* =============================================================================
   Profile Group Container (Level 1)
   ============================================================================= */

.tyre-size-profile-group {
    margin-bottom: 24px;
}

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

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

.tyre-size-profile-item:last-child {
    border-bottom: none;
}

.tyre-size-profile-item:hover {
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.tyre-size-profile-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

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

.tyre-size-profile-item-badge i {
    font-size: 0.65rem;
}

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

.tyre-size-reviews {
    margin-top: 8px;
}

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

.tyre-size-review-card-header {
    margin-bottom: 10px;
}

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

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

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

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

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

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

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

.tyre-size-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;
}

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

.tyre-size-cta a:hover {
    text-decoration: underline;
}

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

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

    .tyre-size-hero-body {
        padding: 8px 16px 12px;
    }

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

    .tyre-size-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }

    .tyre-size-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .tyre-size-card-icon {
        width: calc(32px * var(--scale, 1));
        height: calc(32px * var(--scale, 1));
    }

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

    .tyre-size-profile-item {
        padding: 12px 16px;
    }
}

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

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

    .tyre-size-hero-body {
        padding: 6px 14px 10px;
    }

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

    .tyre-size-hero-stat {
        padding: 0 8px;
    }

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

    .tyre-size-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .tyre-size-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .tyre-size-card-icon {
        width: calc(28px * var(--scale, 1));
        height: calc(28px * var(--scale, 1));
    }

    .tyre-size-card-name {
        font-size: 0.85rem;
    }

    .tyre-size-review-card {
        padding: 16px;
    }

    .tyre-size-profile-item {
        padding: 10px 14px;
        gap: 10px;
    }
}
