/* ============================================================
   Aviation Dictionary – Shared Site Styles
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --blue: #4288D8;
    --blue-dark: #3266A2;
    --blue-soft: #eaf1ff;
    --blue-soft-2: #f3f7ff;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e6ebf3;
    --green: #63945E;
    --star: #FFE611;
    --card: #ffffff;
    --window: #F8F8F8;
    --radius: 18px;
    --shadow: 0 1px 1px rgba(0,0,0,0), 0 1px 1px -12px rgba(0,0,0,0);
    --shadow-sm: 0 1px 1px rgba(0,0,0,0);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--ink);
    background: #F8F8F8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
}
a { text-decoration: none; color: inherit; }

/* ---------- Layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 22px 28px 60px; }

/* ---------- Header ---------- */
header {
    display: flex; align-items: center; gap: 28px;
    padding: 6px 4px 26px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
    width: 46px; height: 46px; border-radius: 25%;
    display: grid; place-items: center;
    box-shadow: 0 1px 1px -6px rgba(0,0,0,.25);
    overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
    font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 22px; letter-spacing: -.4px; line-height: 1.05; align-self: center;
}
.brand-name span { display: block; color: black; }

/* ---------- Nav ---------- */
nav { display: flex; align-items: center; gap: 30px; }
nav a {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--muted); font-weight: 600; font-size: 15px;
    padding: 6px 2px; position: relative; transition: color .18s;
}
nav a svg { width: 18px; height: 18px; opacity: .9; }
nav a:hover { color: var(--ink); }
nav a.active { color: var(--blue); }
nav a.active::after {
    content: ""; position: absolute; left: 0; right: 0;
    bottom: -10px; height: 2.5px;
    background: var(--blue); border-radius: 2px;
}

/* ---------- Header search ---------- */
.search { position: relative; min-width: 330px; flex: 0 1 360px; margin-inline: auto; }
.search svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--muted);
}
.search input {
    width: 100%; border: 1px solid var(--line); background: #fff;
    border-radius: 14px; padding: 13px 16px 13px 44px; font-size: 14px;
    font-family: inherit; color: var(--ink); box-shadow: var(--shadow-sm);
    outline: none; transition: border-color .18s, box-shadow .18s;
}
.search input::placeholder { color: #9aa6b8; }
.search input:focus { border-color: #bcd1ff; box-shadow: 0 0 0 4px rgba(66,136,216,.12); }

/* ---------- Panel ---------- */
.panel {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid #eef2f8; overflow: hidden;
}

/* ---------- Entry list ---------- */
.list { padding: 6px 14px 10px; }
.entry {
    display: grid; grid-template-columns: 160px 1fr auto;
    gap: 14px; align-items: center;
    padding: 18px 12px; border-bottom: 1px solid #f1f5fb;
    transition: background .15s; border-radius: 10px;
    cursor: pointer; color: inherit;
}
.entry:last-child { border-bottom: none; }
.entry:hover { background: #f8fbff; }
.entry .term { color: var(--blue); font-weight: 700; font-size: 16px; }
.entry .gloss {
    color: var(--ink-2); font-size: 14.5px; text-align: left;
    display: -webkit-box; -webkit-line-clamp: 4;
    -webkit-box-orient: vertical; overflow: hidden;
}
.entry-arrow{width:28px;height:28px;border-radius:8px;background:var(--window);display:grid;place-items:center;flex:none;transition:background .15s}
.entry:hover .entry-arrow{background:var(--blue-soft)}
.entry-arrow svg{width:15px;height:15px;color:var(--muted)}
.entry:hover .entry-arrow svg{color:var(--blue)}

/* ---------- Search panel (large bar) ---------- */
.search-panel {
    position: relative; display: flex; align-items: center; gap: 12px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid #eef2f8; padding: 14px 16px;
}
.search-panel > svg { width: 22px; height: 22px; color: var(--muted); flex: none; margin-left: 6px; }
.search-panel input {
    flex: 1; min-width: 0; border: none; background: none; outline: none;
    font-family: inherit; font-size: 16px; color: var(--ink); padding: 8px 0;
}
.search-panel input::placeholder { color: #9aa6b8; }
.search-go {
    flex: none; border: none; cursor: pointer; font-family: inherit; font-weight: 700;
    font-size: 15px; color: #fff; background: var(--blue); border-radius: 13px;
    padding: 12px 26px; transition: background .18s, transform .12s;
}
.search-go:hover { background: var(--blue-dark); }
.search-go:active { transform: scale(.97); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 50px; padding: 40px 44px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 20px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-about { color: var(--muted); font-size: 14px; max-width: 300px; line-height: 1.6; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
    display: inline-flex; align-items: center; gap: 10px;
    background: #000; color: #fff; border-radius: 50px;
    padding: 10px 18px; font-size: 14px; font-weight: 700;
    transition: background .18s, transform .12s; white-space: nowrap;
}
.foot-social a:hover { background: #222; }
.foot-social a:active { transform: scale(.97); }
.foot-social svg { width: 17px; height: 17px; flex: none; }
.foot-col h4 {
    font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700;
    letter-spacing: .2px; margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s; }
.foot-col a:hover { color: var(--blue); }
.foot-store { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.foot-store .store { max-width: 130px; width: 100%; justify-content: flex-start; flex: none; }
.store { flex: 0 1 150px; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.store:hover { transform: translateY(-2px); }
.store img { width: 100%; height: auto; display: block; }
.foot-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-bottom p { color: var(--muted); font-size: 13px; }

/* ---------- Panel header ---------- */
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px 18px; border-bottom: 1px solid var(--line); }
.panel-header-left { display: flex; align-items: center; gap: 12px; }
.panel-header h2 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 800; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 20px; }
.panel-header .view-all { color: var(--blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .15s; }
.panel-header .view-all:hover { color: var(--blue-dark); }
.panel-header .view-all svg { width: 15px; height: 15px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--muted); flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .search { flex-basis: 100%; order: 3; min-width: 0; }
    nav { order: 2; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .wrap { padding: 18px 16px 50px; }
    .site-footer { padding: 30px 22px 22px; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
    nav { gap: 18px; font-size: 14px; }
    nav a span { display: none; }
    .entry { grid-template-columns: 1fr auto; gap: 6px; }
    .entry .term { grid-column: 1; }
    .entry .gloss { grid-column: 1; grid-row: 2; }
    .entry-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
