/* ============================================
   GamesOMG — palworld-boss.css
   Shared styles for all Palworld boss strategy/coordinate pages
   (Alpha field bosses, dungeon bosses, and Tower bosses).

   Self-contained: includes vars + reset so these pages do NOT
   depend on main.css. Mirrors the design language of
   cave-pages.css so the two content clusters look like one site.

   The "card + faint icon" hero (.boss-hero) replaces the lost
   WordPress screenshots: every Pal has a /assets/images/pals/*.webp
   icon, so each boss page gets a portrait with zero new art.
   ============================================ */

/* ── VARIABLES ── */
:root {
  --orange: #f08000;
  --orange-dim: rgba(240,128,0,0.15);
  --orange-border: rgba(240,128,0,0.35);
  --blue: rgb(39,144,249);
  --blue-dim: rgba(39,144,249,0.12);
  --blue-border: rgba(39,144,249,0.3);
  --green: #4ade80;
  --green-dim: rgba(74,222,128,0.12);
  --green-border: rgba(74,222,128,0.3);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251,191,36,0.12);
  --yellow-border: rgba(251,191,36,0.3);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.12);
  --red-border: rgba(248,113,113,0.3);
  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,0.12);
  --purple-border: rgba(167,139,250,0.3);
  --bg: #1f2933;
  --bg-surface: #2a3642;
  --bg-card: #243040;
  --bg-nav: #1a242f;
  --border: rgba(255,255,255,0.07);
  --text: #f0f4f8;
  --text-muted: #8899a6;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Urbanist', sans-serif;
  font-size: 16px; line-height: 1.65;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── IN-PROSE LINKS (blue, distinct from orange CTAs) ── */
.hero-lede a,
.boss-detail p a,
.boss-detail ul a,
.callout a,
.section > p a,
.faq-body a {
  color: var(--blue); text-decoration: none; transition: color 0.15s;
}
.hero-lede a:hover,
.boss-detail p a:hover,
.boss-detail ul a:hover,
.callout a:hover,
.section > p a:hover,
.faq-body a:hover { color: #4ea6ff; text-decoration: underline; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 1rem 2rem; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text); }

/* ── HERO ── */
.hero { padding: 1.5rem 2rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-dim); border: 1px solid var(--orange-border);
  color: var(--orange); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--text); margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lede {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1.25rem; max-width: 760px;
}
.hero-lede strong { color: var(--text); }
.hero-meta {
  display: flex; gap: 1.25rem; align-items: center;
  font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.hero-meta b { color: var(--text); font-weight: 700; }

/* ── BOSS HERO: portrait card (faint-icon) + At-a-Glance spec ── */
.boss-hero {
  max-width: 1100px; margin: 0 auto 1.5rem; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.boss-portrait {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(57,150,255,0.10), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 240px;
}
.boss-portrait .watermark {
  position: absolute; right: -16%; bottom: -20%;
  width: 300px; height: 300px; object-fit: contain;
  opacity: 0.06; pointer-events: none; z-index: 0;
  filter: grayscale(0.2);
}
.boss-portrait .portrait-main {
  position: relative; z-index: 1;
  width: 152px; height: 152px; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}
.boss-portrait .portrait-name {
  position: relative; z-index: 1;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.5rem;
  color: var(--text); margin-top: 0.7rem; letter-spacing: -0.02em;
}
.boss-portrait .portrait-tags {
  position: relative; z-index: 1;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 0.6rem;
}

/* At-a-Glance spec panel */
.boss-spec {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.4rem 1.4rem;
}
.spec-row {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-k {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
}
.spec-v {
  font-size: 0.95rem; color: var(--text); font-weight: 600; text-align: right;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
}
.spec-v.coords { font-family: 'Courier New', monospace; color: var(--orange); }

@media (min-width: 760px) {
  .boss-hero { grid-template-columns: minmax(260px, 360px) 1fr; align-items: stretch; }
  .boss-spec { display: flex; flex-direction: column; justify-content: center; }
}

/* ── ELEMENT TYPE PILLS ── */
.el {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Manrope', sans-serif; font-size: 0.72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 100px; border: 1px solid; white-space: nowrap;
}
.el-water    { color: #67b6ff; background: rgba(57,150,255,0.13);  border-color: rgba(57,150,255,0.38); }
.el-ice      { color: #8fe6ff; background: rgba(120,220,255,0.12); border-color: rgba(120,220,255,0.34); }
.el-electric { color: #ffd54a; background: rgba(255,200,40,0.13);  border-color: rgba(255,200,40,0.36); }
.el-fire     { color: #ff9d5c; background: rgba(255,120,40,0.14);  border-color: rgba(255,120,40,0.36); }
.el-grass    { color: #7fe08a; background: rgba(74,222,128,0.13);  border-color: rgba(74,222,128,0.34); }
.el-ground   { color: #d6b78a; background: rgba(190,140,70,0.14);  border-color: rgba(190,140,70,0.36); }
.el-dark     { color: #c4a8ff; background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.36); }
.el-dragon   { color: #b59cff; background: rgba(140,110,255,0.14); border-color: rgba(140,110,255,0.36); }
.el-neutral  { color: #c3cfdb; background: rgba(195,207,219,0.10); border-color: rgba(195,207,219,0.28); }

/* ── SECTION ── */
.section { max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.section-header { margin-bottom: 1.1rem; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem;
}
.section h2 {
  font-family: 'Manrope', sans-serif; font-size: 1.55rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.4rem;
}
.section h2 em { font-style: normal; color: var(--orange); }
.section-sub { color: var(--text-muted); font-size: 0.95rem; }

/* ── CALLOUTS (quick win / danger / info) ── */
.callout {
  display: flex; gap: 0.85rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.callout .callout-icon { font-size: 1.3rem; line-height: 1.3; flex-shrink: 0; }
.callout .callout-body { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.callout .callout-body strong { font-weight: 700; }
.callout .callout-body p + p { margin-top: 0.4rem; }
.callout-win    { background: var(--green-dim);  border-color: var(--green-border); }
.callout-danger { background: var(--red-dim);     border-color: var(--red-border); }
.callout-info   { background: var(--blue-dim);    border-color: var(--blue-border); }
.callout-win .callout-tag    { color: var(--green); }
.callout-danger .callout-tag { color: var(--red); }
.callout-tag {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 0.2rem;
}

/* ── BOSS DETAIL CARD (prose blocks) ── */
.boss-detail {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem 1.6rem; margin-bottom: 1rem;
}
.boss-detail h3 {
  font-family: 'Manrope', sans-serif; font-size: 1.15rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.015em; margin-bottom: 0.6rem;
}
.boss-detail p {
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.7rem;
}
.boss-detail p:last-child { margin-bottom: 0; }
.boss-detail strong { color: var(--text); }
.boss-detail ul { list-style: none; padding: 0; margin: 0 0 0.7rem; }
.boss-detail ul li {
  position: relative; padding-left: 1.3rem; margin-bottom: 0.4rem;
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.6;
}
.boss-detail ul li::before { content: '◆'; position: absolute; left: 0; color: var(--orange); font-size: 0.7rem; top: 0.28rem; }
.boss-detail ul li strong { color: var(--text); }

/* Numbered fight plan */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.steps li {
  position: relative; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.8rem 1rem 0.8rem 3rem;
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.6;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.75rem; top: 0.7rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--orange-dim); color: var(--orange);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--text); }

/* ── DROPS / REWARDS GRID ── */
.loot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.loot-card {
  background: var(--bg-card); border: 1px solid var(--blue-border);
  border-radius: var(--radius-md); padding: 1.2rem 1.4rem;
}
.loot-card h4 {
  font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: var(--blue); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 8px;
}
.loot-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.loot-card li {
  font-size: 0.86rem; color: var(--text); line-height: 1.4;
  display: flex; align-items: center; gap: 8px;
}
.loot-card li .drop-name { flex: 1; }
.loot-card li .rate {
  font-family: 'Manrope', sans-serif; font-size: 0.72rem; font-weight: 800;
  padding: 1px 8px; border-radius: 100px; white-space: nowrap;
}
.rate-guaranteed { color: var(--green);  background: var(--green-dim);  border: 1px solid var(--green-border); }
.rate-common     { color: var(--yellow); background: var(--yellow-dim); border: 1px solid var(--yellow-border); }
.rate-rare       { color: var(--orange); background: var(--orange-dim); border: 1px solid var(--orange-border); }

/* ── GENERATOR / TOOL CTA BOX ── */
.gen-cta-box {
  background: linear-gradient(135deg, rgba(240,128,0,0.06), rgba(39,144,249,0.04));
  border: 1px solid var(--orange-border); border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem; margin: 2rem 0;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.gen-cta-icon {
  width: 48px; height: 48px; background: var(--orange-dim);
  border: 1px solid var(--orange-border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.gen-cta-text { flex: 1; min-width: 220px; }
.gen-cta-text h4 { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.gen-cta-text p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.gen-cta-btn {
  background: var(--orange); color: #fff; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 0.85rem; padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm); white-space: nowrap; transition: background 0.15s;
}
.gen-cta-btn:hover { background: #ff9420; color: #fff; }

/* ── FAQ ── */
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 0.6rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--orange); font-size: 1.3rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.2rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── TL;DR ── */
.tldr {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--orange); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.3rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7;
}
.tldr strong { color: var(--text); }

/* ── SIBLING GRID + HUB BACKLINK ── */
.sibling-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; }
.sibling-link {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
  font-size: 0.88rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.sibling-link:hover { color: var(--orange); border-color: var(--orange-border); transform: translateY(-1px); }
.sibling-link .arrow { margin-left: auto; font-weight: 700; }
.hub-backlink {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted);
  padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: color 0.15s, border-color 0.15s; margin-top: 1.25rem;
}
.hub-backlink:hover { color: var(--orange); border-color: var(--orange-border); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .loot-grid { grid-template-columns: 1fr; }
  .hero { padding: 1rem 1.2rem 1.2rem; }
  .boss-hero, .section { padding: 0 1.2rem; }
  .breadcrumb { padding: 1rem 1.2rem; }
  .boss-portrait { min-height: 200px; }
}

/* ── HUB TABLE (Alpha / Tower boss lists) ── */
.boss-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.boss-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.boss-table thead th {
  background: var(--bg-surface); text-align: left;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
  padding: 0.8rem 1rem; border-bottom: 2px solid var(--orange-dim); white-space: nowrap;
}
.boss-table tbody td {
  padding: 0.7rem 1rem; border-top: 1px solid var(--border);
  color: var(--text-muted); line-height: 1.45; vertical-align: middle;
}
.boss-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.022); }
.boss-table tbody tr:hover td { background: var(--blue-dim); }
.boss-table .b-name { white-space: nowrap; }
.boss-table .b-name a { color: var(--text); font-weight: 700; font-family: 'Manrope', sans-serif; transition: color 0.15s; }
.boss-table .b-name a:hover { color: var(--orange); }
.boss-table .b-lv { text-align: center; width: 1%; white-space: nowrap; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.boss-table .b-types, .boss-table .b-weak { white-space: nowrap; }
.boss-table .b-coords { font-family: 'Courier New', monospace; color: var(--orange); white-space: nowrap; text-align: right; }
.boss-table thead th:nth-child(5) { text-align: right; }
.boss-table .b-loc { font-size: 0.85rem; min-width: 210px; line-height: 1.4; }
.boss-table .el { font-size: 0.66rem; padding: 1px 7px; margin: 1px 1px 1px 0; }
@media (max-width: 820px) {
  .boss-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .boss-table { font-size: 0.84rem; }
  .boss-table thead th, .boss-table tbody td { padding: 0.55rem 0.7rem; }
}
