/* ===========================================================
   bface2015_files/enhance.css
   -----------------------------------------------------------
   Visual polish + small UX affordances layered on top of the
   existing 2015 design. Deliberately does NOT change layout,
   spacing, or colors of anything - only adds smooth transitions,
   hover/focus feedback, and a couple of small new widgets
   (back-to-top button, no-results message, loading state).
   =========================================================== */

/* Smooth, subtle feedback on anything interactive - makes the
   site feel more responsive to touch/click without changing how
   anything is laid out. */
a, input[type="submit"], input[type="button"], input[type="image"],
button, .profilel a, div[style*="width: 121px"] {
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover {
  filter: brightness(1.08);
  cursor: pointer;
}

input[type="submit"]:active, input[type="button"]:active, button:active {
  transform: scale(0.97);
}

/* Photo/thumbnail cards get a gentle lift on hover (desktop) -
   purely cosmetic, no size or position change. */
div[style*="width: 121px"]:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Clear, visible focus state for keyboard/accessibility users -
   the existing design has none, so tabbing through the site was
   previously invisible. */
a:focus-visible, input:focus-visible, button:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid #fcc700;
  outline-offset: 2px;
}

/* "No results" empty-state message, used by the search/filter
   pages when a query matches nothing - previously these just
   rendered a blank area with no explanation. */
.no-results-message {
  text-align: center;
  color: #cccccc;
  font-family: Arial, Helvetica, sans-serif;
  padding: 40px 20px;
  font-size: 15px;
  line-height: 1.6;
}
.no-results-message .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* Back-to-top button - injected by enhance.js, hidden until the
   user has scrolled down a bit. */
#back-to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c10907;
  border: 2px solid #fcc700;
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 9999;
}
#back-to-top.visible {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  opacity: 1;
}

/* Submit-button "working..." state, applied by enhance.js right
   before a form submits, to prevent accidental double-submits and
   give the user visible confirmation their tap registered. */
input[type="submit"].is-submitting, input[type="image"].is-submitting {
  opacity: 0.6;
  pointer-events: none;
}
