/**
 * Frontend Styles - Scooter Compatibility Filter
 * Modern, app-style black & white design
 */

/* Wrapper to isolate filter from rest of page */
.scf-wrapper {
    width: 100%;
    max-width: 100%;
    clear: both;
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    box-sizing: border-box;
}

.scf-wrapper * {
    box-sizing: border-box;
}

@keyframes scfFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Color Palette */
:root {
    --scf-primary: #374151;
    --scf-primary-hover: #4b5563;
    --scf-secondary: #64748b;
    --scf-background: #f8fafc;
    --scf-surface: #ffffff;
    --scf-border: #e2e8f0;
    --scf-text-dark: #1e293b;
    --scf-text-muted: #64748b;
    --scf-shadow: rgba(15, 23, 42, 0.08);
    --scf-shadow-hover: rgba(15, 23, 42, 0.12);
}

/* Mobile Toggle Button - Modern App Style */
.scf-mobile-toggle {
    display: none !important; /* Hidden by default on ALL screens */
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
}

.scf-mobile-toggle-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.scf-mobile-toggle .scf-toggle-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.scf-mobile-toggle .scf-toggle-text {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scf-mobile-toggle .scf-toggle-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    opacity: 0.9;
}

.scf-mobile-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scf-mobile-toggle[aria-expanded="true"] .scf-toggle-arrow {
    transform: rotate(180deg);
}

.scf-mobile-toggle:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45), 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.scf-mobile-toggle:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Mobile-specific styles - ONLY show on mobile */
@media (max-width: 767px) {
    /* Show mobile toggle button ONLY on mobile */
    .scf-mobile-toggle {
        display: flex !important;
    }
    
    /* More space between text and arrow on mobile */
    .scf-mobile-toggle .scf-toggle-arrow {
        margin-left: 16px;
    }
    
    /* Hide filter by default on mobile */
    .scf-filter-container {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-bottom: 0 !important;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
    }
    
    /* Show filter when open */
    .scf-filter-container.scf-filter-open {
        max-height: 2000px;
        opacity: 1;
        margin-bottom: 32px !important;
    }
}

/* SEO Content Box - Premium Gray Style */
.scf-seo-content {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid var(--scf-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px var(--scf-shadow);
    overflow: hidden;
    box-sizing: border-box;
    animation: scfFadeIn 0.5s ease-out;
    position: relative;
    z-index: 1 !important;
    isolation: isolate;
    clear: both;
}

.scf-seo-inner {
    max-width: 100%;
    position: relative;
}

.scf-seo-title {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--scf-text-dark);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.scf-seo-description {
    color: var(--scf-text-muted);
}

.scf-seo-description p {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--scf-secondary);
}

.scf-seo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 16px !important;
    padding-top: 16px;
    border-top: 1px solid var(--scf-border);
    color: var(--scf-text-muted);
}

.scf-seo-breadcrumb span {
    font-weight: 600;
    color: var(--scf-primary);
}

.scf-filter-container {
    background: var(--scf-surface);
    border: 1px solid var(--scf-border);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--scf-shadow);
    margin-bottom: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: scfFadeIn 0.4s ease-out;
    position: relative;
    z-index: 1 !important;
    isolation: isolate;
    clear: both;
}

.scf-filter-container:hover {
    box-shadow: 0 8px 24px var(--scf-shadow-hover);
    border-color: #cbd5e1;
}

.scf-filter-inner {
    padding: 28px;
    background: linear-gradient(to bottom, var(--scf-surface) 0%, var(--scf-background) 100%);
}

/* Header - Premium Style */
.scf-filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--scf-border);
}

.scf-filter-icon {
    width: 22px;
    height: 22px;
    color: var(--scf-primary);
}

.scf-filter-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--scf-text-dark);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* Form */
.scf-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scf-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.scf-filter-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scf-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--scf-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Select Wrapper - Premium Style */
.scf-select-wrapper {
    position: relative;
}

.scf-filter-select {
    width: 100%;
    padding: 14px 44px 14px 18px;
    font-size: 16px;
    color: var(--scf-text-dark);
    background: var(--scf-surface);
    border: 1.5px solid var(--scf-border);
    border-radius: 10px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
}

.scf-filter-select:hover {
    background: var(--scf-background);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.scf-filter-select:focus {
    outline: none;
    border-color: var(--scf-primary);
    box-shadow: 0 0 0 4px rgba(55, 65, 81, 0.1);
    background: var(--scf-surface);
}

.scf-filter-select:disabled {
    background: var(--scf-background);
    border-color: var(--scf-border);
    color: var(--scf-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.scf-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--scf-secondary);
    transition: transform 0.2s ease;
}

.scf-select-wrapper:has(.scf-filter-select:focus) .scf-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Actions */
.scf-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scf-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.scf-filter-btn svg {
    width: 18px;
    height: 18px;
}

/* Search Button - Modern Blue (All Devices) */
.scf-filter-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scf-filter-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.scf-filter-btn-primary:active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3) !important;
}

.scf-filter-btn-primary * {
    color: #ffffff !important;
}

/* Keep SVG strokes white but don't fill them */
.scf-filter-btn-primary svg {
    color: #ffffff !important;
}

.scf-filter-btn-primary svg path,
.scf-filter-btn-primary svg circle {
    stroke: #ffffff !important;
    fill: none !important;
}

/* Clear Button - Light Gray */
.scf-filter-btn-secondary {
    background: var(--scf-background);
    color: var(--scf-text-dark);
    border: 1.5px solid var(--scf-border);
}

.scf-filter-btn-secondary:hover {
    background: var(--scf-border);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--scf-shadow);
}

/* Active Filter Display - Premium Gray */
.scf-filter-active {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--scf-primary) 0%, var(--scf-primary-hover) 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scf-filter-active::before {
    content: "✓";
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.scf-active-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scf-active-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scf-seo-content {
        padding: 24px;
        border-radius: 14px;
        margin-bottom: 20px;
    }
    
    .scf-seo-title {
        font-size: 24px;
    }
    
    .scf-seo-description p {
        font-size: 15px;
    }
    
    .scf-seo-breadcrumb {
        flex-wrap: wrap;
        font-size: 13px;
    }
    
    .scf-filter-container {
        border-width: 2px;
        border-radius: 14px;
    }
    
    .scf-filter-inner {
        padding: 22px;
    }
    
    .scf-filter-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .scf-filter-title {
        font-size: 17px;
    }
    
    .scf-filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scf-filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .scf-filter-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .scf-filter-active {
        padding: 14px 18px;
        margin-top: 18px;
    }
}

@media (max-width: 480px) {
    .scf-seo-content {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .scf-seo-title {
        font-size: 20px;
    }
    
    .scf-seo-description p {
        font-size: 14px;
    }
    
    .scf-seo-breadcrumb {
        font-size: 12px;
        gap: 6px;
    }
    
    .scf-filter-container {
        border-radius: 12px;
        margin-bottom: 24px;
    }
    
    .scf-filter-inner {
        padding: 18px;
    }
    
    .scf-filter-header {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .scf-filter-icon {
        width: 20px;
        height: 20px;
    }
    
    .scf-filter-title {
        font-size: 16px;
    }
    
    .scf-filter-label {
        font-size: 11px;
    }
    
    .scf-filter-select {
        padding: 12px 40px 12px 16px;
        font-size: 15px;
    }
    
    .scf-filter-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .scf-filter-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .scf-filter-active {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .scf-active-label {
        font-size: 12px;
    }
    
    .scf-active-value {
        font-size: 15px;
    }
}

/* Brand and Model Information Sections */
.scf-brand-info,
.scf-model-info {
    margin-top: 30px;
    padding: 25px;
    background: var(--scf-surface);
    border: 1px solid var(--scf-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--scf-shadow);
}

.scf-brand-info h2,
.scf-model-info h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--scf-text-dark);
    border-bottom: 2px solid var(--scf-border);
    padding-bottom: 12px;
}

.scf-brand-info h3,
.scf-model-info h3 {
    margin: 25px 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--scf-text-dark);
}

.scf-brand-description,
.scf-model-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--scf-text-dark);
}

.scf-brand-description p,
.scf-model-description p {
    margin: 0 0 15px 0;
}

.scf-brand-description p:last-child,
.scf-model-description p:last-child {
    margin-bottom: 0;
}

.scf-brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--scf-border);
}

.scf-meta-item {
    display: flex;
    gap: 6px;
    align-items: baseline;
    color: var(--scf-text-dark);
    font-size: 15px;
}

.scf-meta-item strong {
    color: var(--scf-text-muted);
    font-weight: 600;
}

.scf-meta-item a {
    color: var(--scf-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.scf-meta-item a:hover {
    color: var(--scf-primary-hover);
    text-decoration: underline;
}

.scf-model-specs {
    margin-top: 25px;
}

.scf-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.scf-specs-table tr {
    border-bottom: 1px solid var(--scf-border);
}

.scf-specs-table tr:last-child {
    border-bottom: none;
}

.scf-specs-table td {
    padding: 12px 15px 12px 0;
    font-size: 15px;
    vertical-align: top;
}

.scf-specs-table td:first-child {
    width: 40%;
    color: var(--scf-text-muted);
}

.scf-specs-table td:last-child {
    width: 60%;
    color: var(--scf-text-dark);
}

.scf-model-issues {
    margin-top: 25px;
    padding: 20px;
    background: #fef3cd;
    border: 1px solid #f0e3a4;
    border-radius: 8px;
}

.scf-model-issues h3 {
    margin: 0 0 15px 0;
    font-size: 17px;
    color: #856404;
}

.scf-issues-content {
    color: #856404;
    line-height: 1.6;
}

.scf-issues-content p {
    margin: 0 0 12px 0;
}

.scf-issues-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   COLLAPSE/EXPAND TOGGLE FOR DETAILS
   ======================================== */

.scf-details-toggle-wrapper {
    margin-top: 20px;
    margin-bottom: 0;
}

.scf-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--scf-border);
    border-radius: 8px;
    color: var(--scf-text-dark) !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scf-details-toggle * {
    transition: color 0.3s ease;
}

.scf-details-toggle:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: var(--scf-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scf-details-toggle:active {
    transform: translateY(0);
}

.scf-toggle-icon {
    font-size: 18px;
    line-height: 1;
}

.scf-toggle-text {
    flex: 1;
    text-align: left;
}

.scf-toggle-arrow {
    font-size: 12px;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* When expanded */
.scf-details-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #3b82f6 !important;
    color: #1e40af !important;
}

.scf-details-toggle[aria-expanded="true"] * {
    color: #1e40af !important;
}

.scf-details-toggle[aria-expanded="true"] .scf-toggle-arrow {
    transform: rotate(180deg);
}

.scf-details-toggle[aria-expanded="true"] .scf-toggle-text::after {
    content: '';
}

/* Collapsible content */
.scf-details-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.scf-details-content.scf-expanded {
    max-height: none; /* No limit - allow all content to display */
    opacity: 1;
    margin-top: 25px;
}

/* Ensure brand/model info displays properly inside collapsed content */
.scf-details-content .scf-brand-info,
.scf-details-content .scf-model-info {
    animation: scfSlideIn 0.4s ease-out;
}

@keyframes scfSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for brand/model info */
@media (max-width: 767px) {
    .scf-brand-info,
    .scf-model-info {
        padding: 20px;
        margin-top: 20px;
    }
    
    .scf-brand-info h2,
    .scf-model-info h2 {
        font-size: 19px;
    }
    
    .scf-brand-info h3,
    .scf-model-info h3 {
        font-size: 16px;
    }
    
    .scf-brand-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .scf-specs-table td {
        font-size: 14px;
        padding: 10px 10px 10px 0;
    }
    
    .scf-specs-table td:first-child {
        width: 45%;
    }
    
    .scf-specs-table td:last-child {
        width: 55%;
    }
}

/* ========================================
   CATEGORY DEFAULT SEO SECTION
   ======================================== */

.scf-category-default-seo {
    margin-bottom: 30px;
}

.scf-category-default-seo .scf-seo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.scf-category-default-seo .scf-seo-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
}

.scf-category-default-seo .scf-seo-intro p {
    margin: 0 0 12px 0;
}

.scf-category-default-seo .scf-full-description {
    margin-bottom: 25px;
    line-height: 1.7;
}

.scf-category-default-seo .scf-buying-guide {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
}

.scf-category-default-seo .scf-buying-guide h2 {
    margin-top: 0;
    color: #1e293b;
    font-size: 20px;
}

/* FAQ Section */
.scf-faq-section {
    margin-top: 30px;
}

.scf-faq-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.scf-faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scf-faq-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.scf-faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.scf-faq-question {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.scf-faq-question::before {
    content: "Q: ";
    color: #3b82f6;
    font-weight: 700;
}

.scf-faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.scf-faq-answer p {
    margin: 0 0 10px 0;
}

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

/* ========================================
   CROSS-LINKING SECTION
   ======================================== */

.scf-cross-links {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile Toggle Button (hidden on desktop/tablet) */
.scf-cross-links-mobile-toggle {
    display: none; /* Hidden on desktop/tablet by default */
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    outline: none !important;
    box-sizing: border-box;
    overflow: hidden;
}

.scf-cross-links-mobile-toggle * {
    color: #ffffff !important;
}

.scf-cross-links-mobile-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.scf-cross-links-mobile-toggle:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.scf-cross-links-mobile-toggle .scf-toggle-icon {
    font-size: 18px;
    color: #ffffff !important;
}

.scf-cross-links-mobile-toggle .scf-toggle-text {
    flex: 1;
    text-align: left;
    margin: 0 12px;
    color: #ffffff !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.scf-cross-links-mobile-toggle .scf-category-count {
    opacity: 0.95;
    font-weight: 500;
    color: #ffffff !important;
}

.scf-cross-links-mobile-toggle .scf-toggle-arrow {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

.scf-cross-links-mobile-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    margin-bottom: 20px;
}

/* Content wrapper (visible on desktop, collapsible on mobile) */
.scf-cross-links-content {
    /* Always visible on desktop */
}

.scf-cross-links-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

.scf-cross-links-title svg {
    color: #3b82f6;
}

.scf-cross-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

.scf-cross-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.scf-cross-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.scf-cross-link-item:hover::before {
    width: 100%;
}

.scf-cross-link-item:hover {
    border-color: #3b82f6;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.scf-cross-link-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.scf-cross-link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
    position: relative;
}

.scf-cross-link-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scf-cross-link-item:hover .scf-cross-link-name {
    color: #3b82f6;
}

.scf-cross-link-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.scf-cross-link-arrow {
    flex-shrink: 0;
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.scf-cross-link-item:hover .scf-cross-link-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

/* Show More Categories Button - Same Style as Filter Buttons */
.scf-cross-links-toggle-wrapper {
    margin-top: 15px;
    text-align: center;
}

.scf-show-more-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    outline: none;
}

.scf-show-more-categories * {
    color: #ffffff !important;
}

.scf-show-more-categories:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.scf-show-more-categories:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.scf-show-more-categories svg {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.scf-show-more-categories[aria-expanded="true"] {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

/* Mobile + Tablet: Collapsible with toggle button */
@media (max-width: 1024px) {
    .scf-cross-links {
        margin-top: 20px;
        padding-top: 0;
        border-top: none;
    }
    
    /* Show mobile toggle button on BOTH mobile AND tablet */
    .scf-cross-links-mobile-toggle {
        display: flex !important;
    }
    
    /* Hide content by default on mobile + tablet */
    .scf-cross-links-content {
        display: none;
    }
    
    /* Hide desktop title on mobile + tablet (redundant with toggle button) */
    .scf-cross-links-title {
        display: none;
    }
    
    .scf-cross-link-item {
        padding: 14px 16px;
    }
    
    .scf-cross-link-icon {
        font-size: 24px;
    }
    
    .scf-cross-link-name {
        font-size: 15px;
    }
    
    .scf-cross-link-count {
        font-size: 12px;
    }
    
    .scf-faq-item {
        padding: 16px;
    }
    
    .scf-faq-question {
        font-size: 16px;
    }
    
    .scf-faq-answer {
        font-size: 14px;
    }
    
    .scf-show-more-categories {
        font-size: 13px;
        padding: 10px 18px;
    }
}

/* Mobile specific: Single column layout */
@media (max-width: 767px) {
    .scf-cross-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 0;
    }
}

/* Tablet specific: Two column layout when expanded */
@media (min-width: 768px) and (max-width: 1024px) {
    .scf-cross-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 0;
    }
}

/* Desktop: Show content directly, NO toggle button */
@media (min-width: 1025px) {
    .scf-cross-links {
        margin-top: 35px;
        padding-top: 30px;
        border-top: 2px solid #e2e8f0;
    }
    
    /* HIDE mobile toggle on desktop */
    .scf-cross-links-mobile-toggle {
        display: none !important;
    }
    
    /* SHOW content directly on desktop */
    .scf-cross-links-content {
        display: block !important;
    }
    
    /* SHOW desktop title */
    .scf-cross-links-title {
        display: flex;
    }
    
    /* Desktop: 3 columns */
    .scf-cross-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .scf-category-default-seo .scf-seo-title {
        font-size: 24px;
    }
    
    .scf-category-default-seo .scf-seo-intro {
        font-size: 15px;
    }
    
    /* Compact SEO description on mobile when filter is active */
    .scf-seo-content:not(.scf-category-default-seo) .scf-seo-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .scf-seo-content:not(.scf-category-default-seo) .scf-seo-description p {
        margin-bottom: 8px;
    }
    
    /* Make H1 more compact on mobile when filter is active */
    .scf-seo-content:not(.scf-category-default-seo) .scf-seo-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    /* Make tables scrollable on mobile */
    .scf-details-content table,
    .scf-buying-guide table,
    .scf-category-default-seo table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        max-width: 100%;
        border: 1px solid #e2e8f0;
    }
    
    .scf-details-content table th,
    .scf-details-content table td,
    .scf-buying-guide table th,
    .scf-buying-guide table td,
    .scf-category-default-seo table th,
    .scf-category-default-seo table td {
        font-size: 12px !important;
        padding: 8px 6px !important;
        min-width: 80px;
    }
}

/* ========================================
   KUKIRIN SPARE PARTS REQUEST FORM
   Compact Banner + Theme Color #3477f2
   ======================================== */

.scf-kukirin-request-wrapper {
    margin: 20px 0;
    animation: scfFadeIn 0.5s ease-out;
    display: block !important;
    width: 100%;
}

/* Compact Banner (always visible) */
.scf-kukirin-banner {
    background: linear-gradient(135deg, #e8f1ff 0%, #dae6ff 100%);
    border: 2px solid #3477f2;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(52, 119, 242, 0.15);
    transition: all 0.3s ease;
}

.scf-kukirin-banner:hover {
    box-shadow: 0 4px 12px rgba(52, 119, 242, 0.2);
}

.scf-kukirin-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.scf-kukirin-banner-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.scf-kukirin-banner-text {
    flex: 1;
    min-width: 200px;
}

.scf-kukirin-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1e40af;
    font-weight: 500;
}

.scf-kukirin-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #3477f2 !important;
    border: none;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}

.scf-kukirin-toggle-btn svg {
    flex-shrink: 0;
}

.scf-kukirin-toggle-btn * {
    color: #ffffff !important;
}

/* Form Container (hidden by default) */
.scf-kukirin-form-container {
    margin-top: 16px;
}

.scf-kukirin-request-box {
    background: #ffffff;
    border: 2px solid #3477f2;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(52, 119, 242, 0.15);
    position: relative;
    overflow: hidden;
    max-width: 650px;
    margin: 0 auto;
}

/* Compact Header */
.scf-kukirin-header {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.scf-kukirin-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scf-kukirin-close-btn {
    background: #ef4444 !important;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #ffffff !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scf-kukirin-close-btn svg {
    color: #ffffff !important;
}

/* Form */
.scf-kukirin-form {
    background: #ffffff;
    padding: 24px;
}

.scf-kukirin-form-group {
    margin-bottom: 24px;
}

.scf-kukirin-form-group:last-of-type {
    margin-bottom: 28px;
}

.scf-kukirin-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.scf-kukirin-help {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    font-style: italic;
    margin-left: 4px;
}

.scf-kukirin-input,
.scf-kukirin-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.scf-kukirin-input:hover,
.scf-kukirin-textarea:hover {
    border-color: #3477f2;
    background: #ffffff;
}

.scf-kukirin-input:focus,
.scf-kukirin-textarea:focus {
    outline: none;
    border-color: #3477f2;
    box-shadow: 0 0 0 3px rgba(52, 119, 242, 0.1);
    background: #ffffff;
}

.scf-kukirin-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.scf-kukirin-input::placeholder,
.scf-kukirin-textarea::placeholder {
    color: #9ca3af;
}

/* Sections Container */
#scf-sections-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scf-section {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.scf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.scf-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #3477f2;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.scf-remove-section-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ef4444 !important;
    border: none;
    border-radius: 50%;
    color: #ffffff !important;
    cursor: pointer;
}

.scf-remove-section-btn svg {
    color: #ffffff !important;
}

/* Parts Container - Dynamic List */
.scf-parts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.scf-part-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scf-part-row .scf-part-input {
    flex: 1;
}

.scf-remove-part-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444 !important;
    border: none;
    border-radius: 8px;
    color: #ffffff !important;
    cursor: pointer;
}

.scf-remove-part-btn svg,
.scf-remove-part-btn svg * {
    color: #ffffff !important;
    pointer-events: none; /* Ensure clicks go to button, not SVG elements */
}

/* Add Part Button */
.scf-add-part-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #3477f2 !important;
    border: none;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.scf-add-part-btn svg {
    color: #ffffff !important;
}

.scf-add-part-btn * {
    color: #ffffff !important;
}

/* Add Section Button */
.scf-add-section-wrapper {
    margin: 20px 0;
    text-align: center;
}

.scf-add-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #3477f2 !important;
    border: none;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.scf-add-section-btn svg {
    color: #ffffff !important;
}

.scf-add-section-btn * {
    color: #ffffff !important;
}

/* Submit Button */
.scf-kukirin-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #3477f2 !important;
    border: none;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.scf-kukirin-submit-btn * {
    color: #ffffff !important;
}

.scf-kukirin-submit-btn svg {
    flex-shrink: 0;
    color: #ffffff !important;
}

.scf-kukirin-submit-btn:disabled {
    background: #94a3b8 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Message (Success/Error) */
.scf-kukirin-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    animation: scfSlideIn 0.3s ease-out;
    text-align: center;
}

.scf-kukirin-message.success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.scf-kukirin-message.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

/* Privacy Notice */
.scf-kukirin-privacy {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

.scf-kukirin-privacy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .scf-kukirin-request-wrapper {
        margin: 16px 0;
    }
    
    .scf-kukirin-banner {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .scf-kukirin-banner-content {
        gap: 12px;
    }
    
    .scf-kukirin-banner-icon {
        font-size: 22px;
    }
    
    .scf-kukirin-banner-text p {
        font-size: 13px;
    }
    
    .scf-kukirin-toggle-btn {
        width: 100%;
        margin-top: 12px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .scf-kukirin-request-box {
        border-radius: 10px;
    }
    
    .scf-kukirin-header {
        padding: 16px 18px;
    }
    
    .scf-kukirin-title {
        font-size: 16px;
    }
    
    .scf-kukirin-form {
        padding: 20px 18px;
    }
    
    .scf-kukirin-form-group {
        margin-bottom: 18px;
    }
    
    .scf-kukirin-label {
        font-size: 12px;
    }
    
    .scf-kukirin-help {
        font-size: 11px;
    }
    
    .scf-kukirin-input,
    .scf-kukirin-textarea {
        padding: 12px 14px;
        font-size: 16px; /* Keep 16px to prevent iOS zoom */
    }
    
    .scf-kukirin-submit-btn {
        padding: 13px 20px;
        font-size: 15px;
    }
    
    .scf-kukirin-message {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .scf-kukirin-privacy {
        padding: 14px;
    }
    
    .scf-kukirin-privacy p {
        font-size: 11px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .scf-kukirin-banner {
        padding: 12px 14px;
    }
    
    .scf-kukirin-banner-text p {
        font-size: 12px;
    }
    
    .scf-kukirin-form {
        padding: 18px 16px;
    }
}

