/**
 * Moto Catalog – Frontend Styles
 */

/* Vehicle Selector */
.moto-vehicle-selector { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); border-radius: 16px; padding: 40px; margin: 20px 0; }
.moto-selector-title { color: #fff; font-size: 28px; font-weight: 700; margin: 0 0 24px; text-align: center; }
.moto-selector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.moto-selector-field label { display: block; color: #a0aec0; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.moto-selector-field select { width: 100%; padding: 12px 16px; border: 2px solid #2d3748; border-radius: 10px; background: #2d3748; color: #e2e8f0; font-size: 14px; appearance: none; cursor: pointer; transition: border-color .2s; }
.moto-selector-field select:focus { border-color: #4facfe; outline: none; }
.moto-selector-field select:disabled { opacity: .5; cursor: not-allowed; }
.moto-btn-search { width: 100%; padding: 14px 24px; border: none; border-radius: 10px; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.moto-btn-search:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,172,254,.3); }
.moto-btn-search:disabled { opacity: .4; cursor: not-allowed; }

/* Diagrams Grid */
.moto-diagrams-list { margin-top: 30px; }
.moto-diagrams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.moto-diagram-card { display: block; background: #2d3748; border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.moto-diagram-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.moto-diagram-card img { width: 100%; height: 160px; object-fit: contain; background: #fff; }
.moto-diagram-card h4 { color: #e2e8f0; padding: 12px 16px 4px; margin: 0; font-size: 14px; }
.moto-parts-count { display: block; padding: 0 16px 12px; color: #a0aec0; font-size: 12px; }

/* Diagram Viewer */
.moto-diagram-viewer { max-width: 1200px; margin: 0 auto; }
.moto-dv-loading { text-align: center; padding: 60px; color: #666; font-size: 18px; }
.moto-dv-title { font-size: 24px; margin-bottom: 8px; }
.moto-dv-content { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 768px) { .moto-dv-content { grid-template-columns: 1fr; } }
.moto-dv-image-container { position: relative; background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.moto-dv-image { width: 100%; display: block; }
.moto-hotspot { position: absolute; width: 24px; height: 24px; background: rgba(79,172,254,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transform: translate(-50%, -50%); transition: transform .2s; z-index: 10; }
.moto-hotspot:hover { transform: translate(-50%, -50%) scale(1.3); background: rgba(0,242,254,.9); }
.moto-hotspot span { font-size: 10px; color: #fff; font-weight: 700; }

/* Parts Table */
.moto-parts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.moto-parts-table th, .moto-parts-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; }
.moto-parts-table th { background: #f5f5f5; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.moto-parts-table code { background: #f0f0f0; padding: 1px 6px; border-radius: 3px; font-size: 12px; }
tr.moto-highlight { background: #e3f2fd !important; }
.moto-btn-add-cart { padding: 4px 12px; border: 1px solid #4facfe; border-radius: 6px; background: transparent; color: #4facfe; cursor: pointer; font-size: 13px; transition: all .2s; }
.moto-btn-add-cart:hover { background: #4facfe; color: #fff; }

/* Product Fitment Tab */
.moto-product-fitment { margin: 20px 0; }
.moto-fitment-table { width: 100%; border-collapse: collapse; }
.moto-fitment-table th, .moto-fitment-table td { padding: 10px 14px; border-bottom: 1px solid #eee; text-align: left; }
.moto-fitment-table th { background: #f8f9fa; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #666; }
.moto-fitment-table tr:hover { background: #f0f7ff; }
