/**
 * SULYAP SA PINANGGALINGAN — Feature styles
 * lemcon.ph | sulyap-features.css | July 2026
 * Styles for: games hub, silhouette quiz, Lakbay Chain, Hulaan,
 * Kapitbahay bar, Explorer Passport, search overlay, random button.
 * Additive only — style.css stays untouched.
 */

/* ── GAMES HUB ─────────────────────────────────────────── */
a.quiz-type-card.daily-game-card {
  display: block;
  text-decoration: none;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1c2740 0%, #1e1e1e 70%) !important;
  border: 1.5px solid rgba(252,209,22,0.45) !important;
  border-radius: 10px;
  color: #ffffff !important;
  position: relative;
  transition: border-color 0.2s, transform 0.15s;
}
a.quiz-type-card.daily-game-card:hover {
  border-color: #FCD116 !important;
  transform: translateY(-1px);
}
.daily-games-grid { display: flex; flex-direction: column; gap: 12px; }

/* ── SILHOUETTE QUIZ ───────────────────────────────────── */
.quiz-figure {
  display: none;
  justify-content: center;
  align-items: center;
  margin: 4px 0 18px;
  min-height: 160px;
}
.quiz-silhouette-svg {
  width: 200px;
  height: 200px;
  max-width: 60vw;
  filter: drop-shadow(0 4px 14px rgba(252,209,22,0.25));
}

/* ── SHARED GAME PAGE SHELL (Lakbay + Hulaan) ──────────── */
.game-page-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 40px;
  color: #fff;
}
.game-intro { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 18px; }
.game-day-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #FCD116; margin-bottom: 6px;
}
.game-panel {
  background: #1e1e1e;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.game-input-row { position: relative; margin-bottom: 8px; }
.game-input {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px;
  background: #141414; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  font-family: inherit; font-size: 16px;
}
.game-input:focus { outline: none; border-color: #FCD116; }
.game-suggest {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #1a1a1a; border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px; margin-top: 4px; z-index: 50;
  max-height: 220px; overflow-y: auto;
  display: none;
}
.game-suggest.open { display: block; }
.game-suggest button {
  display: block; width: 100%; text-align: left;
  padding: 11px 14px; background: transparent; border: none;
  color: #fff; font-family: inherit; font-size: 15px; cursor: pointer;
}
.game-suggest button:hover, .game-suggest button.active { background: rgba(252,209,22,0.12); }
.game-btn {
  display: block; width: 100%;
  padding: 13px; margin-top: 8px;
  background: #FCD116; color: #121212;
  font-weight: 700; font-size: 15px; font-family: inherit;
  border: none; border-radius: 10px; cursor: pointer;
}
.game-btn:disabled { opacity: 0.4; cursor: default; }
.game-btn.secondary { background: transparent; color: rgba(255,255,255,0.65); border: 1.5px solid rgba(255,255,255,0.25); }
.game-msg { font-size: 14px; line-height: 1.5; margin-top: 10px; }
.game-msg.good { color: #7ed957; }
.game-msg.bad  { color: #ff7a7a; }
.game-streak {
  font-size: 12px; color: rgba(255,255,255,0.55);
  text-align: center; margin-top: 14px;
}

/* ── LAKBAY CHAIN ──────────────────────────────────────── */
.lakbay-route {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.lakbay-endpoint {
  flex: 1; text-align: center;
  background: rgba(0,56,168,0.25);
  border: 1.5px solid rgba(252,209,22,0.5);
  border-radius: 10px; padding: 12px 8px;
}
.lakbay-endpoint .ep-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }
.lakbay-endpoint .ep-name  { font-size: 15px; font-weight: 700; color: #fff; margin-top: 2px; }
.lakbay-arrow { color: #FCD116; font-size: 20px; }
.lakbay-chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lakbay-chip {
  background: rgba(252,209,22,0.15);
  border: 1px solid rgba(252,209,22,0.5);
  color: #FCD116; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 16px;
}
.lakbay-chip.start { background: rgba(0,56,168,0.35); border-color: rgba(255,255,255,0.35); color: #fff; }
.lakbay-stats { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; }
.lakbay-stats strong { color: #FCD116; }

/* ── HULAAN ────────────────────────────────────────────── */
.hulaan-guesses { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hulaan-guess-row {
  background: #191919; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 10px 12px;
}
.hulaan-guess-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hulaan-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.hulaan-hint {
  font-size: 11.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 12px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
}
.hulaan-hint.match { background: rgba(126,217,87,0.18); color: #7ed957; }
.hulaan-hint.arrow { background: rgba(252,209,22,0.14); color: #FCD116; }
.hulaan-tries { text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 10px; }
.hulaan-reveal {
  text-align: center; margin-top: 14px; padding: 14px;
  border-radius: 10px; background: rgba(0,56,168,0.25);
  border: 1.5px solid rgba(252,209,22,0.5);
}
.hulaan-reveal .reveal-name { font-size: 20px; font-weight: 700; color: #FCD116; }
.hulaan-reveal a { color: #fff; font-size: 13px; }

/* ── KAPITBAHAY BAR (province pages) ───────────────────── */
.kapitbahay-bar {
  margin: 18px 0 6px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.kapitbahay-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.kapitbahay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kapitbahay-chip {
  display: inline-block; text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 16px;
  background: rgba(252,209,22,0.12);
  border: 1px solid rgba(252,209,22,0.45);
  color: #FCD116;
  transition: background 0.15s;
}
.kapitbahay-chip:hover { background: rgba(252,209,22,0.25); }
.kapitbahay-none { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── EXPLORER PASSPORT ─────────────────────────────────── */
.passport-counter {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 350;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(252,209,22,0.5);
  border-radius: 18px;
  color: #FCD116;
  font-size: 12px; font-weight: 700;
  font-family: inherit;
  padding: 6px 12px;
  cursor: pointer;
}
.passport-counter:hover { background: rgba(0,0,0,0.9); border-color: #FCD116; }
#ph-map svg path.province-visited:not(.ph-highlighted),
#ph-map svg polygon.province-visited:not(.ph-highlighted),
#ph-map svg .province-visited:not(.ph-highlighted) path,
#ph-map svg .province-visited:not(.ph-highlighted) polygon {
  fill: #C9A227 !important;   /* passport-stamp gold */
}

/* ── RANDOM PROVINCE BUTTON ────────────────────────────── */
.random-province-btn {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 350;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(0,56,168,0.75);
  border: 1.5px solid rgba(252,209,22,0.55);
  color: #FCD116;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  transition: background 0.15s, transform 0.1s;
}
.random-province-btn:hover  { background: rgba(0,56,168,0.95); }
.random-province-btn:active { transform: scale(0.94); }

/* ── SEARCH OVERLAY ────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10,10,10,0.94);
  display: none;
  padding: 24px 16px;
  overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-overlay-inner { max-width: 560px; margin: 0 auto; }
.search-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 4px;
}
.search-back {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 14px; font-weight: 600; font-family: inherit;
  padding: 9px 16px; border-radius: 18px; cursor: pointer;
}
.search-back:hover { border-color: #FCD116; color: #FCD116; }
.search-close {
  background: transparent; border: none; color: rgba(255,255,255,0.7);
  font-size: 30px; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.search-howto {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.5; margin-top: 10px;
}
.search-input {
  width: 100%; box-sizing: border-box;
  padding: 15px 16px; margin-top: 14px;
  background: #1a1a1a; color: #fff;
  border: 1.5px solid rgba(252,209,22,0.5); border-radius: 12px;
  font-size: 17px; font-family: inherit;
}
.search-input:focus { outline: none; border-color: #FCD116; }
.search-results { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.search-result {
  display: block; text-decoration: none;
  background: #1e1e1e; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 14px;
}
.search-result .sr-name { font-size: 15px; font-weight: 700; color: #fff; }
.search-result .sr-meta { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.search-result:hover { border-color: rgba(252,209,22,0.6); }
.search-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin: 14px 0 4px;
}
.search-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search-quicklinks a {
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 16px;
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.search-quicklinks a:hover { border-color: rgba(252,209,22,0.6); color: #FCD116; }

/* ── SPECIES CARD (nature section) ─────────────────────── */
.species-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid #7ed957;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
}
.species-card .species-name { font-size: 16px; font-weight: 700; color: #fff; }
.species-card .species-sci  { font-size: 13px; font-style: italic; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.species-card .species-status {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(126,217,87,0.15); color: #7ed957;
}
.species-card .species-status.status-critical { background: rgba(255,122,122,0.15); color: #ff7a7a; }
.species-card .species-status.status-endangered { background: rgba(255,180,84,0.15); color: #ffb454; }
.species-card .species-status.status-vulnerable { background: rgba(252,209,22,0.15); color: #FCD116; }
.species-card .species-text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.species-card .species-field-note {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  font-size: 13px; color: rgba(255,255,255,0.65);
}
.species-card .species-field-note strong { color: #7ed957; }

/* ── PROVINCE HERO SEARCH BUTTON ───────────────────────── */
.province-hero-search {
  position: absolute;
  top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; border-radius: 50%;
  cursor: pointer;
}
.province-hero-search:hover { border-color: #FCD116; color: #FCD116; }

/* ── PAGE BACK LINK (games pages) ──────────────────────── */
.page-back-link {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 13px; border-radius: 16px;
}
.page-back-link:hover { color: #FCD116; border-color: rgba(252,209,22,0.6); }
.quiz-header { position: relative; }

/* ── PROVINCE TABS — wrap on mobile so all 8 stay visible ── */
@media (max-width: 640px) {
  .province-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }
}
