/* Theme: hud — Elite Dangerous cockpit HUD
   Loaded last via THEME=hud. */

:root {
    --hud-bg: #0a0a0c;
    --hud-panel: #14151a;
    --hud-orange: #ff7100;
    --hud-cyan: #19b3e6;
    --hud-text: #e8e6e3;
    --hud-muted: #9a9792;
    --hud-border: rgba(255, 113, 0, .55);
}

html {
    background-color: var(--hud-bg);
}

body {
    background-color: var(--hud-bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 113, 0, .016) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 4px);
    color: var(--hud-text);
    font-family: "Exo 2", "Roboto", sans-serif;
}

/* headings */
h1, h2, h3, h4, h5, h6,
.head, .subhead, .navbar-brand, .nav-link, .dropdown-item,
.card-title, .btn {
    font-family: "Orbitron", "Exo 2", sans-serif;
    letter-spacing: .06em;
}

h1, h2, h3, h4, h5, h6, .head {
    color: var(--hud-orange);
    text-transform: uppercase;
    font-weight: 700;
}

.subhead, p, li, td, th, .card-text {
    color: var(--hud-text);
    font-family: "Exo 2", "Roboto", sans-serif;
    text-transform: none;
}

p.sub, .sub, .text-secondary, .date-stamp, .smaller-text, .smallerer-text {
    color: var(--hud-muted) !important;
}

a, a:visited {
    color: var(--hud-cyan);
}
a:hover, a:focus {
    color: var(--hud-orange);
}

/* section backgrounds -> HUD panels */
.background-dark, #title, #wrapper, #md-wrapper {
    background-color: transparent;
}

/* nav */
.top-navbar, .navbar-mod {
    background: linear-gradient(180deg, rgba(20, 21, 26, 0) 0%, rgba(10, 10, 12, .92) 85%, #0a0a0c 100%);
    border-bottom: 1px solid rgba(255, 113, 0, .35);
}
.navbar-dark .navbar-nav .nav-link {
    color: var(--hud-muted);
    text-transform: uppercase;
    font-size: .85rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--hud-orange);
    box-shadow: inset 0 -2px 0 var(--hud-orange);
}
.dropdown-menu, .dropdown-menu.background-light {
    background-color: var(--hud-panel);
    border: 1px solid var(--hud-border);
    box-shadow: 0 0 14px rgba(255, 113, 0, .18);
}
.dropdown-item {
    color: var(--hud-text);
    text-transform: uppercase;
    font-size: .8rem;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(255, 113, 0, .12);
    color: var(--hud-orange);
}
.dropdown-divider {
    border-top-color: rgba(255, 113, 0, .3);
}
#currTime {
    color: var(--hud-cyan);
    font-family: "Orbitron", monospace;
    letter-spacing: .1em;
}

/* hero */
#title h1.head, .head {
    font-weight: 700;
    text-transform: uppercase;
}
#title h1.head::after {
    content: "";
    display: block;
    width: 220px;
    height: 3px;
    margin-top: .5rem;
    background: var(--hud-orange);
    box-shadow: 0 0 12px rgba(255, 113, 0, .7);
}
#title .subhead, .subhead {
    font-weight: 400;
    letter-spacing: .02em;
}

/* buttons -> square HUD buttons */
.btn, .home-btn {
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--hud-orange);
    color: var(--hud-orange);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(255, 113, 0, .25);
}
.btn:hover, .btn:focus, .home-btn:hover, .home-btn:focus {
    background: var(--hud-orange);
    border-color: var(--hud-orange);
    color: #0a0a0c;
    box-shadow: 0 0 16px rgba(255, 113, 0, .55);
}
.btn-danger {
    border-color: #ff2d2d;
    color: #ff2d2d;
}
.btn-danger:hover {
    background: #ff2d2d;
    color: #0a0a0c;
}
.btn-info {
    border-color: var(--hud-cyan);
    color: var(--hud-cyan);
}
.btn-info:hover {
    background: var(--hud-cyan);
    color: #0a0a0c;
}

/* cards / panels — chamfered corners + top bar */
.card {
    background-color: var(--hud-panel);
    border: 1px solid var(--hud-border);
    border-top: 3px solid var(--hud-orange);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(255, 113, 0, .12);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.card.shadow {
    box-shadow: 0 0 10px rgba(255, 113, 0, .12);
}
.card-title, .card-title.text-highlight, .text-highlight {
    color: var(--hud-orange);
}
.card-body, .card-text {
    color: var(--hud-text);
}
.card-img, .card-img-top, .zoom-img {
    border-radius: 0;
}

/* gallery caption bar */
#news-holder .card .card-body {
    background-color: var(--hud-panel);
    border-top: 1px solid rgba(255, 113, 0, .35);
}

/* build containers (news/shipbuilds rows) */
.build-container {
    background-color: var(--hud-panel);
    border: 1px solid var(--hud-border);
    border-top: 3px solid var(--hud-orange);
    box-shadow: 0 0 10px rgba(255, 113, 0, .12);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    padding: 1rem;
    margin-bottom: 1rem;
}

/* carousel controls */
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(52%) sepia(98%) saturate(2000%) hue-rotate(1deg);
}

/* guides */
#md-wrapper h2, #md-wrapper h3 {
    color: var(--hud-orange);
    border-left: 3px solid var(--hud-orange);
    padding-left: .6rem;
}
#md-wrapper a {
    color: var(--hud-cyan);
}
#md-wrapper a:hover {
    color: var(--hud-orange);
}
#md-wrapper table, #md-wrapper th, #md-wrapper td {
    border-color: rgba(255, 113, 0, .3);
}
#md-wrapper img {
    border: 1px solid var(--hud-border);
}
#md-wrapper code {
    color: var(--hud-cyan);
    background: rgba(25, 179, 230, .08);
}
#md-wrapper hr {
    border-top-color: rgba(255, 113, 0, .3);
}

/* mobile: build containers + variant tabs must not overflow */
@media (max-width: 575.98px) {
    .build-container.mx-5 {
        margin-left: .25rem !important;
        margin-right: .25rem !important;
    }
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

/* forms / inputs (hudcolor) */
.slider, textarea, input, select {
    accent-color: var(--hud-orange);
}
textarea, input[type="text"], select {
    background-color: var(--hud-panel);
    color: var(--hud-text);
    border: 1px solid var(--hud-border);
}
.nav-tabs {
    border-bottom-color: var(--hud-border);
}
.nav-tabs .nav-link {
    color: var(--hud-muted);
    border: 1px solid transparent;
}
.nav-tabs .nav-link.active {
    color: var(--hud-orange);
    background-color: var(--hud-panel);
    border-color: var(--hud-border) var(--hud-border) var(--hud-panel);
}

/* timeline */
.timeline::after {
    background: var(--hud-orange);
    box-shadow: 0 0 8px rgba(255, 113, 0, .5);
}
.timeline-content {
    background-color: var(--hud-panel);
    border: 1px solid var(--hud-border);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.timeline-content h2 {
    color: var(--hud-cyan);
}

/* footer */
#footer {
    background-color: var(--hud-panel);
    border-top: 1px solid rgba(255, 113, 0, .4);
}
#footer a, .social-icon {
    color: var(--hud-muted);
}
#footer a:hover, .social-icon:hover {
    color: var(--hud-orange);
}

/* misc */
.back-to-top, #back-top {
    border-radius: 0;
    border: 1px solid var(--hud-orange);
    color: var(--hud-orange);
    background: rgba(10, 10, 12, .8);
}
.back-to-top:hover, #back-top:hover {
    background: var(--hud-orange);
    color: #0a0a0c;
}
.container404 h4 {
    color: var(--hud-orange);
}
.spinner-border {
    color: var(--hud-orange) !important;
}
::selection {
    background: rgba(255, 113, 0, .35);
}
