/* ==========================================================================
   TWD Vehicle Fitment - Category SEO, AEO & GEO Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Storefront: Top Content & Perks Bar
   -------------------------------------------------------------------------- */
.twdvf-category-top-intro {
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
}

.twdvf-category-top-intro__lead {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
}

.twdvf-category-perks-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.twdvf-category-perks-bar .twdvf-perk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.twdvf-category-perks-bar .twdvf-perk i {
    color: #2563eb;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Storefront: Bottom Content Section
   -------------------------------------------------------------------------- */
.twdvf-category-bottom-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
    background: #ffffff;
}

.twdvf-category-bottom-section .twdvf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.twdvf-category-bottom-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

.twdvf-category-bottom-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 18px;
}

/* Vehicle Cross-Link Grid */
.twdvf-category-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0 25px 0;
}

.twdvf-category-vehicle-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.twdvf-category-vehicle-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.twdvf-category-vehicle-card__name {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    margin-bottom: 6px;
}

.twdvf-category-vehicle-card__action {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
}

.twdvf-category-fitment-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #92400e;
}

/* Technical Specification Table (GEO) */
.twdvf-category-table-wrapper {
    overflow-x: auto;
    margin: 25px 0 35px 0;
}

.twdvf-category-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}

.twdvf-category-spec-table th {
    background: #1e293b;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
}

.twdvf-category-spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
}

.twdvf-category-spec-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* FAQ Accordion (AEO) */
.twdvf-category-faq-accordion {
    margin: 25px 0 40px 0;
}

.twdvf-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.twdvf-faq-item[open] {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.twdvf-faq-question {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    background: #f8fafc;
    position: relative;
    list-style: none;
    user-select: none;
}

.twdvf-faq-question::-webkit-details-marker {
    display: none;
}

.twdvf-faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #64748b;
    transition: transform 0.2s ease;
}

.twdvf-faq-item[open] .twdvf-faq-question::after {
    content: "−";
    color: #2563eb;
}

.twdvf-faq-answer {
    padding: 18px 20px;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.twdvf-faq-answer p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Admin Dashboard: Category SEO
   -------------------------------------------------------------------------- */
.twdvf-category-seo-admin {
    margin-top: 20px;
}

.twdvf-admin-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

.twdvf-category-summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.twdvf-summary-card {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.twdvf-summary-card__value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.twdvf-summary-card__label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twdvf-category-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.twdvf-table-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.twdvf-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.twdvf-badge--success {
    background: #dcfce7;
    color: #166534;
}

.twdvf-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.text-success {
    color: #16a34a;
}

.text-muted {
    color: #94a3b8;
}

.twdvf-btn-generate.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Regional Climate List */
.twdvf-category-regional-list {
    list-style: disc;
    margin: 15px 0 25px 25px;
}

.twdvf-category-regional-list li {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
    margin-bottom: 10px;
}

/* Mobile & Tablet Responsiveness */
@media screen and (max-width: 768px) {
    .twdvf-category-bottom-section {
        margin-top: 35px;
        padding-top: 25px;
    }

    .twdvf-category-bottom-content h2 {
        font-size: 19px;
    }

    .twdvf-category-vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .twdvf-category-vehicle-card {
        padding: 10px 12px;
    }

    .twdvf-category-vehicle-card__name {
        font-size: 13px;
    }

    .twdvf-category-vehicle-card__action {
        font-size: 11px;
    }

    .twdvf-category-spec-table th,
    .twdvf-category-spec-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .twdvf-category-perks-bar {
        flex-direction: column;
        gap: 8px;
    }

    .twdvf-category-summary-cards {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .twdvf-category-vehicle-grid {
        grid-template-columns: 1fr;
    }
}
