
:root{
  --white: #ffffff;
  --blue:  #0d2983;
  --cyan:  #0cb7f4;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --border: rgba(12,183,244,0.22);


  --panel:  rgba(13,41,131,0.38);   
  --panel2: rgba(13,41,131,0.22);   

  --shadow: 0 14px 40px rgba(0,0,0,0.45);
  --radius: 16px;

  --max: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}


*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

:root {
  --type-airliner:        #4fa7ff;
  --type-freight:         #6fc1e5;
  --type-jet:             #00d3a9;
  --type-military:        #ff4b4b;
  --type-single:          #ffcd47;
  --type-single-turbo:    #e89b00;
  --type-twin-engine:     #c084fc;
  --type-twin-piston:     #9e77ff;
  --type-twin-turbo:      #a855f7;
  --type-twin-prop:       #b794f4;
  --type-helicopter:      #3bd670;
  --type-glider:          #a3ffd6;
  --type-experimental:    #ff7fd1;
  --type-other:           #bbbbbb;
}
.stat-box {
  position: relative;
}

.stat-box::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(6px);
  max-width: 240px;
  width: max-content;
  white-space: normal;

  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(5, 15, 40, 0.96);
  border: 1px solid rgba(224, 201, 144, 0.65);
  color: #e6f0ff;
  font-size: 0.75rem;
  line-height: 1.25;
  box-shadow: 0 0 10px rgba(0,0,0,0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;

  transform-origin: top centre;
  inset-inline: auto;
}

.stat-box {
  position: relative;
  overflow: visible;
}
.card {
  overflow: visible;
}



.stat-box::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(2px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(5, 15, 40, 0.96) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 49;
}

.stat-box:hover::after,
.stat-box:hover::before {
  opacity: 1;
  visibility: visible;
}

.stat--wide {
  grid-column: 1 / -1; 
}
.type-badge,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.type-badge {
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  color: black;
}
.type-badge[data-type="Airliner"]        { background: var(--type-airliner); }
.type-badge[data-type="Freight"]         { background: var(--type-freight); }
.type-badge[data-type="Jet"]             { background: var(--type-jet); }
.type-badge[data-type="Military"]        { background: var(--type-military); }
.type-badge[data-type="Single Engine"]   { background: var(--type-single); }
.type-badge[data-type="Single Turboprop"]{ background: var(--type-single-turbo); }
.type-badge[data-type="Twin Engine"]     { background: var(--type-twin-engine); }
.type-badge[data-type="Twin Piston"]     { background: var(--type-twin-piston); }
.type-badge[data-type="Twin Turbo"]      { background: var(--type-twin-turbo); }
.type-badge[data-type="Twin Prop"]       { background: var(--type-twin-prop); }
.type-badge[data-type="Twin Turboprop"]  { background: var(--type-twin-prop); }
.type-badge[data-type="Helicopter"]      { background: var(--type-helicopter); }
.type-badge[data-type="Glider"]          { background: var(--type-glider); }
.type-badge[data-type="Experimental"]    { background: var(--type-experimental); }
.type-badge[data-type="Other"]           { background: var(--type-other); }

.type-badge:hover {
  filter: brightness(1.25);
  box-shadow: 0 0 6px currentColor;
}

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;

  background-image: url("assets/1.jpg");
  background-size: cover;
  background-position: centre;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 700px at 18% 10%, rgba(12,183,244,0.18), transparent 55%),
    radial-gradient(900px 700px at 85% 0%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(13,41,131,0.78), rgba(0,0,0,0.76));
  pointer-events: none;
  z-index: 0;
}

.wrap{
  position: relative;
  z-index: 1;
  max-width: 1800px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

a{ color: var(--cyan); text-decoration: none; }
a:hover{ text-decoration: underline; }

code{ font-family: var(--mono); color: rgba(255,255,255,0.92); }

.muted{ color: var(--muted); }

.header{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  padding: 16px 16px 14px;
}

.header__top{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header h1{
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: 0.2px;
  color: var(--white);
}

.header__nav{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbtn{
  display: inline-flex;
  align-items: centre;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(12,183,244,0.35);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
}

.navbtn:hover{
  background: rgba(12,183,244,0.10);
  border-color: rgba(12,183,244,0.55);
  text-decoration: none;
}

.controls{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 10px;
}

.controls__row{
  display: grid;
  grid-template-columns: 1.4fr 260px 120px 120px;
  gap: 10px;
  align-items: end;
}

.controls__row--split{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}


.field{
  display: grid;
  gap: 6px;
}

.field__label{
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  outline: none;
}

.field input:focus,
.field select:focus{
  border-color: rgba(12,183,244,0.65);
  box-shadow: 0 0 0 4px rgba(12,183,244,0.18);
}

.field--tight{
  min-width: 0;
}

.btn{
  display: inline-flex;
  align-items: centre;
  justify-content: centre;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(12,183,244,0.35);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  user-select: none;
}

.btn:hover{
  background: rgba(12,183,244,0.10);
  border-color: rgba(12,183,244,0.55);
}
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.card__badge-group {
  display: flex;
  flex-direction: row;   
  align-items: flex-start;
  gap: 6px;
}


.card__career-badge {
  flex: 0 0 auto;
  width: 64px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}

.card__career-badge--static {
  pointer-events: none;     
}

.card__manual-badge {
  cursor: pointer;
}

.card__title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.card__career-badge {
  flex: 0 0 auto;
  width: 64px;       
  height: auto;
  pointer-events: none;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}


.chips{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips__legend{
  padding: 0 6px;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chip{
  display: inline-flex;
  align-items: centre;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12,183,244,0.30);
  background: rgba(12,183,244,0.08);
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
}

.chip input{
  accent-color: var(--cyan);
}
.chips--specialisations {
  display: block;                
  padding: 10px 12px;
}

.chips--specialisations .chips__scroll {
  max-height: 260px;      
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 4px;
}


.chips--specialisations .chip {
  font-size: 0.85rem;
  padding: 6px 9px;
}

.statusline{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: centre;
}

.content{
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.edition{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13,41,131,0.50), rgba(0,0,0,0.35));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.edition__head{
  display: flex;
  align-items: centre;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.edition__title{
  margin: 0;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.2px;
}

.badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
}

.edition__toggle{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(12,183,244,0.35);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.edition__toggle:hover{
  background: rgba(12,183,244,0.10);
  border-color: rgba(12,183,244,0.55);
}

.edition__body{
  padding: 14px;
}

.grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 900px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1500px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1500px){
  .grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}



.card {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-auto-rows: auto;
  min-width: 0;
}



.thumb {
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;  
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.thumb.wide img {
  object-fit: contain; 
}

.thumb-price {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #e6f0ff;
  font-family: var(--mono);
  font-size: 0.86rem;
  border: 1px solid rgba(12,183,244,0.7);
  box-shadow: 0 0 10px rgba(0,0,0,0.75);
  pointer-events: none; 
}
.card,
.card__body,
.content {
  overflow: visible;
}

.card > .thumb {
  grid-row: 1;
}
.grid {
  align-items: start;
}


[hidden] { display: none !important; }

.thumb img[data-placeholder="1"]{
  object-fit: contain;
  width: 92%;
  height: 92%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45));
}
.thumb img.use-contain {
  background: rgba(0,0,0,0.15);
  padding: 6px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
.career-table {
  width: 100%;
  border-collapse: collapse;
}

.career-table td {
  padding: 4px 8px;
  font-family: var(--mono);
  color: #eaf3ff;
}

.stat--career .stat__k {
  margin-bottom: 4px;
  font-weight: 600;
  color: #cdddf7;
}

.card__body {
  padding: 12px 12px 10px;
  display: grid;
  gap: 8px;
  align-content: start;       
  min-height: 260px;          
}


.card__title{
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.95);
}
.card__extra {
  margin-top: 6px;
}

.card__extra[hidden] {
  display: none;
}

.btn--card-toggle {
  margin-top: 6px;
  width: 100%;
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.26);
}

.btn--card-toggle:hover {
  background: rgba(12,183,244,0.12);
  border-color: rgba(12,183,244,0.55);
}

.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255,255,255,0.18);
  color: black; 

}


.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}
.stat--wide {
  grid-column: 1 / -1; 
}

.career-price-wrapper[hidden] {
  display: none;
}

.career-toggle {
  margin-top: 4px;
  width: 100%;
  background: rgba(0,0,0,0.26);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(12,183,244,0.35);
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  cursor: pointer;
}
.career-toggle:hover {
  background: rgba(12,183,244,0.12);
  border-color: rgba(12,183,244,0.55);
}
.career-toggle.active {
  background: rgba(12,183,244,0.22);
  border-color: rgba(12,183,244,0.65);
}
.career-price:hover {
  background: rgba(12,183,244,0.12);
  border-color: rgba(12,183,244,0.55);
}

.stat{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 8px 10px;
}


.stat__k{
  font-size: 0.82rem;
  color: var(--muted);
}

.stat__v{
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}

.stat__v--prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-row {
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(12,183,244,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.price-amount {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.96);
}
.empty-price {
  opacity: 0.5;
  font-size: 0.8rem;
}

.price-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.empty{
  padding: 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(0,0,0,0.12);
  color: var(--muted);
}

.footer{
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.16);
  backdrop-filter: blur(6px);
}
.tags > * {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tag {
  border: none;
  background: rgba(255,255,255,0.18);
  color: black;
}

.stat__v--vfe {
  white-space: normal;
  word-break: keep-all;
}

.stat--vfe .stat__v {
  padding: 0;
}

.vfe-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.vfe-table td {
  padding: 2px 6px;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

.vfe-table td:last-child {
  text-align: right;
}
.vfe-table tr:hover td {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.stat__v--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag--spec {
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.15px;
  background: rgba(255,255,255,0.16);
  color: #000000; 
}

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.75);
  background: rgba(13, 41, 131, 0.9);
  color: #e0c990;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  font-weight: 600;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}


#backToTop:hover {
  background: rgba(13, 41, 131, 1);
  transform: translateY(-2px);
}
.field select {
  background: rgba(13,41,131,0.75);
  color: var(--white);
  border: 1px solid rgba(12,183,244,0.55);
}

.field select option {
  background: rgba(13,41,131,0.95);
  color: var(--white);
}

.field select option:hover {
  background: rgba(0, 170, 255, 0.35);
}
.career-table td:first-child {
  text-align: right;
  font-weight: 600;
}

.career-table td:last-child {
  text-align: left;
  padding-left: 10px;
  font-weight: normal;
  white-space: nowrap;
}

.career-table tr:hover td {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.career-table td {
  white-space: normal;
  word-break: break-word;
}


.career-table .cr {
  margin-left: 2px;
  white-space: nowrap;
  display: inline;
}

.stat--career table {
  width: max-content;   
  min-width: 100%;      
}
.thumb-liveries {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #e6f0ff;
  font-family: var(--mono);
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 0 10px rgba(0,0,0,0.75);
  cursor: pointer;
  z-index: 20;
}

.thumb-liveries:hover {
  background: rgba(12,183,244,0.35);
  border-color: rgba(12,183,244,0.85);
}
