/* Atlas — Home. Follows the eve-webtools cosmetic (www/styles.css). */

:root {
    --textColor: #999999;
    --textColor2: #474747;
    --themeColor: #d2d2d2;
    --backgroundColor: #00000042;
    --backgroundColor63: #00000063;
    --color21: rgba(21,21,21,1);
    --color42: rgba(42,42,42,1);
    --color16: #161616;
    --borderColor31: #313131;
    --ghost: #d2d2d242;
    --ghostHover: #d2d2d263;
    --ghostActive: #d2d2d2a0;

    --secHigh: #2fefef;
    --secMid: #efef00;
    --secLow: #f04800;
}

@font-face { font-family: 'Shentox Bold';     src: url(../font/Shentox\ W04\ Bold.ttf); }
@font-face { font-family: 'Shentox SemiBold'; src: url(../font/Shentox\ W04\ SemiBold.ttf); }
@font-face { font-family: 'Shentox Medium';   src: url(../font/Shentox\ W04\ Medium.ttf); }
@font-face { font-family: 'Shentox Regular';  src: url(../font/Shentox\ W04\ Regular.ttf); }
@font-face { font-family: 'Shentox Light';    src: url(../font/Shentox\ W04\ Light.ttf); }

* { box-sizing: border-box; }

html, body {
    padding: 0;
    margin: 0;
    font-family: 'Shentox Regular', 'Segoe UI', sans-serif;
    font-size: 1em;
    color: var(--textColor);
    cursor: default;
    height: 100%;
    width: 100%;
}

#mainWrapperWrapper {
    display: flex;
    justify-content: center;
    background: radial-gradient(circle, rgba(42,42,42,1) 0%, rgba(21,21,21,1) 100%);
    height: 100%;
    width: 100%;
}

#mainWrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* ---------------- top bar ---------------- */

#mainTop {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    background-color: var(--backgroundColor);
    border-bottom: 1px solid var(--borderColor31);
    height: 64px;
    width: 100%;
    z-index: 20;
}

#mainTop-Logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    width: 64px;
    flex-shrink: 0;
}

.svg_ewtLogo { fill: var(--ghost); height: 48px; width: 48px; }
#mainTop-Logo:hover .svg_ewtLogo { fill: var(--ghostHover); }

.topSeparator { width: 1px; height: 36px; background-color: var(--borderColor31); flex-shrink: 0; }

/* app switcher: same boxes and hover swell as the other modules' top bars (.navLogos / .svgNav) */
#appSwitcher { display: flex; flex-direction: row; align-items: center; }

.appIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
}
.appIcon svg { fill: #d2d2d221; width: 24px; height: 24px; transition: all 0.25s linear; }
.appIcon:hover svg, .appIcon-current svg { fill: var(--ghostHover); width: 32px; height: 32px; }

#mainTop-Right { display: flex; flex-direction: row; align-items: center; margin-left: auto; }

#pageMenu { display: flex; flex-direction: row; }

/* site-wide search in the top bar (js/search.js) */
#topSearch { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; margin-right: 10px; border: 1px solid var(--borderColor31); background-color: #00000060; width: 230px; }
#topSearch:focus-within { border-color: var(--themeColor); }
#topSearch .tsIco { width: 15px; height: 15px; fill: none; stroke: var(--textColor2); stroke-width: 2; flex-shrink: 0; }
#topSearchInput { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-family: inherit; font-size: 0.9286em; color: var(--themeColor); }
#topSearchInput::placeholder { color: #666666; }
#topSearchInput::-webkit-search-cancel-button { display: none; }
#topSearch .tsKey { font-size: 0.7857em; color: var(--textColor2); border: 1px solid var(--borderColor31); padding: 0 6px; flex-shrink: 0; }
#topSearch:focus-within .tsKey { display: none; }
#topSearchResults { position: absolute; top: calc(100% + 4px); left: 0; width: 380px; max-width: calc(100vw - 40px); background-color: #0d0d0df2; border: 1px solid var(--borderColor31); max-height: 360px; overflow-y: auto; z-index: 40; }
#topSearchResults .sr-item { text-decoration: none; }
#topSearchResults .sr-type { width: 84px; }
.tsSec { width: 30px; text-align: center; font-size: 0.7143em; color: #151515; flex-shrink: 0; font-family: 'Shentox SemiBold', 'Segoe UI', sans-serif; padding: 1px 0; }

.menuIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 64px;
    cursor: pointer;
}
.menuIcon svg { stroke: var(--ghost); fill: none; stroke-width: 1.6; width: 21px; height: 21px; }
.menuIcon:hover svg, .menuIcon-active svg { stroke: var(--ghostActive); }
.menuIcon-soon { cursor: not-allowed; }
.menuIcon-soon:hover svg { stroke: var(--ghost); }

#pageName {
    font-family: 'Shentox Medium', 'Segoe UI', sans-serif;
    font-size: 1.8em;
    color: var(--ghostHover);
    letter-spacing: 1px;
    margin: 0 20px 0 14px;
    user-select: none;
}

/* ---------------- hero ---------------- */

#hero {
    position: relative;
    flex: 1 1 auto;
    min-height: 260px;
    overflow: hidden;
}

#starCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
}

#heroContent {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    pointer-events: none;
}
#heroContent > * { pointer-events: auto; }

#heroTitle {
    font-family: 'Shentox Light', 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 3.1429em;
    color: var(--themeColor);
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 0 26px rgba(21,21,21,0.9);
    user-select: none;
}

#heroSub { font-size: 1.0714em; color: var(--textColor); text-shadow: 0 0 12px rgba(21,21,21,0.9); min-height: 1.2em; }

#searchWrapper { position: relative; width: min(520px, calc(100vw - 40px)); }

#searchBox {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    background-color: #000000a8;
    border: 1px solid var(--borderColor31);
    padding: 0 18px;
}
#searchBox:focus-within { border-color: var(--themeColor); }
.searchIco { width: 17px; height: 17px; fill: none; stroke: var(--textColor); stroke-width: 2; flex-shrink: 0; }

#searchInput {
    flex: 1;
    background: none;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 1.2143em;
    color: var(--themeColor);
    min-width: 0;
}
#searchInput::placeholder { color: #666666; }
#searchInput::-webkit-search-cancel-button { display: none; }

#searchKey { font-size: 0.8571em; color: var(--textColor2); border: 1px solid var(--borderColor31); padding: 1px 7px; flex-shrink: 0; }

#searchResults {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background-color: #0d0d0df2;
    border: 1px solid var(--borderColor31);
    max-height: 320px;
    overflow-y: auto;
    z-index: 30;
}
.sr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 1em;
    cursor: pointer;
    color: var(--textColor);
}
.sr-item:hover, .sr-item.sel { background-color: #d2d2d20f; color: var(--themeColor); }
.sr-type { font-size: 0.7143em; letter-spacing: 1px; color: var(--textColor2); width: 90px; flex-shrink: 0; text-transform: uppercase; }
.sr-sub { margin-left: auto; font-size: 0.8571em; color: var(--textColor2); }
.sr-note { padding: 7px 14px; font-size: 0.7857em; color: var(--textColor2); border-top: 1px solid #232323; }

#heroChips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 1em; }
.chip {
    padding: 5px 14px;
    background-color: var(--backgroundColor);
    cursor: pointer;
    user-select: none;
    color: var(--textColor);
    text-decoration: none;
}
.chip:hover { color: var(--themeColor); }
.chip-soon { cursor: not-allowed; }
.chip-soon:hover { color: var(--textColor); }

/* ---------------- tiles ---------------- */

#tiles {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 0 40px 14px 40px;
    flex-shrink: 0;
}

.tile {
    flex: 1 1 0;
    background-color: var(--backgroundColor);
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    min-height: 208px;
}
#tileViolent, #tileWar { flex: 1.1 1 0; }

.tileTitle {
    font-family: 'Shentox Light', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.2857em;
    color: var(--ghostHover);
    letter-spacing: 2px;
    margin: 0;
    user-select: none;
}

.tabRow { display: flex; gap: 3px; font-size: 0.8929em; flex-wrap: wrap; }
.tab {
    padding: 6px 13px;
    background: none;
    border: 1px solid var(--borderColor31);   /* constant — selection never touches the frame */
    font-family: inherit;
    font-size: inherit;
    color: var(--textColor2);
    cursor: pointer;
}
.tab:hover { color: var(--textColor); }
.tab-active {
    background-color: #d2d2d208;
    color: var(--themeColor);
    box-shadow: inset 3px 0 0 #d2d2d2;        /* the leading tick marks the active option */
}

.tileList { display: flex; flex-direction: column; gap: 4px; font-size: 1em; }
.tileEmpty { color: var(--textColor2); font-size: 0.9286em; padding: 12px 0; }

.row { display: flex; gap: 8px; align-items: center; min-width: 0; }
a.row { text-decoration: none; color: inherit; margin: 0 -8px; padding: 0 8px; }
a.row:hover { background-color: #d2d2d20a; }
a.row:hover .sys { color: #ffffff; }
.row .rank { color: var(--textColor2); width: 14px; font-size: 0.8571em; flex-shrink: 0; }
.row .sys { color: var(--themeColor); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .reg { color: var(--textColor2); font-size: 0.8571em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .val { margin-left: auto; color: var(--textColor); flex-shrink: 0; }

.secBadge {
    width: 36px;
    text-align: center;
    font-size: 0.7857em;
    color: #151515;
    flex-shrink: 0;
    font-family: 'Shentox SemiBold', 'Segoe UI', sans-serif;
}

.warTag {
    font-size: 0.7143em;
    letter-spacing: 1px;
    color: #151515;
    padding: 1px 6px;
    flex-shrink: 0;
    font-family: 'Shentox SemiBold', 'Segoe UI', sans-serif;
}
.warTag-sov { background-color: var(--ghostHover); }
.warTag-timer { background-color: #ff5c5c; }
.warTag-fw { background-color: #ffb648; }
.warTag-inc { background-color: #ff8c42; }
.warHot { color: #ff9a9a; }
.warWarm { color: #ffd9a1; }

.statGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.statV { font-size: 1.8571em; color: var(--themeColor); font-variant-numeric: tabular-nums; }
.statL { font-size: 0.75em; color: var(--textColor2); letter-spacing: 1px; text-align: center; }

.tileFoot { font-size: 0.7857em; color: var(--textColor2); }

/* ---------------- footer ---------------- */

#LegalNotice {
    font-size: 0.8571em;
    color: #353535;
    text-align: center;
    padding: 2px 16px 6px 16px;
    flex-shrink: 0;
}
#prelegnot { min-height: 1em; }
#legnot { font-size: 0.7143em !important; }

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
    html, body { height: auto; min-height: 100%; overflow-y: auto; }
    #mainWrapperWrapper { height: auto; min-height: 100vh; }
    #mainWrapper { height: auto; min-height: 100vh; overflow: visible; }
    #hero { flex: none; height: 46vh; min-height: 320px; }
    #tiles { flex-direction: column; gap: 14px; padding: 0 16px 12px 16px; }
    .tile, #tileViolent, #tileLive, #tileWar { flex: none; min-height: 0; }
    #appSwitcher .appIcon { width: 46px; }
    #pageName { font-size: 1.4em; margin-right: 12px; }
    #heroTitle { font-size: 2.4286em; }
}

@media (max-width: 640px) {
    #pageMenu .menuIcon { width: 34px; }
    #topSearch { width: 120px; }
    #topSearch .tsKey { display: none; }
    #appSwitcher { display: none; }
    #legnot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
