/* =============================================================================
   ACTIVE LAUNCH VEHICLES PAGE
============================================================================= */

/* Header hero image visible on this page too (see header.css / archive.css) */
.main:has(.vehicles-page) .header__hero {
    opacity: .85;
}

/* Three columns filling the rest of the screen; each column scrolls on its own */
.vehicles-page {
    position: relative;
    z-index: 1;

    flex: 1 1 auto;
    min-height: 0;

    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(280px, 380px) minmax(0, 1fr);
    gap: 16px;

    padding: 70px 24px 24px;   /* top space lets the hero image show through */
    box-sizing: border-box;
}

/* ----------------------------------------------------------------------------
   COLUMN
---------------------------------------------------------------------------- */

.lv-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;

    padding: 14px;
    box-sizing: border-box;

    background: rgba(7, 20, 31, .82);
    border: 1px solid rgba(47, 124, 163, .42);
    border-radius: 6px;
}

.lv-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding-bottom: 10px;
    border-bottom: 1px solid rgba(47, 124, 163, .22);

    color: #35c5ff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.lv-count {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(124, 196, 255, .25);
    background: rgba(124, 196, 255, .06);
    color: #cfe6ff;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------------
   SEARCH
---------------------------------------------------------------------------- */

.lv-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 10px;
    padding: 0 10px;
    height: 34px;
    border-radius: 5px;
    border: 1px solid rgba(47, 124, 163, .35);
    background: rgba(4, 12, 20, .65);
    color: #7f98ad;
}

.lv-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dce8f5;
    font: inherit;
    font-size: .78rem;
}

.lv-search:focus-within {
    border-color: rgba(53, 197, 255, .7);
}

/* ----------------------------------------------------------------------------
   LISTS (countries, companies)
---------------------------------------------------------------------------- */

.lv-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.lv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 6px 10px;
    margin-bottom: 4px;

    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #dce8f5;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.lv-item:hover {
    background: rgba(53, 197, 255, .06);
}

.lv-item.is-active {
    background: linear-gradient(90deg, rgba(33, 150, 243, .45), rgba(33, 150, 243, .12));
    border-color: rgba(53, 197, 255, .75);
    box-shadow: 0 0 14px rgba(33, 150, 243, .25);
}

.lv-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lv-item-name {
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-item-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    color: #8fa6c2;
}

.lv-item-count {
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(124, 196, 255, .10);
    color: #cfe6ff;
    font-size: .7rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lv-item-arrow {
    color: #7f98ad;
    font-size: .8rem;
}

.lv-flag {
    width: 34px;
    height: 23px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, .35);
}

.lv-flag--small {
    width: 16px;
    height: 11px;
}

/* Company logo (or initials when there is no logo yet) */
.lv-logo {
    width: 42px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(124, 196, 255, .06);
    color: #9fc9ee;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    overflow: hidden;
}

.lv-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lv-empty {
    padding: 30px 10px;
    text-align: center;
    font-size: .75rem;
    color: rgba(143, 166, 194, .7);
}

/* ----------------------------------------------------------------------------
   COMPANY INFO (top of column 3)
---------------------------------------------------------------------------- */

.lv-company-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.lv-company-info .lv-logo {
    width: 86px;
    height: 86px;
    font-size: 1.2rem;
    border: 1px solid rgba(47, 124, 163, .35);
}

.lv-company-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.lv-company-country {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: .8rem;
    color: #9fb4c8;
}

.lv-company-desc {
    margin-top: 8px;
    font-size: .76rem;
    line-height: 1.5;
    color: #8fa6c2;
}

/* ----------------------------------------------------------------------------
   VEHICLE CARDS
---------------------------------------------------------------------------- */

.lv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.lv-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;

    border: 1px solid rgba(47, 124, 163, .42);
    border-radius: 6px;
    background: rgba(9, 24, 37, .9);
    color: #dce8f5;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.lv-card:hover {
    border-color: rgba(53, 197, 255, .8);
    box-shadow: 0 0 16px rgba(33, 150, 243, .25);
    transform: translateY(-2px);
}

/* Picture area with the same soft glow as the popup */
.lv-card-img {
    position: relative;
    isolation: isolate;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: radial-gradient(ellipse at 50% 100%, rgba(33, 150, 243, .18), transparent 70%);
    border-bottom: 1px solid rgba(47, 124, 163, .25);
}

.lv-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(124, 196, 255, .25));
}

.lv-card-img i {
    font-size: 34px;
    color: rgba(143, 166, 194, .45);
}

.lv-card-body {
    padding: 10px 12px 12px;
}

.lv-card-name {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
}

.lv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 8px;
}

.lv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.lv-badge--active   { color: #50ffa0; border-color: rgba(80, 255, 160, .35);  background: rgba(80, 255, 160, .08); }
.lv-badge--retired  { color: #8fa6c2; border-color: rgba(143, 166, 194, .3);  background: rgba(143, 166, 194, .06); }
.lv-badge--reusable { color: #7cc4ff; border-color: rgba(124, 196, 255, .35); background: rgba(124, 196, 255, .08); }
.lv-badge--variants { color: #ffc86b; border-color: rgba(255, 200, 107, .35); background: rgba(255, 200, 107, .08); }

.lv-specs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .72rem;
    color: #b8c8d6;
}

.lv-specs div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lv-specs i {
    width: 14px;
    color: #7f98ad;
}

.lv-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lv-variant-chip {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(124, 196, 255, .08);
    color: #b8c8d6;
    font-size: .66rem;
}

/* ----------------------------------------------------------------------------
   SMALLER SCREENS
---------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .vehicles-page {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(320px, auto);
    }

    .lv-col--vehicles {
        grid-column: 1 / -1;
    }
}

/* Fully reusable: every stage is recovered (Starship, New Shepard...) */
.lv-badge--fully {
    color: #E6FBFF;
    border-color: rgba(56, 232, 255, .6);
    background: linear-gradient(135deg, rgba(20, 184, 166, .35), rgba(33, 150, 243, .35));
    box-shadow: 0 0 10px rgba(56, 232, 255, .25);
}

/* Pale tile for logos with dark parts (lv_companies.logo_light = 1) */
.lv-logo--light {
    background: linear-gradient(145deg, #eef4fa, #d5e2ee);
    border: 1px solid rgba(124, 196, 255, .35);
}