/* Lidl brand colors: blue #0050AA · yellow #FFD100 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 12px 12px 12px;
    color: #0d1829;
}

.app {
    width: 100%;
    max-width: 460px;
}

/* ── Header ── */
header {
    text-align: center;
    margin-bottom: 36px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
    margin:30px 0 2px 0;
}

.logo svg { 
    width: 100%;
    max-width: 100px;
}

h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0d1829;
}
.tagline {
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.75);
}

/* ── Card ── */
.card {
    background: #0050aa;
    border: 1px solid rgba(0,80,170,0.12);
    border-radius: 18px;
    padding: 22px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 16px rgba(0,80,170,0.07);
    color: white;
}

.card-image {
    height: 125px;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.card-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: white;
    margin-bottom: 14px;
}

/* ── Dropdown row ── */
.dropdown-row {
    display: grid;
    grid-template-columns: 2fr 14px 1.4fr 14px 1.4fr;
    gap: 6px;
    align-items: end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: white;
}

.field select {
    background: #f5f8fc
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0,80,170,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    border: 1.5px solid rgba(0,80,170,0.18);
    border-radius: 8px;
    padding: 10px 28px 10px 10px;
    color: #0d1829;
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s, background-color 0.15s;
}
.field select:focus {
    /*border-color: #0050AA;
    background-color: rgba(0,80,170,0.05);*/
}
.field select option {
    background: #ffffff;
    color: #0d1829;
}
.field select.empty {
    color: rgba(0,0,0,0.3);
}

.sep {
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    padding-bottom: 11px;
}

/* ── Result ── */
.result {
    border-radius: 18px;
    padding: 28px 22px 22px;
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.result.found {
    background: linear-gradient(145deg, rgba(0,80,170,0.07), rgba(0,61,143,0.04));
    border: 1px solid rgba(0,80,170,0.22);
}

.result.not-found {
    background: linear-gradient(145deg, rgba(204,0,0,0.06), rgba(180,0,0,0.03));
    border: 1px solid rgba(204,0,0,0.18);
}

.result-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    font-size: 14rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    color: #0050AA;
    z-index: -1;
    top: -50px;
}

.not-found .result-bg {
    color: #cc0000;
}

.badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.found .badge {
    background: #FFD100;
    color: #0050AA;
}
.not-found .badge {
    background: rgba(204,0,0,0.1);
    color: #cc0000;
}

.result-size {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.found .result-size {
    color: #0050AA;
}

.not-found .result-size {
    color: #cc0000;
}

.not-found-msg {
    font-size: 0.8rem;
    color: rgba(204,0,0,0.65);
    margin-top: 14px;
    line-height: 1.6;
}

.result-tire {
    font-size: 0.88rem;
    color: rgba(0,0,0,0.75);
    margin-bottom: 22px;
}

/* ── Tire diagram ── */
.diagram-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.diagram-wrap svg {
    overflow: visible;
}

/* ── Dimensions grid ── */
.dims {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 16px;
}

.dim {
    text-align: center;
}

.dim-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(0,0,0,0.8);
}

.dim-key {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(0,0,0,0.35);
    margin-top: 3px;
}

/* ── Transitions ── */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.2s, transform 0.2s;
}
.fade-enter-from {
    opacity: 0;
    transform: translateY(8px);
}
.fade-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

/* ── Disclaimer ── */
.disclaimer {
    font-size: 0.7rem;
    color: rgba(0,0,0,0.75);
    text-align: center;
    line-height: 1.65;
}

/* ── Version footer ── */
.version-footer {
    text-align: center;
    font-size: 0.65rem;
    color: rgba(0,0,0,0.2);
    padding: 12px 0 4px;
    letter-spacing: 0.05em;
}
