/* ============================================================
   Venol Oil Finder — Configurator Styles
   ============================================================ */

.venol-configurator {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* Header */
.venol-header {
    text-align: center;
    margin-bottom: 40px;
}

.venol-logo {
    margin-bottom: 20px;
}

.venol-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0 10px;
    color: #1a1a1a;
}

.venol-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Form */
.venol-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.venol-steps {
    margin-bottom: 30px;
}

/* Steps — animacja pojawiania się */
.venol-step {
    -webkit-animation: venol-slide-in 0.3s ease-out;
            animation: venol-slide-in 0.3s ease-out;
}

@-webkit-keyframes venol-slide-in {
    from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
    to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0);    }
}

@keyframes venol-slide-in {
    from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
    to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0);    }
}

.venol-step h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1a1a1a;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
}

.step-number {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 32px;
    height: 32px;
    background: #E31E24;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    -ms-flex-negative: 0;
}

/* Select */
.venol-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    -webkit-transition: border-color 0.2s, box-shadow 0.2s;
            transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.venol-select:hover {
    border-color: #E31E24;
}

.venol-select:focus {
    outline: none;
    border-color: #E31E24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}

.venol-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* Results grid */
.venol-results {
    display: grid;
    gap: 15px;
}

/* Oil card */
.venol-oil-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
    -webkit-transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.venol-oil-card:hover {
    background: #fff;
    border-color: #E31E24;
    box-shadow: 0 2px 10px rgba(227, 30, 36, 0.12);
}

.oil-image {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 80px;
    height: 110px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    overflow: hidden;
}

.oil-image img {
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.no-image {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    padding: 6px;
    line-height: 1.4;
}

.oil-info {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-width: 0;
}

.oil-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.oil-specs {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.6;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 4px 16px;
}

.oil-specs strong {
    color: #1a1a1a;
}

.oil-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 12px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #E31E24;
    border-radius: 50%;
    -webkit-animation: venol-spin 0.75s linear infinite;
            animation: venol-spin 0.75s linear infinite;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

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

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

/* No results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #666;
}

/* Actions bar */
.venol-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Buttons */
.btn {
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: background 0.2s, -webkit-transform 0.15s, box-shadow 0.15s;
            transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: #E31E24;
    color: #fff;
    border-color: #E31E24;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #c71820;
    border-color: #c71820;
    color: #fff;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: #1a1a1a;
    border-color: #d0d0d0;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #e0e0e0;
    color: #1a1a1a;
}

.btn-outline {
    background: #fff;
    color: #E31E24;
    border-color: #E31E24;
}

.btn-outline:hover,
.btn-outline:focus {
    background: #fff5f5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
    .venol-configurator {
        margin: 20px auto;
        padding: 0 12px;
    }

    .venol-form {
        padding: 20px 15px;
    }

    .venol-header h1 {
        font-size: 22px;
    }

    .venol-oil-card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        text-align: center;
    }

    .oil-image {
        width: 100px;
        height: 120px;
    }

    .oil-specs {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }

    .oil-actions {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }

    .venol-actions {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

    .btn {
        -webkit-box-flex: 1;
            -ms-flex: 1 1 120px;
                flex: 1 1 120px;
    }
}

/* ============================================================
   Wyszukiwarka marki
   ============================================================ */

.venol-search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    -webkit-transition: border-color 0.2s;
            transition: border-color 0.2s;
    outline: none;
}

.venol-search-input:focus {
    border-color: #E31E24;
}

.venol-hint {
    font-size: 12px;
    color: #999;
    margin: 6px 0 0;
}

/* ============================================================
   Filtr lepkości
   ============================================================ */

.venol-viscosity-filter {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.venol-viscosity-filter .filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}

.venol-viscosity-filter .vf-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    -webkit-transition: all 0.15s;
            transition: all 0.15s;
    color: #444;
}

.venol-viscosity-filter .vf-btn:hover {
    border-color: #E31E24;
    color: #E31E24;
}

.venol-viscosity-filter .vf-btn.active {
    background: #E31E24;
    border-color: #E31E24;
    color: #fff;
    font-weight: 600;
}

/* ============================================================
   Odznaka marki na karcie oleju
   ============================================================ */

.oil-brand-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.badge-venol {
    background: #E31E24;
    color: #fff;
}

.badge-nexium {
    background: #1a1a2e;
    color: #d4a843;
}

.no-image.badge-nexium-bg {
    background: #1a1a2e;
    color: #d4a843;
}

.no-image.badge-venol-bg {
    background: #E31E24;
    color: #fff;
}

/* ============================================================
   Grid olejów (v1.2)
   ============================================================ */

.venol-oils-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ============================================================
   Nagłówek karty i typ oleju
   ============================================================ */

.oil-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.oil-name {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.oil-type {
    font-size: 11px;
    color: #777;
    font-weight: 500;
}

/* ============================================================
   Spec tags (lepkość / ACEA / API)
   ============================================================ */

.oil-spec-tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.spec-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.spec-tag--visc {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.spec-tag--acea {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.spec-tag--api {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* ============================================================
   Normy OEM
   ============================================================ */

.oil-norm {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.oil-norm strong {
    color: #333;
}

/* ============================================================
   Paliwa
   ============================================================ */

.oil-fuels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.fuel-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    line-height: 1.4;
}

.fuel-badge--gasoline {
    background: #fce4ec;
    color: #c62828;
}

.fuel-badge--diesel {
    background: #e8eaf6;
    color: #283593;
}

.fuel-badge--lpg {
    background: #e1f5fe;
    color: #01579b;
}

.fuel-badge--hybrid {
    background: #f3e5f5;
    color: #6a1b9a;
}

.fuel-badge--electric {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ============================================================
   Loading state (v1.2 — spinner + tekst)
   ============================================================ */

.venol-loading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 50px 20px;
    gap: 16px;
}

.venol-loading p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.venol-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top-color: #E31E24;
    border-radius: 50%;
    -webkit-animation: venol-spin 0.75s linear infinite;
            animation: venol-spin 0.75s linear infinite;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* ============================================================
   No results box
   ============================================================ */

.no-results-box {
    text-align: center;
    padding: 40px 20px;
}

.no-results-hint {
    font-size: 14px;
    color: #888;
    margin: 8px 0 16px;
}

/* ============================================================
   Disabled button
   ============================================================ */

.btn-disabled {
    background: #f0f0f0;
    color: #aaa;
    border: 2px solid #e0e0e0;
    cursor: not-allowed;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    line-height: 1;
}

/* ============================================================
   Placeholdery obrazków (brandowane)
   ============================================================ */

.no-image--venol,
.no-image--nexium {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 4px;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 8px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.no-image--venol {
    background: #E31E24;
    color: #fff;
}

.no-image--nexium {
    background: #1a1a2e;
    color: #d4a843;
}

.no-image--venol small,
.no-image--nexium small {
    font-weight: 400;
    font-size: 10px;
    opacity: 0.85;
}

/* ============================================================
   Filtr roku produkcji (step 2)
   ============================================================ */

.venol-year-filter {
    margin-bottom: 14px;
}

.venol-year-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.venol-year-input {
    width: 160px;
    padding: 9px 13px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    -webkit-transition: border-color 0.2s;
            transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.venol-year-input:focus {
    border-color: #E31E24;
}

@media (max-width: 600px) {
    .venol-year-input {
        width: 100%;
    }
}
