/* UAT Step 1 remediation: unify the ordinary application shell with the dark Gavelum art-market identity. */

:root {
    --uat-black: #0b0d0c;
    --uat-panel: #111412;
    --uat-panel-2: #171b18;
    --uat-ivory: #eee9df;
    --uat-soft: #c2bdb3;
    --uat-muted: #a39d93;
    --uat-gold: #b18d50;
    --uat-gold-bright: #d5b777;
    --uat-line: rgba(238, 233, 223, 0.14);
    --uat-line-strong: rgba(213, 183, 119, 0.34);
}

html,
body { background: var(--uat-black); }
body {
    color: var(--uat-ivory);
    background: radial-gradient(circle at 16% 6%, rgba(177, 141, 80, 0.08), transparent 28rem), var(--uat-black);
}
body a { color: var(--uat-ivory); }
body a:hover,
body a:focus { color: var(--uat-gold-bright); }
body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6 { color: var(--uat-ivory); }
body small,
body .small,
body .form-text,
body .text-secondary { color: var(--uat-muted) !important; }

.gavelum-header {
    color: var(--uat-ivory);
    border-bottom: 1px solid var(--uat-line);
    background: rgba(11, 13, 12, 0.96);
    backdrop-filter: blur(16px);
}
.gavelum-masthead { display: none; }
.gavelum-shell-panel { border-right: 0; border-left: 0; background: transparent; }
.gavelum-navbar > .container { min-height: 78px; border-bottom: 0; }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.gavelum-logo-horizontal {
    display: block !important;
    width: clamp(210px, 22vw, 285px) !important;
    height: 62px !important;
    max-width: 285px !important;
    max-height: 62px !important;
    object-fit: contain !important;
}
.gavelum-logo-mark {
    display: none !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
}

.gavelum-navbar .nav-link { color: rgba(238, 233, 223, 0.72); }
.gavelum-navbar .nav-link:hover,
.gavelum-navbar .nav-link:focus { color: var(--uat-ivory); }
.gavelum-navbar .nav-link::after { background: var(--uat-gold); }
.gavelum-account { border-left-color: var(--uat-line); }
.gavelum-username { color: var(--uat-muted); }
.navbar-toggler {
    border: 1px solid var(--uat-line-strong);
    border-radius: 0;
    filter: invert(1) sepia(.2);
}

.gavelum-main {
    width: min(100% - 3rem, 1440px);
    max-width: 1440px;
    min-height: calc(100vh - 210px);
    margin: 0 auto;
    padding-top: clamp(2.75rem, 6vw, 5.5rem) !important;
    padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

.gavelum-footer {
    color: rgba(238, 233, 223, 0.68);
    border-top-color: var(--uat-line);
    background: var(--uat-black);
}
.gavelum-footer a { color: var(--uat-ivory); }
.gavelum-footer-copy,
.gavelum-footer-meta { color: var(--uat-muted); }
.gavelum-footer-brand-link,
.gv7-footer-brand-link { display: inline-block; text-decoration: none; }
.gavelum-footer-logo {
    display: block;
    width: min(320px, 72vw);
    height: auto;
    margin-bottom: .55rem;
}
.gv7-footer-logo {
    display: block;
    width: 240px;
    max-width: 72vw;
    height: auto;
}

.card,
.list-group-item,
.empty-state,
.transaction-state-callout,
.transaction-state-note,
.transaction-action-required {
    color: var(--uat-ivory);
    border-color: var(--uat-line);
    background: var(--uat-panel);
    box-shadow: none;
}
.card:hover,
.artwork-link:hover,
.artwork-card:hover { border-color: var(--uat-line-strong); }
.card a:not(.btn),
.list-group-item a:not(.btn) { color: var(--uat-ivory); }
.artwork-thumb,
.artwork-media,
.artwork-media img { background: #070908; border-color: var(--uat-line); }

.auction-price,
dl.row dd,
.form-check-label,
.table,
.table td,
.table th { color: var(--uat-ivory); }
dl.row dt,
.form-label { color: var(--uat-muted); }
hr,
.table,
.table td,
.table th,
.list-group { border-color: var(--uat-line); }

.form-control,
.form-select {
    color: var(--uat-ivory);
    border-color: rgba(238, 233, 223, 0.2);
    background: #0f1210;
}
.form-control:focus,
.form-select:focus {
    color: var(--uat-ivory);
    border-color: var(--uat-gold-bright);
    background: #0f1210;
    box-shadow: 0 0 0 0.2rem rgba(177, 141, 80, 0.16);
}
.form-control::placeholder { color: #77736c; }
.form-select option { color: var(--uat-ivory); background: #0f1210; }
.form-check-input { border-color: rgba(238, 233, 223, 0.34); background-color: #0f1210; }
.form-check-input:checked { border-color: var(--uat-gold); background-color: var(--uat-gold); }

.btn-dark,
.btn-dark:focus { color: #0b0d0c; border-color: var(--uat-ivory); background: var(--uat-ivory); }
.btn-dark:hover { color: #0b0d0c; border-color: #fffdf7; background: #fffdf7; }
.btn-outline-dark,
.btn-outline-dark:focus { color: var(--uat-ivory); border-color: rgba(238, 233, 223, 0.3); background: transparent; }
.btn-outline-dark:hover { color: #0b0d0c; border-color: var(--uat-ivory); background: var(--uat-ivory); }

.text-bg-light,
.text-bg-scheduled {
    color: var(--uat-ivory) !important;
    border-color: var(--uat-line-strong) !important;
    background: rgba(177, 141, 80, 0.12) !important;
}
.text-bg-closed { color: var(--uat-ivory) !important; background: #242824 !important; }
.alert-secondary,
.alert-light { color: var(--uat-ivory); border-color: var(--uat-line); background: var(--uat-panel); }

.uathero {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(320px, 1.18fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
    min-height: min(62vh, 620px);
}
.uathero-brand { padding-right: clamp(0rem, 3vw, 2.5rem); }
.uat-brand-logo {
    display: block;
    width: min(270px, 72vw);
    height: auto;
    margin: 0 0 1.2rem;
}
.uathero-kicker {
    margin-bottom: 1rem;
    color: var(--uat-gold-bright);
    font-size: .66rem;
    font-weight: 760;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.uathero h1 { margin-bottom: 1.2rem; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.uathero p { max-width: 42rem; color: var(--uat-soft); }
.uat-auth-card {
    width: min(100%, 560px);
    margin-left: auto;
    border-top: 1px solid var(--uat-line-strong);
}
.uat-calendar-head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--uat-line); }
.uat-calendar-grid .card { min-height: 100%; transition: transform 160ms ease, border-color 160ms ease; }
.uat-calendar-grid .card:hover { transform: translateY(-2px); }

/* Homepage-specific UAT fixes. These use !important because home CSS loads after this global sheet. */
.gv7-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.gv7-logo-full {
    display: block;
    width: 245px;
    height: 60px;
    object-fit: contain;
}
.gv7-logo-mark { display: none; width: 50px; height: 50px; object-fit: contain; }
.gv7-mobile-nav { display: none !important; position: relative; }
.gv7-mobile-nav summary {
    display: grid;
    width: 46px;
    height: 42px;
    padding: 10px 9px;
    align-content: space-between;
    cursor: pointer;
    list-style: none;
    border: 1px solid rgba(238, 233, 223, .28);
}
.gv7-mobile-nav summary::-webkit-details-marker { display: none; }
.gv7-mobile-nav summary span { display: block; height: 1px; background: #eee9df; }
.gv7-mobile-nav nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    width: min(78vw, 310px);
    padding: .65rem;
    border: 1px solid rgba(238, 233, 223, .14);
    background: #111412;
    box-shadow: 0 24px 55px rgba(0,0,0,.42);
}
.gv7-mobile-nav nav a {
    padding: .9rem .8rem;
    color: rgba(238, 233, 223, .88) !important;
    border-bottom: 1px solid rgba(238, 233, 223, .08);
    font-size: .72rem;
    font-weight: 740;
    letter-spacing: .13em;
    text-decoration: none;
    text-transform: uppercase;
}
.gv7-mobile-nav nav a:last-child { border-bottom: 0; }

@media (max-width: 991.98px) {
    .gavelum-account {
        margin-top: .75rem;
        padding: .9rem 0 0;
        border-top: 1px solid var(--uat-line);
        border-left: 0;
    }
    .uathero { grid-template-columns: 1fr; min-height: 0; gap: 2rem; }
    .uat-auth-card { width: 100%; margin: 0; }
}

@media (max-width: 820px) {
    .gv7-nav { display: none !important; }
    .gv7-mobile-nav { display: block !important; }
    .gv7-brand { grid-template-columns: 1fr !important; align-items: start !important; }
    .gv7-brand h2 { max-width: 18ch !important; }
}

@media (max-width: 560px) {
    .gavelum-main {
        width: min(100% - 2rem, 1440px);
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    .gavelum-logo-horizontal { display: none !important; }
    .gavelum-logo-mark { display: block !important; }
    .uat-brand-logo { width: min(220px, 68vw); }
    .uathero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
    .gv7-logo-full { display: none; }
    .gv7-logo-mark { display: block; }
    .gv7-footer-logo { width: 190px; }
    .gv7-brand { gap: 1.5rem !important; }
    .gv7-brand h2 { max-width: 19ch !important; font-size: clamp(2rem, 9vw, 2.7rem) !important; line-height: 1.04 !important; }
}
