/* ── Waveform canvas for audio recorder ── */
.waveform-canvas {
  border-radius: 0.375rem;
  background: #f8f9fa;
}

/* ── Mirror front-facing camera preview ── */
.video-mirror {
  transform: scaleX(-1);
}

/* ── Camera indicator badge ── */
.camera-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  background: #f0f0f0;
  color: #333;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}

.camera-indicator-icon {
  font-size: 1rem;
}

/* ── Video player responsive wrapper ── */
.video-wrapper {
  position: relative;
  width: 100%;
}
.video-wrapper .video-js {
  width: 100%;
}

/* ── Video recorder preview / playback ── */
.recording-video-frame {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 400px);
  margin-inline: auto;
  object-fit: contain;
  background: transparent;
}

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;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Media tab pills ── */
#mediaTabs .btn {
  background: #eee;
  color: #555;
  border: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition:
    background 0.2s,
    color 0.2s;
}

#mediaTabs .btn.active {
  background: #212529;
  color: #fff;
}

#mediaTabs .btn:not(.active):hover {
  background: #ddd;
}

/* ── Landing page (full-screen) ── */
.landing-fullscreen {
  position: relative;
  min-height: calc(100vh - 56px); /* subtract navbar height */
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  margin: -1.5rem -0.75rem -60px; /* offset container padding + footer margin */
  color: #fff;
}

.landing-cover-area {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}

.landing-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.landing-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* ── Content containers ── */
.content-narrow {
  max-width: 600px;
  width: 100%;
}

/* ── Card / panel backgrounds ── */
.card-panel {
  background: #fafafa;
}

/* ── Vertically-centred capture panel ── */
.capture-panel {
  min-height: calc(100vh - 280px);
  min-height: calc(100dvh - 280px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  box-shadow: none !important;
}

.info-block {
  background: #f0f0f0;
}

/* ── Text utilities ── */
.text-subtitle {
  font-size: 0.9rem;
}

.text-caption {
  font-size: 0.95rem;
}

.text-description {
  font-size: 0.95rem;
  color: #555;
}

.text-meta {
  font-size: 0.85rem;
}

.text-timestamp {
  font-size: 0.8rem;
}

.text-tiny {
  font-size: 0.75rem;
}

.text-subdued {
  color: #555;
}

/* ── Buttons ── */
.btn {
  touch-action: manipulation; /* prevent double-tap zoom on iOS */
}

.btn-delete-sm {
  font-size: 0.75rem;
  background: #dc3545;
  color: #fff;
}

/* ── Photo & media elements ── */
.photo-feed-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.photo-preview-img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.event-cover-sm {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.cover-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.cover-preview-sm {
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
}

/* ── Audio elements ── */
.audio-card {
  background: #fff;
}

.audio-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
}

.audio-card-icon {
  font-size: 1.2rem;
}

.audio-card-number {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.7;
}

.audio-player {
  height: 36px;
}

/* ── Delete page ── */
.warning-icon {
  font-size: 2.5rem;
}

/* ── Home hero ── */
.hero-section {
  min-height: 60vh;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 400px;
}

/* ── Layout chrome ── */
.navbar-bg {
  background: #fff;
}

/* ── Landing page title ── */
.landing-title {
  font-size: 1.75rem;
}

/* ── Sticky bottom action bar (Instagram-style) ── */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 0.4rem 0;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.sticky-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 1rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.15s;
}

.sticky-action-item:hover,
.sticky-action-item:active {
  color: #212529;
  text-decoration: none;
}

.sticky-action-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.sticky-action-label {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

/* Bottom padding so content isn't hidden behind the sticky bar */
.has-sticky-bar {
  padding-bottom: 70px;
}
