/* Film Hunt NYC — Field Agent badge system (v1)
 * Dark cinematic theme: #141414 + gold #f5b942. Mobile-friendly. */

/* ---------- check-in button ---------- */
.fhn-checkin-wrap { margin: 1.75em 0; text-align: center; }
.fhn-checkin-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f5b942, #d99a26);
  color: #141414;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 185, 66, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fhn-checkin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(245,185,66,.5); }
.fhn-checkin-btn:disabled { cursor: default; }
.fhn-checkin-btn.checked {
  background: #1e1e1e;
  color: #f5b942;
  border: 2px solid #f5b942;
  box-shadow: none;
}
.fhn-checkin-hint { color: #999; font-size: 13px; margin-top: 8px; }

/* ---------- award modal ---------- */
.fhn-modal {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  padding: 20px;
}
.fhn-modal.open { opacity: 1; pointer-events: auto; }
.fhn-modal-card {
  background: #1a1a1a;
  border: 2px solid #f5b942;
  border-radius: 18px;
  max-width: 420px; width: 100%;
  padding: 36px 30px;
  text-align: center;
  color: #f5f5f5;
  box-shadow: 0 0 60px rgba(245,185,66,.35);
  transform: scale(.85);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.fhn-modal.open .fhn-modal-card { transform: scale(1); }
.fhn-modal-seal { font-size: 54px; margin-bottom: 6px; animation: fhn-pop .5s ease; }
.fhn-modal-kicker {
  color: #f5b942; font-size: 12px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.fhn-modal-name { font-size: 30px; font-weight: 800; color: #f5b942; margin-bottom: 10px; line-height: 1.2; }
.fhn-modal-blurb { color: #ccc; font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.fhn-modal-btn {
  background: linear-gradient(135deg, #f5b942, #d99a26);
  color: #141414; border: none; border-radius: 999px;
  padding: 12px 32px; font-size: 16px; font-weight: 800; cursor: pointer;
}
@keyframes fhn-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- My Badges page ---------- */
#fhn-my-badges { color: #f5f5f5; }
.fhn-section-title { color: #f5b942; font-size: 22px; margin: 2em 0 .8em; letter-spacing: .5px; }
.fhn-muted { color: #777; font-size: 15px; font-weight: 400; }

.fhn-rank-card {
  background: linear-gradient(135deg, #1e1e1e, #141414);
  border: 1px solid #f5b942; border-radius: 14px;
  padding: 26px; margin-bottom: 10px;
}
.fhn-rank-kicker { color: #999; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.fhn-rank-name { font-size: 34px; font-weight: 800; color: #f5b942; }
.fhn-rank-count { color: #bbb; margin: 6px 0 12px; }
.fhn-rank-next { color: #999; font-size: 14px; margin-top: 10px; }

.fhn-progress { background: #2a2a2a; border-radius: 999px; height: 10px; overflow: hidden; }
.fhn-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #d99a26, #f5b942);
  transition: width .6s ease;
}

.fhn-boroughs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fhn-borough { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; padding: 18px; }
.fhn-borough.earned { border-color: #f5b942; box-shadow: 0 0 18px rgba(245,185,66,.15); }
.fhn-borough-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.fhn-borough-name { font-weight: 800; color: #f5b942; font-size: 16px; }
.fhn-borough-count { color: #999; font-size: 14px; }
.fhn-borough-blurb { color: #999; font-size: 13px; margin-top: 10px; line-height: 1.5; }

.fhn-badge-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.fhn-badge {
  background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 20px 16px; text-align: center;
  transition: transform .15s ease;
}
.fhn-badge:hover { transform: translateY(-3px); }
.fhn-badge.earned { border-color: #f5b942; box-shadow: 0 0 16px rgba(245,185,66,.18); }
.fhn-badge.locked { opacity: .55; filter: grayscale(.6); }
.fhn-badge-seal { font-size: 40px; margin-bottom: 8px; }
.fhn-badge-name { font-weight: 800; font-size: 16px; color: #f5b942; margin-bottom: 4px; }
.fhn-badge.locked .fhn-badge-name { color: #999; }
.fhn-badge-sub { font-size: 12px; color: #888; margin-bottom: 8px; min-height: 18px; }
.fhn-badge-blurb { font-size: 13px; color: #aaa; line-height: 1.5; }

.fhn-rank-ladder { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; }
.fhn-ladder-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid #2a2a2a; color: #888;
}
.fhn-ladder-row:last-child { border-bottom: none; }
.fhn-ladder-row.earned { color: #f5f5f5; background: rgba(245,185,66,.06); }
.fhn-ladder-hunts { flex: 0 0 90px; font-size: 13px; color: #999; }
.fhn-ladder-name { flex: 1; font-weight: 700; }
.fhn-ladder-row.earned .fhn-ladder-name { color: #f5b942; }
.fhn-ladder-state { font-size: 18px; }

/* ---------- photo form ---------- */
.fhn-photo-form-wrap {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 14px;
  padding: 24px; margin: 2em 0;
}
.fhn-photo-form-wrap h3 { color: #f5b942; margin: 0 0 6px; font-size: 20px; }
.fhn-photo-form-wrap p { color: #999; font-size: 14px; margin: 0 0 16px; }
#fhn-photo-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#fhn-photo-form input[type="file"] { color: #ccc; font-size: 14px; }
#fhn-photo-form button[type="submit"] {
  background: linear-gradient(135deg, #f5b942, #d99a26);
  color: #141414; border: none; border-radius: 999px;
  padding: 11px 26px; font-size: 15px; font-weight: 800; cursor: pointer;
}
#fhn-photo-form button[type="submit"]:disabled { opacity: .6; cursor: default; }
.fhn-form-msg { width: 100%; color: #f5b942; font-size: 14px; min-height: 20px; }

/* ---------- hunter photo gallery ---------- */
.fhn-gallery { margin: 2em 0; }
.fhn-gallery h3 { color: #f5b942; font-size: 20px; margin-bottom: 14px; }
.fhn-gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.fhn-gallery-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #2a2a2a; }
.fhn-gallery-grid img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .2s ease; }
.fhn-gallery-grid a:hover img { transform: scale(1.05); }
.fhn-gallery-empty { color: #777; font-style: italic; font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .fhn-checkin-btn { width: 100%; padding: 15px 20px; }
  .fhn-badge-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .fhn-modal-name { font-size: 24px; }
  #fhn-photo-form { flex-direction: column; align-items: stretch; }
}
