/* ==========================================================================
   HEAD Tipp - WM 2026 Theme
   Custom CSS overrides loaded after app.css
   ========================================================================== */

/* --- Color Palette (WM 2026) --- */
:root {
    --wm-navy: #0f172a;
    --wm-blue: #1e3a8a;
    --wm-royal: #1d4ed8;
    --wm-gold: #f59e0b;
    --wm-gold-light: #fbbf24;
    --wm-gold-dark: #d97706;
    --wm-surface: #f8fafc;
    --wm-text: #1e293b;
    --wm-white: #ffffff;
}

/* --- Header --- */
header {
    position: relative;
    overflow: hidden;
}

header img {
    width: 100%;
    height: auto;
    display: block;
}

.header-title-wrapper {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-size: 2.25rem !important;
    line-height: 1.2;
}

.headerSubTitle {
    font-size: 1rem !important;
    font-weight: 400;
    color: var(--wm-gold-light) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* --- Navigation (FIXED: readable white text on dark gradient) --- */
nav,
nav.bg-blue-900 {
    background: linear-gradient(135deg, var(--wm-navy) 0%, var(--wm-blue) 100%) !important;
    color: var(--wm-white) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* All nav links: white with gold hover */
nav a,
nav .nav-link,
nav a:link,
nav a:visited {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav .nav-link:hover {
    color: var(--wm-gold-light) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

nav a.active,
nav a[aria-current="page"] {
    border-bottom: 2px solid var(--wm-gold);
    color: var(--wm-white) !important;
}

/* Dropdown menus in nav */
nav .dropdown-menu,
nav .dropdown-item {
    background-color: var(--wm-navy) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--wm-gold-light) !important;
}

/* Mobile nav hamburger button */
#navigation-btn {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--wm-white) !important;
}

/* --- Buttons --- */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
.bg-slate-500 {
    background: linear-gradient(135deg, var(--wm-royal) 0%, var(--wm-blue) 100%) !important;
    border-color: var(--wm-blue) !important;
    color: var(--wm-white) !important;
    transition: all 0.2s ease;
}

.btn-primary:hover,
button.btn-primary:hover,
.bg-slate-500:hover {
    background: linear-gradient(135deg, var(--wm-blue) 0%, var(--wm-navy) 100%) !important;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.4);
    transform: translateY(-1px);
}

/* Gold accent buttons */
.btn-gold,
.btn-success {
    background: linear-gradient(135deg, var(--wm-gold) 0%, var(--wm-gold-dark) 100%) !important;
    border-color: var(--wm-gold-dark) !important;
    color: var(--wm-navy) !important;
    font-weight: 600;
}

.btn-gold:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--wm-gold-light) 0%, var(--wm-gold) 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* --- Body & Content --- */
body {
    background-color: var(--wm-surface) !important;
}

/* --- Cards & Panels --- */
.bg-white {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- Tables --- */
table thead th {
    background: linear-gradient(135deg, var(--wm-navy) 0%, var(--wm-blue) 100%) !important;
    color: var(--wm-white) !important;
}

table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.04) !important;
}

/* --- Links (only outside nav!) --- */
main a,
.content a,
.bg-white a,
table a {
    color: var(--wm-royal);
    transition: color 0.2s ease;
}

main a:hover,
.content a:hover,
.bg-white a:hover,
table a:hover {
    color: var(--wm-gold-dark);
}

/* --- Headings --- */
h1, h2, h3 {
    color: var(--wm-navy) !important;
}

/* --- Form Inputs --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--wm-royal) !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15) !important;
    outline: none;
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, var(--wm-navy) 0%, var(--wm-blue) 100%) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a {
    color: var(--wm-gold-light) !important;
}

footer a:hover {
    color: var(--wm-white) !important;
}

/* --- Badges & Labels --- */
.badge,
.label {
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 8px;
}

/* --- Gold accent for special elements --- */
.text-gold {
    color: var(--wm-gold) !important;
}

.bg-gold {
    background-color: var(--wm-gold) !important;
    color: var(--wm-navy) !important;
}

/* --- Scrollbar (subtle branding) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--wm-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--wm-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wm-navy);
}

/* --- Selection color --- */
::selection {
    background: var(--wm-gold);
    color: var(--wm-navy);
}
