﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ── Dark-modal themes: outline buttons need light text/border for contrast ──
   Solar modal bg: #073642  Slate: #32383e  Cyborg: #222
   Default btn-outline-primary on these backgrounds is near-invisible.        */
body.theme-solar .btn-outline-primary,
body.theme-solar .btn-outline-secondary,
body.theme-slate .btn-outline-primary,
body.theme-slate .btn-outline-secondary,
body.theme-cyborg .btn-outline-primary,
body.theme-cyborg .btn-outline-secondary {
    --bs-btn-color: #e9ecef;
    --bs-btn-border-color: #adb5bd;
    --bs-btn-hover-bg: #495057;
    --bs-btn-hover-border-color: #adb5bd;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #495057;
    --bs-btn-active-border-color: #adb5bd;
    --bs-btn-active-color: #fff;
    color: #e9ecef;
}

/* Camera sharing pages: a row whose switch is off is dimmed, so the cameras that will not
   appear on the site are obvious without reading each switch. */
.camera-row-off {
    opacity: .55;
}

.camera-row-off .form-check-label {
    font-style: italic;
}

/* Hunt Planner preview panel on the home pages' navigation cards (see _HuntPlannerPreview.cshtml). */
.hp-preview {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.2rem 0.6rem;
    background: #0b3d4f;
    color: #e2e8f0;
}

/* On the landing page the panel sits beside square images, so it is square too. */
.hp-preview-square {
    aspect-ratio: 1 / 1;
}

.hp-preview-square > .hp-preview {
    height: 100%;
}

.hp-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.hp-preview-title {
    font-weight: 700;
    color: #f1c40f;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hp-preview-when {
    color: #86efac;
    font-weight: 600;
    white-space: nowrap;
}

.hp-preview-bars {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.hp-preview-bars span {
    flex: 1 1 0;
    background: #475569;
    border-radius: 2px 2px 0 0;
}

.hp-preview-bars span.hunt { background: #3b82f6; }
.hp-preview-bars span.rec { background: #22c55e; }

.hp-preview-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
