/* ============================================================
   Top Executor — dark directory theme
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0e0e10;
    --panel: #14172b;
    --panel-deep: #0d0f20;
    --border: #2a2e4a;
    --text: #e9eaf0;
    --muted: #9aa0b4;
    --red: #c1121f;
    --green: #22c55e;
    --yellow: #eab308;
    --gray: #9ca3af;
    --maroon: #4a0d0d;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: #050506; border-bottom: 2px solid var(--red); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 22px; font-weight: 800; color: #fff; }
.brand-tag { font-size: 13px; color: #9a9a9a; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: #d5d5d5; font-size: 16px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.search-toggle { background: none; border: none; color: #d5d5d5; cursor: pointer; display: flex; }
.search-toggle:hover { color: #fff; }
.header-search { display: none; border-top: 1px solid #1c1c1e; padding: 12px 0; }
.header-search.open { display: block; }
.header-search input { width: 100%; background: #141417; border: 1px solid #2c2c2e; border-radius: 10px; color: #fff; padding: 12px 16px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 70px 20px 60px;
    background: #0a0a12 url('../img/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,10,.72); }
.hero-inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; }
.hero h1 { font-size: 54px; font-weight: 800; color: #fff; margin-bottom: 18px; letter-spacing: -1px; }
.hero p { font-size: 17px; color: #dcdce4; }

/* ---------- Directory toolbar ---------- */
.directory { padding: 26px 0 60px; }
.toolbar { background: var(--panel); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.toolbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.toolbar-row:last-child { margin-bottom: 0; }
.search-box { position: relative; flex: 1; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6b7194; }
.search-box input {
    width: 100%; background: var(--panel-deep); border: 1px solid var(--border);
    border-radius: 10px; color: #fff; padding: 12px 16px 12px 42px; font-size: 15px;
}
.search-box input::placeholder { color: #6b7194; }
.view-toggle { display: flex; background: var(--panel-deep); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { background: none; border: none; color: #8a8f9e; padding: 10px 14px; cursor: pointer; display: flex; }
.view-toggle button.active { background: #2f6fed; color: #fff; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.pill {
    background: transparent; border: 1px solid #3a3f5c; color: var(--muted);
    border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer; font-weight: 500;
}
.pill:hover { border-color: #565d85; color: #cfd3e3; }
.pill.active[data-filter="all"] { border-color: #8a8f9e; color: #fff; background: #232842; }
.pill[data-filter="working"] { color: var(--green); border-color: rgba(34,197,94,.5); }
.pill.active[data-filter="working"] { background: rgba(34,197,94,.15); color: var(--green); border-color: var(--green); }
.pill[data-filter="outdated"] { color: var(--yellow); border-color: rgba(234,179,8,.5); }
.pill.active[data-filter="outdated"] { background: rgba(234,179,8,.15); color: var(--yellow); border-color: var(--yellow); }
.pill[data-filter="down"] { color: #ef4444; border-color: rgba(239,68,68,.5); }
.pill.active[data-filter="down"] { background: rgba(239,68,68,.15); color: #ef4444; border-color: #ef4444; }
.pill[data-filter="discontinued"] { color: var(--gray); border-color: rgba(156,163,175,.4); }
.pill.active[data-filter="discontinued"] { background: rgba(156,163,175,.12); color: #d1d5db; border-color: var(--gray); }
.sort-wrap { margin-left: auto; }
.sort-wrap select {
    background: var(--panel-deep); border: 1px solid var(--border); color: #cfd3e3;
    border-radius: 10px; padding: 10px 14px; font-size: 14px; cursor: pointer;
}
.showing { color: #8a8f9e; font-size: 14px; margin: 6px 2px 16px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--panel); border-radius: 12px; padding: 14px;
    position: relative; transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card.hidden { display: none; }
.status-badge {
    position: absolute; top: 22px; left: 22px; z-index: 2;
    font-size: 11px; font-weight: 700; letter-spacing: .5px;
    padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.55);
    border: 1px solid;
}
.status-working { color: var(--green); border-color: var(--green); }
.status-outdated { color: var(--yellow); border-color: var(--yellow); }
.status-down { color: #ef4444; border-color: #ef4444; }
.status-discontinued { color: var(--gray); border-color: var(--gray); }

/* thumbnail built with CSS (white brand panel + dark download panel) */
.thumb { display: flex; border-radius: 8px; overflow: hidden; min-height: 150px; }
.thumb-left {
    background: #f2f2f4; color: #141414; flex: 1.15;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px 10px; text-align: center;
}
.thumb-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #333; }
.thumb-name { font-size: 30px; font-weight: 900; letter-spacing: .5px; line-height: 1.1; margin: 4px 0; }
.thumb-name.long { font-size: 20px; }
.thumb-sub { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #444; }
.thumb-right {
    background: #1b1f38; flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 26px 10px 14px; text-align: center;
}
.thumb-tag {
    position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    font-size: 8px; font-weight: 700; letter-spacing: .8px; color: #aeb4cc;
    background: #0d0f20; border: 1px solid #2a2e4a; border-radius: 999px; padding: 2px 9px;
    white-space: nowrap;
}
.thumb-logo {
    width: 54px; height: 54px; border-radius: 50%; background: #f2f2f4; color: #141414;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; margin-bottom: 8px;
}
.thumb-dl { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.thumb-dl-sub { font-size: 9px; letter-spacing: 1px; color: #8a8f9e; font-weight: 600; }

.card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.meta-pill {
    background: var(--panel-deep); border-radius: 999px; padding: 6px 14px;
    font-size: 12px; color: #9aa0b4; display: inline-flex; align-items: center; gap: 6px;
}
.meta-pill svg { color: #6b7194; }
.meta-pill b { color: #d5d9e6; font-weight: 600; }
.card-title { display: block; color: #fff; font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.card-title:hover { color: #ffb3b8; }

/* list view */
.cards.list { grid-template-columns: 1fr; }
.cards.list .card { display: flex; gap: 18px; align-items: center; }
.cards.list .thumb { width: 300px; min-height: 120px; flex-shrink: 0; }
.cards.list .card-body { flex: 1; }
.cards.list .status-badge { top: 14px; left: 14px; }

.load-more-wrap { text-align: center; margin-top: 34px; }
.load-more {
    background: var(--red); color: #fff; border: none; border-radius: 999px;
    padding: 13px 44px; font-size: 16px; font-weight: 600; cursor: pointer;
}
.load-more:hover { background: #a50e1a; }
.no-results { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* ---------- Executor archive ---------- */
.archive-head { text-align: center; padding: 56px 20px 30px; }
.archive-head h1 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.archive-head p { color: var(--muted); font-size: 16px; }
.exec-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.exec-item {
    background: var(--panel); border-radius: 12px; padding: 18px;
    display: flex; gap: 20px; align-items: center;
}
.exec-item .thumb { width: 260px; min-height: 130px; flex-shrink: 0; }
.exec-item h3 { font-size: 21px; margin-bottom: 8px; }
.exec-item h3 a:hover { color: #ffb3b8; }
.exec-item .exec-meta-text { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.exec-byline { font-size: 13px; color: #6b7194; }
.pagination { display: flex; justify-content: center; gap: 10px; padding: 26px 0 60px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: #cfd3e3; padding: 0 14px;
}
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: #fff; }

/* ---------- Detail page ---------- */
.detail-hero {
    position: relative; text-align: center; padding: 64px 20px;
    background: #0a0a12 url('../img/hero-bg.jpg') center/cover no-repeat;
}
.detail-hero::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,10,.7); }
.detail-hero h1 { position: relative; z-index: 1; font-size: 38px; font-weight: 800; color: #fff; max-width: 900px; margin: 0 auto; }
.detail-body { max-width: 880px; margin: 0 auto; padding: 30px 20px 70px; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.byline .who { color: #cfd3e3; font-size: 15px; }
.cat-pill { background: var(--red); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 16px; }
.detail-body .intro { font-size: 16.5px; color: #d5d9e6; margin-bottom: 30px; }
.detail-body h2 { font-size: 25px; color: #fff; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.detail-body h3 { font-size: 19px; color: #f0f1f7; margin: 24px 0 10px; }
.detail-body .blurb { color: var(--muted); margin-bottom: 14px; }
.dl-rows { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 8px; }
.dl-row { display: flex; gap: 8px; font-size: 15px; padding: 5px 0; color: var(--muted); }
.dl-row b { color: #fff; font-weight: 600; min-width: 74px; }
.dl-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
    background: var(--red); color: #fff; font-weight: 700; font-size: 16px;
    border-radius: 999px; padding: 12px 34px;
}
.dl-btn:hover { background: #a50e1a; }
.faq-item { margin-bottom: 18px; }
.faq-item h4 { font-size: 17px; color: #fff; margin-bottom: 6px; }
.faq-item h4 .arrow { color: var(--red); margin-right: 8px; }
.faq-item p { color: var(--muted); }
.rating-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 36px; text-align: center; }
.rating-box .rate-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.stars { display: inline-flex; gap: 6px; cursor: pointer; }
.stars svg { width: 30px; height: 30px; fill: #3a3f5c; transition: fill .1s; }
.stars svg.lit { fill: var(--yellow); }
.rating-stats { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Static pages ---------- */
.static-body { max-width: 880px; margin: 0 auto; padding: 50px 20px 70px; }
.static-body h1 { font-size: 36px; color: #fff; margin-bottom: 20px; }
.static-body h2 { font-size: 22px; color: #fff; margin: 28px 0 10px; }
.static-body p { color: #cfd3e3; margin-bottom: 14px; }
.static-body ul { color: #cfd3e3; margin: 0 0 14px 22px; }
.contact-form { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-top: 20px; }
.contact-form label { display: block; color: #cfd3e3; font-size: 14px; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
    width: 100%; background: var(--panel-deep); border: 1px solid var(--border);
    border-radius: 10px; color: #fff; padding: 12px 14px; font-size: 15px; margin-bottom: 16px;
}
.contact-form button { background: var(--red); color: #fff; border: none; border-radius: 999px; padding: 12px 40px; font-size: 16px; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 46px 20px 34px; }
.footer-col h5 { color: #fff; font-size: 15px; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-col p { color: #d9b3b3; font-size: 14.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #e8c9c9; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #fff; }
.tag-ico { color: #f0a0a0; font-weight: 700; }
.social-btns { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.social-btn {
    background: #fff; color: #1a1a1a; border-radius: 999px; padding: 9px 22px;
    display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
}
.social-btn:hover { background: #f0e0e0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 26px; text-align: center; }
.copyright { color: #f0d0d0; font-size: 14px; margin-bottom: 8px; }
.trademark { color: #c99898; font-size: 12.5px; max-width: 900px; margin: 0 auto; }

.to-top {
    position: fixed; right: 24px; bottom: 86px; width: 46px; height: 46px; border-radius: 50%;
    background: #1c1f36; border: 1px solid var(--border); color: #fff; cursor: pointer;
    display: none; align-items: center; justify-content: center; z-index: 200;
}
.to-top.show { display: flex; }
.lang-switch {
    position: fixed; right: 24px; bottom: 24px; z-index: 200;
    background: #fff; color: #1a1a1a; border-radius: 12px; padding: 8px 16px;
    display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
    box-shadow: 0 4px 18px rgba(0,0,0,.4); cursor: pointer;
}
.lang-switch .globe { display: flex; color: #1a56db; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: 38px; }
    .exec-item { flex-direction: column; align-items: stretch; }
    .exec-item .thumb { width: 100%; }
}
@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    .toolbar-row { flex-wrap: wrap; }
    .sort-wrap { margin-left: 0; width: 100%; }
    .sort-wrap select { width: 100%; }
    .detail-hero h1 { font-size: 28px; }
    .main-nav { gap: 16px; }
}
