/* ═══════════════════════════════════════════════════════════════════════════
   Livery Library — Compass Virtual Airlines
   user/themes/compass-virtual/css/livery-library.css

   ⚑ Lifted out of the page on 2026-09-16, with the filtering script, so that
   nothing under user/pages/fleet/livery-library/ carries a denylisted tag.

   ⚑ NOT SHARED WITH livery-gallery.css. The two pages have the word "livery" in
   common and nothing else: this is the download library wired to Google Drive,
   that one is a visual catalogue of the liveries Compass has flown. Their class
   prefixes are ll- and lg-. Do not merge them on the strength of the name.

   ⚑ THE :root BLOCK BELOW IS LOCAL TO THIS PAGE. It redeclares the Compass
   palette rather than inheriting it, which is how it arrived. Left as-is: the
   values match, and unpicking it belongs with a wider look at compass.css
   rather than with this refactor.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --compass-teal: #6d97a8;
    --compass-teal-dark: #4a7a8a;
    --compass-gold: #c8962e;
    --compass-bg-light: #f5f8f9;
    --compass-bg-card: #ffffff;
    --compass-border: #d8e0e3;
    --compass-text: #2c3e44;
    --compass-text-muted: #6c7a82;
}

.ll-header {
    background: linear-gradient(135deg, var(--compass-teal) 0%, var(--compass-teal-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    margin: -1rem -1rem 2rem -1rem;
    border-bottom: 4px solid var(--compass-gold);
}
.ll-header h1 {
    font-family: 'Athelas', Georgia, serif;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    letter-spacing: 0.02em;
    color: #FFFDF9 !important;
}
.ll-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.92;
    margin: 0;
    color: #FFFDF9 !important;
}

.ll-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}
.ll-stats span {
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
}
.ll-stats strong {
    color: #ffe9bd;
}

.ll-filters {
    background: var(--compass-bg-light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--compass-border);
}
.ll-filter-row {
    margin-bottom: 0.85rem;
}
.ll-filter-row:last-of-type {
    margin-bottom: 0;
}
.ll-filter-label {
    display: inline-block;
    font-weight: 600;
    color: var(--compass-text);
    margin-right: 0.75rem;
    min-width: 110px;
    font-size: 0.9rem;
}
.ll-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    margin: 0.15rem 0.2rem 0.15rem 0;
    background: white;
    border: 1px solid var(--compass-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--compass-text);
    transition: all 0.15s;
    user-select: none;
}
.ll-pill:hover {
    border-color: var(--compass-teal);
    background: #eef3f5;
}
.ll-pill.active {
    background: var(--compass-teal);
    border-color: var(--compass-teal);
    color: white;
}
.ll-pill .ll-pill-count {
    opacity: 0.7;
    font-size: 0.8em;
    margin-left: 0.25rem;
}

.ll-search {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.ll-search input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--compass-border);
    border-radius: 4px;
    font-size: 0.95rem;
}
.ll-search input:focus {
    outline: none;
    border-color: var(--compass-teal);
    box-shadow: 0 0 0 2px rgba(109,151,168,0.15);
}
.ll-sort {
    padding: 0.5rem;
    border: 1px solid var(--compass-border);
    border-radius: 4px;
    background: white;
}

.ll-results-info {
    margin: 1rem 0;
    color: var(--compass-text-muted);
    font-size: 0.9rem;
}

.ll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.ll-card {
    background: var(--compass-bg-card);
    border: 1px solid var(--compass-border);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.ll-card:hover {
    border-color: var(--compass-teal);
    box-shadow: 0 4px 12px rgba(74,122,138,0.12);
    transform: translateY(-2px);
}

.ll-card-image {
    background: linear-gradient(135deg, #e8eef0 0%, #d8e0e3 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ll-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ll-card-image .ll-placeholder {
    color: var(--compass-teal-dark);
    font-family: 'Athelas', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

.ll-card-body {
    padding: 0.85rem 1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ll-card-rego {
    font-family: 'Athelas', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--compass-text);
    margin-bottom: 0.15rem;
    letter-spacing: 0.02em;
}
.ll-card-rego .ll-no-rego {
    color: var(--compass-text-muted);
    font-style: italic;
    font-weight: 400;
    font-size: 0.95rem;
}
.ll-card-type {
    font-size: 0.85rem;
    color: var(--compass-text-muted);
    margin-bottom: 0.5rem;
}
.ll-card-type .ll-iata {
    color: var(--compass-gold);
    font-weight: 600;
    margin-right: 0.35rem;
}
.ll-card-scheme {
    font-size: 0.85rem;
    color: var(--compass-text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.ll-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}
.ll-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: #eef3f5;
    color: var(--compass-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.ll-tag-yma { background: rgba(109,151,168,0.18); color: var(--compass-teal-dark); }
.ll-tag-ymf { background: rgba(200,150,46,0.18); color: var(--compass-gold); }
.ll-tag-ymx { background: rgba(120,80,140,0.18); color: #6b3d8a; }
.ll-tag-special { background: rgba(220,80,80,0.18); color: #b04040; }
.ll-tag-platform { background: rgba(80,130,90,0.18); color: #4a7556; }

.ll-card-meta {
    font-size: 0.78rem;
    color: var(--compass-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.ll-card-meta .ll-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.ll-card-meta .ll-meta-label {
    font-weight: 600;
    color: var(--compass-text);
}

.ll-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.4rem;
}
.ll-btn {
    flex: 1;
    padding: 0.45rem 0.85rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.ll-btn-download {
    background: var(--compass-teal);
    color: white;
}
.ll-btn-download:hover {
    background: var(--compass-teal-dark);
}
.ll-btn-disabled {
    background: #e8eef0;
    color: var(--compass-text-muted);
    cursor: not-allowed;
}

.ll-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--compass-text-muted);
    background: var(--compass-bg-light);
    border-radius: 6px;
}

@media (max-width: 640px) {
    .ll-header {
        padding: 1.5rem 1rem;
    }
    .ll-header h1 {
        font-size: 1.8rem;
    }
    .ll-grid {
        grid-template-columns: 1fr;
    }
    .ll-filter-label {
        display: block;
        min-width: 0;
        margin-bottom: 0.3rem;
    }
}
