﻿:root {
    --hbo-color-bg: #21262B;
    --hbo-color-text: #b2b0bf;
    --hbo-color-text2: #84838F;
    --hbo-color-appbar-text: #b2b0bf;
    --hbo-color-selected: #6CA5F4;
    --hbo-color-header: #ffffff;
    --hbo-color-header2: #C4C4C4;
    --hbo-color-footer: #ffffff;
    --hbo-color-gradient-bg1: #21262B;
    --hbo-color-gradient-bg2: #263340;
}

/* Override Mud's palette */
body, .mud-theme-default, .mud-theme-dark, .mud-theme-light {
    --mud-palette-background: var(--hbo-color-bg);
    --mud-palette-surface: var(--hbo-color-bg);
    --mud-palette-primary: var(--hbo-color-selected);
    --mud-palette-text-primary: var(--hbo-color-text);
    --mud-palette-text-secondary: var(--hbo-color-text2);
    --mud-palette-appbar-background: var(--hbo-color-bg);
    --mud-palette-appbar-text: var(--hbo-color-appbar-text);
}

.hbo-bg-app-gradient {
    background: linear-gradient(90deg, var(--hbo-color-gradient-bg1) 0%, var(--hbo-color-gradient-bg2) 100%);
    background-repeat: no-repeat;
}

.layout-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mud-main-content {
    flex: 1 0 auto;
}

.active-nav {
    color: var(--mud-palette-primary) !important;
    border-bottom: 2px solid var(--mud-palette-primary);
    font-weight: bold;
}

.app-bar-links {
    white-space: nowrap;
    margin-left: 0px !important;
    color: var(--mud-palette-appbar-text);
}

    .app-bar-links:hover {
        color: var(--mud-palette-primary) !important;
    }

/* Container for logo + text in app bar */
.app-bar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: fit-content;
}

    /* The logo image */

    .app-bar-logo-link img {
        display: block;
        width: auto;
        object-fit: contain;
        height: 4rem;
    }

@media (max-width: 480px) {
    .app-bar-logo-link img {
        height: 1.75rem;
    }

    .brand-text {
        font-size: 1rem;
        letter-spacing: .1rem;
    }
}

    /* Text next to logo */
    .app-bar-logo-link .mud-typography {
        align-self: center;
        font-weight: bold;
        color: aqua;
        font-size: 1.2rem;
        width: fit-content
    }

@media (max-width: 960px) {
    .app-bar-logo-link img {
        height: 2rem;
    }

    .app-bar-links {
        font-size: 14px;
    }
}


.mud-appbar {
    background: linear-gradient(90deg, var(--hbo-color-gradient-bg1) 0%, var(--hbo-color-gradient-bg2) 100%) !important;
}

    /* width is overridden  */
    .mud-appbar .mud-nav-item {
        width: auto !important;
        flex: 0 0 auto; /* size to content */
    }

        .mud-appbar .mud-nav-item .mud-nav-link-text {
            margin-left: 0px !important;
            font-size: 15px;
        }

    .mud-appbar .mud-toolbar-appbar {
        height: fit-content !important;
    }


.brand-text {
    letter-spacing: .2rem;
    font-weight: 400;
    font-family: Consolas;
    font-size: 32px;
    user-select: none;
    margin-inline-start: 12px;
    margin-bottom: 0;
    color: var(--hbo-color-selected);
}

.gradient-brand-text {
    background: linear-gradient(90deg, #5184DB 0%, #6CA5F4 100%);
    -webkit-background-clip: text; /* Safari/Chrome */
    background-clip: text; /* Standard */
    -webkit-text-fill-color: transparent;
    color: transparent; /* ensure no solid color shows */

    letter-spacing: .2rem;
    font-weight: 400;
    font-family: Consolas;
    font-size: 32px;
    user-select: none;
    margin-inline-start: 12px;
    margin-bottom: 0;
}

.gradient-brand-text-background {
    background: linear-gradient(90deg, #5184DB 0%, #6CA5F4 100%);
    -webkit-background-clip: text; /* Safari/Chrome */
    background-clip: text; /* Standard */
    -webkit-text-fill-color: transparent;
    color: transparent; /* ensure no solid color shows */
}

.gradient-brand-text-sm {
    letter-spacing: .2rem;
    font-weight: 400;
    font-family: Consolas;
    font-size: 24px;
    user-select: none;
    margin-bottom: 0;
}


.mud-paper {
    background: var(--mud-palette-surface);
}

.hover-card .mud-card {
    transition: transform .12s ease, box-shadow .12s ease;
}

.hover-card:hover .mud-card {
    transform: translateY(-2px);
    box-shadow: var(--mud-elevation-6);
}

.gradient-header-text {
    background: linear-gradient(90deg, #5184DB 0%, #6CA5F4 100%);
    -webkit-background-clip: text; /* Safari/Chrome */
    background-clip: text; /* Standard */
    -webkit-text-fill-color: transparent;
    color: transparent; /* ensure no solid color shows */

    font-weight: 400;
    font-family: Consolas;
    font-size: 28px;
    user-select: none;
    margin-bottom: 0;
}

/* smaller brand on mobile */
.brand-text-small {
    font-size: 22px;
    letter-spacing: .12rem;
}

/* Menu button color safeguard (in case theme classes conflict) */
.drawer-trigger {
    color: var(--mud-palette-primary) !important;
}

/* Drawer: match app background + text */
.mobile-drawer,
.mobile-drawer .mud-drawer-content {
    background: var(--mud-palette-background) !important;
    color: var(--mud-palette-text-primary) !important;
}

/* Drawer links */
.drawer-link {
    display: block;
    padding: .6rem 0;
    color: var(--mud-palette-appbar-text);
}

    .drawer-link:hover {
        color: var(--mud-palette-primary);
    }


.site-footer {
    display: block; /* let grid handle inner layout */
    min-height: 48px;
    color: var(--hbo-color-footer);
}

.footer-shadow-overlay {
    position: relative;
    z-index: 1;
}

    .footer-shadow-overlay::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -8px;
        height: 8px;
        background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0));
        pointer-events: none;
    }

.footer-wrap {
    padding: 10px 16px;
}

/* ---------- grid layout ---------- */
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* desktop: 3 cols */
    gap: 12px 20px;
    align-items: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-left {
    align-items: flex-start;
}

.footer-center {
    align-items: center;
    text-align: center;
}

.footer-right {
    align-items: flex-end;
    text-align: right;
}

/* rows with icon + text */
.footer-row-entry {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
}

    .footer-row-entry .mud-icon-root {
        font-size: 18px;
    }

/* typography */
.site-footer .mud-typography {
    margin: 0;
    line-height: 1.25;
}

.footer-text {
    font-size: .95rem;
    color: var(--hbo-color-footer);
}

.footer-link-strong {
    color: #776be7;
    font-weight: 700;
    text-decoration: none;
}

    .footer-link-strong:hover {
        text-decoration: underline;
    }

/* make long links wrap instead of overflowing */
.footer-text a {
    overflow-wrap: anywhere;
}

/* ---------- responsive ---------- */
/* tablets: 2 columns */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }
}

/* phones: single column, stack everything */
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-center {
        align-items: flex-start;
        text-align: left;
    }

    .footer-text {
        font-size: .9rem;
    }
}

/* Allow shrinking on ios to prevent overflowing */
.mud-grid .mud-item,
.mud-grid-item,
.mud-card,
.mud-paper {
    min-width: 0;
}

/* Some IOS Versions glitch on gaps */
@supports not (gap: 1rem) {
    .row-with-gap {
        margin-left: -8px;
    }

        .row-with-gap > * {
            margin-left: 8px;
        }
}