/* Motorcycle Comparison Block Styles */

.bnr-mcb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.bnr-mcb-header {
    text-align: center;
    margin-bottom: 30px;
}

.bnr-mcb-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.bnr-mcb-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 20px 0;
}

.bnr-mcb-header-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}


/* Selection Form */
.bnr-mcb-selection {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    overflow: visible;
    display: block;
    visibility: visible;
    opacity: 1;
}


.bnr-mcb-motorcycle-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bnr-mcb-selector {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bnr-mcb-selector h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.bnr-mcb-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bnr-mcb-field {
    display: flex;
    flex-direction: column;
}

.bnr-mcb-field label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.bnr-mcb-select {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

.bnr-mcb-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Actions */
.bnr-mcb-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bnr-mcb-compare-btn,
.bnr-mcb-clear-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bnr-mcb-compare-btn {
    background: #dc3545;
    color: white;
}

.bnr-mcb-compare-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.bnr-mcb-clear-btn {
    background: #6c757d;
    color: white;
}

.bnr-mcb-clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Results */
.bnr-mcb-results {
    margin-top: 30px;
}

.bnr-mcb-single-result {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #6c757d;
}

.bnr-mcb-single-result p {
    margin: 0;
    font-size: 16px;
}


/* Comparison Tables */
.bnr-mcb-comparison-tables {
    margin-top: 30px;
}

.bnr-mcb-spec-group {
    margin-bottom: 30px;
}

/* Motorcycle Images Above First Table */
.bnr-mcb-motorcycle-images {
    display: grid;
    grid-template-columns: 30% 23.33% 23.33% 23.33%;
    gap: 0;
    margin-bottom: 20px;
    align-items: start;
}

.bnr-mcb-image-container {
    text-align: center;
    padding: 0 10px;
}

.bnr-mcb-image-container:first-child {
    grid-column: 2;
}

.bnr-mcb-image-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bnr-mcb-image-placeholder {
    width: 100%;
    height: 150px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.bnr-mcb-image-title {
    margin-top: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Table Header - Orange Bar */
.bnr-mcb-table-header {
    background: #ff6b35;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.bnr-mcb-comparison-table {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.bnr-mcb-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.bnr-mcb-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    font-size: 14px;
}

.bnr-mcb-comparison-table .bnr-mcb-spec-label {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
    width: 30%;
}

.bnr-mcb-comparison-table .bnr-mcb-spec-value {
    background: white;
    color: #333;
    text-align: center;
    width: 23.33%;
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .bnr-mcb-motorcycle-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .bnr-mcb-image-container {
        max-width: 200px;
        padding: 0;
    }
    
    .bnr-mcb-image-container:first-child {
        grid-column: auto;
    }
}

/* Editor Styles */
.bnr-mcb-editor {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.bnr-mcb-editor-preview {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bnr-mcb-preview-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bnr-mcb-preview-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.bnr-mcb-preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bnr-mcb-preview-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.bnr-mcb-preview-card h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
}

.bnr-mcb-preview-card p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bnr-mcb-container {
        padding: 15px;
    }
    
    .bnr-mcb-title {
        font-size: 2rem;
    }
    
    .bnr-mcb-motorcycle-selectors {
        grid-template-columns: 1fr;
    }
    
    
    .bnr-mcb-comparison-table {
        overflow-x: auto;
    }
    
    .bnr-mcb-comparison-table table {
        min-width: 800px;
    }
    
    .bnr-mcb-table-image {
        width: 100px;
        height: 70px;
    }
    
    .bnr-mcb-table-title {
        font-size: 12px;
        max-width: 150px;
    }
    
    .bnr-mcb-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bnr-mcb-compare-btn,
    .bnr-mcb-clear-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .bnr-mcb-selection {
        padding: 20px;
    }
    
    .bnr-mcb-selector {
        padding: 15px;
    }
    
    .bnr-mcb-comparison-table th,
    .bnr-mcb-comparison-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .bnr-mcb-table-image {
        width: 80px;
        height: 60px;
    }
    
    .bnr-mcb-table-title {
        font-size: 11px;
        max-width: 120px;
    }
    
    .bnr-mcb-motorcycle-header {
        min-width: 150px;
    }
}

/* Fix for header overlap issue on comparison views */
.bnr-motorcycle-comparison {
  padding-top: 100px !important; /* Push content below header */
}

/* More specific targeting for Astra theme with comparison */
body.ast-theme-transparent-header .bnr-motorcycle-comparison,
body.ast-hfb-header .bnr-motorcycle-comparison {
  padding-top: 120px !important; /* Extra padding for transparent header */
}

/* Fix heading sizes for comparison views - inherit from WordPress theme */
.bnr-motorcycle-comparison h1 {
  font-size: inherit; /* Inherit from theme */
  font-weight: inherit; /* Inherit from theme */
  margin: inherit; /* Inherit from theme */
  /* Override only what's needed */
  font-size: 1.8em; /* Slightly smaller than default h1 */
  margin-bottom: 0.5em;
}
