/* ======================================================================
   Bike Comparison Module - Unique CSS Classes
   ====================================================================== */

/* Main Wrapper */
.motorcycle-compare-main-container {
    width: 100%;
    margin: 20px 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* Title Section */
.motorcycle-compare-page-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Selection Grid Layout */
.motorcycle-bike-selection-area {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

/* Individual Bike Card */
.motorcycle-bike-input-card {
    flex: 1;
    border: 1px solid #eee;
    padding: 20px;
    background: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Image Preview Container */
.motorcycle-image-preview-box {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.motorcycle-image-preview-box img {
    max-height: 230px;
    width: auto;
    object-fit: contain;
}

.motorcycle-image-preview-box:empty::before {
    content: "Add Bike";
    color: #ccc;
    font-weight: 600;
    font-size: 18px;
    border: 2px dashed #eee;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Search Input Wrapper */
.motorcycle-search-input-wrapper {
    position: relative;
    text-align: left;
}

/* Search Input Field */
.motorcycle-search-input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

/* Dropdown Results Container */
.motorcycle-search-results-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    width: 100%;
    z-index: 1000;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Individual Result Item */
.motorcycle-result-item-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    transition: 0.2s ease;
}

.motorcycle-result-item-option:hover {
    background: #f9f9f9;
    color: #ff0000;
}

/* Action Button */
.motorcycle-compare-action-button {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 14px 50px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 20px;
    transition: 0.3s ease;
}

.motorcycle-compare-action-button:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,0,0,0.2);
}

/* Specifications Table */
.motorcycle-specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    border: 1px solid #ddd;
    background: #fff;
    table-layout: fixed;
}

.motorcycle-specifications-table td {
    padding: 12px 10px;
    border: 1px solid #eee;
    font-size: 14px;
    word-wrap: break-word;
}

/* Section Header in Table */
.motorcycle-table-section-header td {
    background: #eee !important;
    font-weight: 700;
    color: #111;
    font-size: 15px;
    text-transform: uppercase;
    padding: 15px;
}

/* Field Label Column */
.motorcycle-spec-field-label {
    background: #fcfcfc;
    font-weight: 600;
    width: 34%;
    color: #666;
}

/* Field Value Column */
.motorcycle-spec-field-value {
    width: 33%;
    text-align: center;
    color: #000;
    font-weight: 500;
}

.motorcycle-spec-field-value a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

/* Disclaimer Box */
.motorcycle-disclaimer-notice-box {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 2px solid #eee;
    font-size: 13px;
    color: #777;
    text-align: center;
    border-radius: 4px;
}

.motorcycle-disclaimer-notice-box strong {
    color: #333;
    font-weight: 700;
}

/* ====================================================================
   Responsive Design - Mobile Optimization
   ==================================================================== */

@media (max-width: 768px) {
    .motorcycle-bike-selection-area {
        flex-direction: column;
        gap: 15px;
    }

    .motorcycle-image-preview-box {
        height: 180px;
    }

    .motorcycle-image-preview-box img {
        max-height: 160px;
    }

    /* Mobile table optimizations */
    .motorcycle-specifications-table td {
        padding: 8px 5px;
        font-size: 11px;
    }

    .motorcycle-table-section-header td {
        font-size: 12px;
        padding: 10px;
    }

    .motorcycle-spec-field-label {
        width: 30%;
    }

    .motorcycle-spec-field-value {
        width: 35%;
    }

    .motorcycle-compare-page-title {
        font-size: 18px;
    }

    .motorcycle-compare-action-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* ====================================================================
   Extra Small Devices - Phone Optimization
   ==================================================================== */

@media (max-width: 480px) {
    .motorcycle-bike-input-card {
        padding: 15px;
    }

    .motorcycle-image-preview-box {
        height: 150px;
    }

    .motorcycle-image-preview-box img {
        max-height: 130px;
    }

    .motorcycle-compare-action-button {
        width: 100%;
        padding: 12px 20px;
    }

    .motorcycle-disclaimer-notice-box {
        padding: 15px;
        font-size: 12px;
    }

    .motorcycle-search-input-field {
        padding: 10px;
        font-size: 13px;
    }
}
