/* ========================================
   BULBEX Fitment Plugin - Frontend Styles
   ======================================== */

/* Vehicle Selector */
.bulbex-vehicle-selector {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bulbex-selector-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.bulbex-selector-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFC107;
    margin: 0 0 8px;
}

.bulbex-selector-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px;
    font-size: 16px;
}

.bulbex-selector-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.bulbex-field {
    flex: 1;
    min-width: 180px;
    text-align: left;
}

.bulbex-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bulbex-field select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23FFC107' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.bulbex-field select:hover,
.bulbex-field select:focus {
    border-color: #FFC107;
    outline: none;
}

.bulbex-field select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bulbex-field-submit {
    flex: 0 0 auto;
    min-width: auto;
}

.bulbex-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    background: #FFC107;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bulbex-btn:hover {
    background: #FFD54F;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    color: #1a1a2e;
}

.bulbex-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Vehicle Results Page */
.bulbex-vehicle-results {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bulbex-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.bulbex-vehicle-title {
    font-size: 36px;
    font-weight: 800;
    color: #FFC107;
    margin: 0 0 8px;
}

.bulbex-results-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0 0 16px;
}

.bulbex-change-vehicle {
    color: #FFC107;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.bulbex-change-vehicle:hover {
    color: #FFD54F;
}

/* Position Groups */
.bulbex-position-group {
    margin-bottom: 50px;
}

.bulbex-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
}

.bulbex-group-icon {
    color: #FFC107;
}

.bulbex-group-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Fitment Grid */
.bulbex-fitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bulbex-fitment-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.bulbex-fitment-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.bulbex-position-label {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bulbex-product-card {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.bulbex-product-image {
    flex: 0 0 80px;
}

.bulbex-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.bulbex-product-info {
    flex: 1;
}

.bulbex-product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
}

.bulbex-product-name a {
    color: #fff;
    text-decoration: none;
}

.bulbex-product-name a:hover {
    color: #FFC107;
}

.bulbex-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #FFC107;
    margin-bottom: 8px;
}

.bulbex-fitment-notes {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-style: italic;
}

.bulbex-stock {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bulbex-stock.in-stock {
    color: #4CAF50;
}

.bulbex-stock.out-of-stock {
    color: #f44336;
}

.bulbex-add-to-cart {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    background: #FFC107;
    color: #1a1a2e;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.bulbex-add-to-cart:hover {
    background: #FFD54F;
    color: #1a1a2e;
}

/* No Results */
.bulbex-no-vehicle,
.bulbex-no-fitments {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.bulbex-no-vehicle h2,
.bulbex-no-fitments p {
    color: rgba(255, 255, 255, 0.7);
}

/* Loading Spinner */
.bulbex-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #FFC107;
}

.bulbex-loading.active {
    display: block;
}

.bulbex-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-top-color: #FFC107;
    border-radius: 50%;
    animation: bulbex-spin 0.6s linear infinite;
}

@keyframes bulbex-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   SEO PAGES - Browse / Make / Model / Year
   ======================================== */

.bulbex-seo-page {
    padding: 20px 0 60px;
}

/* Breadcrumbs */
.bulbex-breadcrumbs {
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.bulbex-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.bulbex-breadcrumbs a:hover {
    color: #FFC107;
}

.bulbex-breadcrumbs .sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.25);
}

.bulbex-breadcrumbs .current {
    color: #FFC107;
}

/* SEO Header */
.bulbex-seo-header {
    text-align: center;
    margin-bottom: 30px;
}

.bulbex-seo-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #FFC107;
    margin: 0 0 12px;
}

.bulbex-seo-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.bulbex-seo-selector {
    margin-bottom: 50px;
}

.bulbex-seo-section {
    margin-bottom: 50px;
}

.bulbex-seo-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
}

/* Makes Grid */
.bulbex-makes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.bulbex-make-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.bulbex-make-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.06);
    transform: translateY(-2px);
    color: #FFC107;
}

.make-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.make-name {
    font-weight: 600;
    font-size: 14px;
}

/* Models Grid */
.bulbex-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bulbex-model-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.bulbex-model-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.06);
    transform: translateY(-2px);
}

.bulbex-model-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.bulbex-model-card:hover h3 {
    color: #FFC107;
}

.model-years {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
}

.model-arrow {
    color: #FFC107;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.bulbex-model-card:hover .model-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Years Grid */
.bulbex-years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.bulbex-year-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.bulbex-year-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.06);
    transform: translateY(-2px);
}

.year-number {
    font-size: 24px;
    font-weight: 800;
    color: #FFC107;
}

.year-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Internal SEO Links */
.bulbex-seo-links {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.bulbex-other-makes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bulbex-other-makes a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.bulbex-other-makes a:hover {
    border-color: rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

.bulbex-no-data {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Coming Soon / Unavailable Bulb Cards */
.bulbex-fitment-card.bulbex-coming-soon {
    opacity: 0.75;
    border-style: dashed;
}

.bulbex-fitment-card.bulbex-coming-soon:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

.bulbex-unavailable-card {
    padding: 20px 16px;
}

.bulbex-unavailable-card .bulbex-product-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.bulbex-bulb-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.bulbex-stock.coming-soon {
    color: #FF9800;
    font-weight: 700;
}

.bulbex-unavailable-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin: 6px 0 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .bulbex-selector-fields {
        flex-direction: column;
    }

    .bulbex-field {
        min-width: 100%;
    }

    .bulbex-selector-inner {
        padding: 24px 16px;
    }

    .bulbex-vehicle-title {
        font-size: 24px;
    }

    .bulbex-fitment-grid {
        grid-template-columns: 1fr;
    }

    .bulbex-product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
