/* ── main.css ── Arena-Ice theme for the main app layout ── */

/* ─── Global background ──────────────────────────────────── */
body {
    background: #edf4f9;
}

/* ─── MudBlazor AppBar ───────────────────────────────────── */
.am-appbar.mud-appbar {
    background-color: #ffffff !important;
    border-bottom: 2px solid rgba(0, 91, 172, 0.38) !important;
    box-shadow: 0 2px 10px rgba(0, 31, 78, 0.07) !important;
}

/* ─── Wordmark ───────────────────────────────────────────── */
.am-wordmark {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.am-wordmark-ice {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.am-wordmark-manager {
    color: #001f4e;
}

/* ─── League feed title colours per entry kind (ADR-0022 §6) ─── */
/* FanPost: ice-wordmark blue. WCAG-weak on white paper — accepted for Phase 1 brand fidelity. */
.am-feed-title-fanpost {
    color: #00d4ff;
}

.am-feed-title-news {
    color: #001f4e;
}

.am-feed-title-system {
    color: #C8102E;
}

/* ─── Desktop nav buttons ────────────────────────────────── */
.am-nav-btn.mud-button-root {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #3e6080 !important;
    transition: color 0.15s, background 0.15s, box-shadow 0.15s !important;
    min-width: 0 !important;
}

.am-nav-btn.mud-button-root:hover {
    color: #005BAC !important;
    background: rgba(0, 91, 172, 0.07) !important;
}

.am-nav-btn--active.mud-button-root {
    color: #005BAC !important;
    box-shadow: inset 0 -2px 0 #C8102E !important;
}

/* ─── Hamburger button ───────────────────────────────────── */
.am-hamburger-btn.mud-icon-button {
    color: #3e6080 !important;
    transition: color 0.15s, background 0.15s !important;
}

.am-hamburger-btn.mud-icon-button:hover {
    color: #005BAC !important;
    background: rgba(0, 91, 172, 0.07) !important;
}

/* ─── Main content area ──────────────────────────────────── */
.mud-main-content {
    background: #edf4f9 !important;
}

@media (max-width: 959px) {
    .mud-main-content {
        padding-bottom: 68px !important;
    }
}

/* ─── Bottom navigation bar ──────────────────────────────── */
.am-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 2px solid rgba(0, 91, 172, 0.28);
    z-index: 1300;
    box-shadow: 0 -2px 14px rgba(0, 31, 78, 0.08);
}

@media (min-width: 960px) {
    .am-bottom-nav {
        display: none;
    }
}

.am-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #7a9ab8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: color 0.15s;
    padding: 6px 4px 8px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.am-bottom-nav-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.am-bottom-nav-item.is-active {
    color: #005BAC;
}

.am-bottom-nav-item.is-active svg {
    filter: drop-shadow(0 0 3px rgba(0, 91, 172, 0.30));
}

.am-bottom-nav-item.is-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 2px;
    background: #C8102E;
    box-shadow: 0 0 6px rgba(200, 16, 46, 0.40);
}

.am-bottom-nav-item.is-disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* "Benutzer" account menu rendered as a bottom-nav item via MudMenu */
.am-bottom-nav-menu.mud-menu {
    flex: 1;
    display: flex;
}

.am-bottom-nav-menu .am-bottom-nav-item {
    width: 100%;
    cursor: pointer;
}

/* ─── Dashboard (dash-root) ──────────────────────────────── */
.dash-root {
    --mud-palette-primary-hover: rgba(0, 91, 172, 0.07);
    color: #0a1e3a;
}

.dash-root .mud-paper {
    background: #ffffff !important;
    border: 1px solid rgba(0, 91, 172, 0.13) !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 14px rgba(0, 31, 78, 0.07) !important;
}

.dash-root .mud-typography-h5 {
    font-family: 'Anton', sans-serif !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.05em !important;
    color: #001f4e !important;
    font-weight: 400 !important;
}

.dash-root .mud-typography-subtitle1 {
    font-family: 'Anton', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.06em !important;
    color: #003a80 !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
}

.dash-root .mud-typography-body1,
.dash-root .mud-typography-body2 {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.79rem !important;
    color: #2a4a68 !important;
}

.dash-root .mud-text-secondary {
    color: #5a80a0 !important;
}

.dash-root .mud-link {
    color: #005BAC !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.74rem !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0, 91, 172, 0.28) !important;
    padding-bottom: 1px !important;
}

.dash-root .mud-link:hover {
    color: #003f7a !important;
    border-color: rgba(0, 91, 172, 0.55) !important;
}

/* MudSimpleTable */
.dash-root .mud-simple-table {
    background: transparent !important;
}

.dash-root .mud-simple-table thead th {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #5a80a0 !important;
    border-bottom: 1px solid rgba(0, 91, 172, 0.16) !important;
    padding: 6px 16px !important;
    background: transparent !important;
}

.dash-root .mud-simple-table tbody td {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.79rem !important;
    color: #2a4a68 !important;
    border-bottom: 1px solid rgba(0, 91, 172, 0.08) !important;
    padding: 6px 16px !important;
    background: transparent !important;
}

.dash-root .mud-simple-table.mud-table-striped tbody tr:nth-child(even) td {
    background: rgba(0, 91, 172, 0.03) !important;
}

.dash-root .mud-simple-table tbody tr:hover td {
    background: rgba(0, 91, 172, 0.05) !important;
}

/* MudTable */
.dash-root .mud-table-root {
    background: transparent !important;
}

.dash-root .mud-table-head .mud-table-cell {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #5a80a0 !important;
    border-bottom: 1px solid rgba(0, 91, 172, 0.16) !important;
    background: transparent !important;
}

.dash-root .mud-table-body .mud-table-cell {
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.79rem !important;
    color: #2a4a68 !important;
    border-bottom: 1px solid rgba(0, 91, 172, 0.08) !important;
    background: transparent !important;
}

.dash-root .mud-table-body .mud-table-row:hover .mud-table-cell {
    background: rgba(0, 91, 172, 0.05) !important;
}

.dash-root .mud-table-sort-label {
    color: #5a80a0 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

/* chips */
.dash-root .mud-chip {
    background: rgba(0, 91, 172, 0.08) !important;
    color: #005BAC !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.67rem !important;
    border: 1px solid rgba(0, 91, 172, 0.18) !important;
}

/* icon colors */
.dash-root .mud-icon-color-primary {
    color: #005BAC !important;
}

.dash-root .mud-icon-color-success {
    color: #0a7040 !important;
}

/* alert */
.dash-root .mud-alert {
    background: rgba(0, 91, 172, 0.05) !important;
    border: 1px solid rgba(0, 91, 172, 0.18) !important;
    color: #2a4a68 !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.79rem !important;
    border-radius: 2px !important;
}

/* progress spinner */
.dash-root .mud-progress-circular svg circle {
    stroke: #005BAC !important;
}

/* spielbericht link button */
.dash-root .mud-button-root.mud-button-text-primary {
    color: #005BAC !important;
    font-family: 'IBM Plex Mono', monospace !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.05em !important;
}

.dash-root .mud-button-root.mud-button-text-primary:hover {
    background: rgba(0, 91, 172, 0.07) !important;
    color: #003f7a !important;
}
