/* ═══════════════════════════════════════════════════════════════════
   MMOCodeX — Path of Exile 2 Tools & Extended Content Styles
   File: games/path-of-exile-2/poe2-tools.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── STAT ROW ─────────────────────────────────────────────────────── */
.poe2-stat-row {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.poe2-stat {
  padding: 16px 14px;
  border: 1px solid rgba(104, 220, 173, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 18, 13, .84), rgba(1, 5, 3, .72));
  text-align: center;
}
.poe2-stat strong {
  display: block;
  color: #fff1bf;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -.02em;
}
.poe2-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(239, 255, 248, .55);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── NEWS GRID ─────────────────────────────────────────────────────── */
.poe2-news-grid {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.poe2-news-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(104, 220, 173, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 18, 13, .84), rgba(1, 5, 3, .72));
  text-decoration: none;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.poe2-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(104, 220, 173, .10), transparent 55%);
  opacity: .7;
  pointer-events: none;
}
.poe2-news-card > * { position: relative; }
.poe2-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 220, 173, .36);
  box-shadow: 0 20px 60px rgba(104, 220, 173, .10);
}
.poe2-news-card--featured {
  border-color: rgba(215, 77, 63, .36);
  background: linear-gradient(180deg, rgba(25, 8, 6, .92), rgba(5, 1, 1, .82));
}
.poe2-news-card--featured::before {
  background: radial-gradient(circle at 50% 0, rgba(215, 77, 63, .12), transparent 55%);
}
.poe2-news-card--featured:hover {
  border-color: rgba(215, 77, 63, .62);
  box-shadow: 0 20px 60px rgba(215, 77, 63, .12);
}
.poe2-news-tag {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(104, 220, 173, .24);
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  color: #68dcad;
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.poe2-news-card--featured .poe2-news-tag {
  border-color: rgba(215, 77, 63, .38);
  color: #f88;
}
.poe2-news-card strong {
  display: block;
  color: #fff5cf;
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.3;
}
.poe2-news-card--featured strong {
  font-size: 1.08rem;
}
.poe2-news-card p {
  margin: 0;
  color: rgba(239, 255, 248, .62);
  font-size: .88rem;
  line-height: 1.5;
}
.poe2-news-card b {
  color: #68dcad;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── BUILD GRID ─────────────────────────────────────────────────────── */
.poe2-build-grid {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.poe2-build-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(104, 220, 173, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 18, 13, .84), rgba(1, 5, 3, .72));
  text-decoration: none;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.poe2-build-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(215, 77, 63, .08), transparent 52%);
  pointer-events: none;
}
.poe2-build-card > * { position: relative; }
.poe2-build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 77, 63, .36);
  box-shadow: 0 20px 60px rgba(215, 77, 63, .10);
}
.poe2-build-class {
  color: rgba(239, 255, 248, .52);
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.poe2-build-asc {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(215, 77, 63, .3);
  border-radius: 999px;
  background: rgba(40, 8, 5, .48);
  color: #f88;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.poe2-build-card strong {
  display: block;
  color: #fff5cf;
  font-size: 1.02rem;
  font-weight: 950;
}
.poe2-build-card p {
  margin: 0;
  color: rgba(239, 255, 248, .60);
  font-size: .88rem;
  line-height: 1.5;
}
.poe2-build-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.poe2-build-tags span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 241, 191, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  color: #fff1bf;
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.poe2-build-card b {
  color: #68dcad;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── TOOL PANEL ─────────────────────────────────────────────────────── */
.poe2-tool-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(104, 220, 173, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5, 18, 13, .88), rgba(1, 5, 3, .78));
}
.poe2-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.poe2-tool-header h3 {
  margin: 4px 0 0;
  color: #fff5cf;
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: -.02em;
}
.poe2-tool-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(104, 220, 173, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  color: #68dcad;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.poe2-tool-desc {
  margin: 0 0 16px;
  color: rgba(239, 255, 248, .62);
  font-size: .92rem;
  line-height: 1.5;
}
.poe2-tool-desc b { color: #fff1bf; }

/* ─── CALCULATOR ─────────────────────────────────────────────────────── */
.poe2-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.poe2-calc-grid label {
  display: grid;
  gap: 6px;
  color: rgba(239, 255, 248, .65);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.poe2-calc-grid input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(104, 220, 173, .22);
  border-radius: 10px;
  background: rgba(0, 0, 0, .32);
  color: #effff8;
  padding: 0 12px;
  font-size: .95rem;
  font-weight: 800;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.poe2-calc-grid input:focus {
  border-color: #68dcad;
  box-shadow: 0 0 0 3px rgba(104, 220, 173, .12);
}
.poe2-calc-btn {
  min-height: 42px;
  padding: 0 22px;
  font-size: .88rem;
}
.poe2-calc-result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(104, 220, 173, .18);
  border-radius: 14px;
  background: rgba(0, 0, 0, .28);
}
.poe2-calc-result span {
  color: rgba(239, 255, 248, .6);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.poe2-calc-result strong {
  color: #fff1bf;
  font-size: 1.5rem;
  font-weight: 950;
}

/* ─── RESISTANCE RESULT ──────────────────────────────────────────────── */
.poe2-res-result {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.poe2-res-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: center;
}
.poe2-res-item.ok {
  border-color: rgba(104, 220, 173, .32);
  background: rgba(8, 40, 25, .6);
}
.poe2-res-item.warn {
  border-color: rgba(255, 193, 64, .38);
  background: rgba(40, 28, 4, .6);
}
.poe2-res-item.bad {
  border-color: rgba(255, 80, 60, .42);
  background: rgba(40, 8, 5, .6);
}
.poe2-res-item strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 950;
}
.poe2-res-item.ok strong { color: #68dcad; }
.poe2-res-item.warn strong { color: #ffc140; }
.poe2-res-item.bad strong { color: #ff5040; }
.poe2-res-item span {
  display: block;
  margin-top: 3px;
  color: rgba(239, 255, 248, .55);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.poe2-res-item small {
  display: block;
  margin-top: 2px;
  font-size: .68rem;
  font-weight: 750;
}
.poe2-res-item.ok small { color: rgba(104, 220, 173, .72); }
.poe2-res-item.warn small { color: rgba(255, 193, 64, .72); }
.poe2-res-item.bad small { color: rgba(255, 80, 60, .72); }

/* ─── CURRENCY GRID ──────────────────────────────────────────────────── */
.poe2-currency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.poe2-currency-item {
  padding: 14px;
  border: 1px solid rgba(104, 220, 173, .14);
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
}
.poe2-currency-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #fff1bf;
}
.poe2-currency-item strong {
  display: block;
  color: #fff5cf;
  font-size: .9rem;
  font-weight: 950;
  margin-bottom: 4px;
}
.poe2-currency-item span {
  color: rgba(239, 255, 248, .55);
  font-size: .8rem;
  line-height: 1.45;
}

/* ─── ASCENDANCY TABS ────────────────────────────────────────────────── */
.poe2-asc-tabs {
  width: min(1120px, 100%);
  margin: 0 auto 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.poe2-asc-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(104, 220, 173, .18);
  border-radius: 999px;
  background: rgba(4, 18, 13, .68);
  color: rgba(239, 255, 248, .7);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease;
}
.poe2-asc-tab:hover,
.poe2-asc-tab.is-active {
  border-color: rgba(215, 77, 63, .52);
  background: rgba(40, 8, 5, .58);
  color: #fff;
  box-shadow: 0 0 20px rgba(215, 77, 63, .15);
}
.poe2-asc-panel {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
  padding: 22px;
  border: 1px solid rgba(104, 220, 173, .16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5, 18, 13, .88), rgba(1, 5, 3, .78));
}
.poe2-asc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}
.poe2-asc-inner h3 {
  margin: 0 0 6px;
  color: #fff5cf;
  font-size: 1.3rem;
  font-weight: 950;
}
.poe2-asc-inner p {
  margin: 0 0 14px;
  color: rgba(239, 255, 248, .68);
  font-size: .95rem;
  line-height: 1.6;
}
.poe2-asc-subs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.poe2-asc-sub {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(215, 77, 63, .3);
  border-radius: 999px;
  background: rgba(40, 8, 5, .42);
  color: #f88;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.poe2-asc-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* ─── ENDGAME GRID ───────────────────────────────────────────────────── */
.poe2-endgame-grid {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.poe2-endgame-card {
  padding: 20px;
  border: 1px solid rgba(104, 220, 173, .16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 18, 13, .84), rgba(1, 5, 3, .72));
  display: grid;
  gap: 8px;
  align-content: start;
}
.poe2-endgame-icon {
  font-size: 1.6rem;
}
.poe2-endgame-card strong {
  display: block;
  color: #fff5cf;
  font-size: 1.02rem;
  font-weight: 950;
}
.poe2-endgame-card p {
  margin: 0;
  color: rgba(239, 255, 248, .60);
  font-size: .88rem;
  line-height: 1.5;
}
.poe2-endgame-card a {
  color: #68dcad;
  font-size: .84rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── CRAFTING STEPS ─────────────────────────────────────────────────── */
.poe2-crafting-steps {
  display: grid;
  gap: 14px;
}
.poe2-craft-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}
.poe2-craft-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 77, 63, .36);
  border-radius: 999px;
  background: rgba(40, 8, 5, .48);
  color: #f88;
  font-size: 1.1rem;
  font-weight: 950;
  flex-shrink: 0;
}
.poe2-craft-step strong {
  display: block;
  color: #fff5cf;
  font-size: .98rem;
  font-weight: 950;
  margin-bottom: 4px;
}
.poe2-craft-step p {
  margin: 0;
  color: rgba(239, 255, 248, .62);
  font-size: .88rem;
  line-height: 1.5;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .poe2-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poe2-news-grid { grid-template-columns: 1fr 1fr; }
  .poe2-build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-currency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-endgame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-res-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-asc-inner { grid-template-columns: 1fr; }
  .poe2-asc-cta { align-items: flex-start; flex-direction: row; }
}
@media (max-width: 640px) {
  .poe2-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-news-grid,
  .poe2-build-grid,
  .poe2-currency-grid,
  .poe2-endgame-grid { grid-template-columns: 1fr; }
  .poe2-calc-grid { grid-template-columns: 1fr; }
  .poe2-res-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poe2-tool-panel { padding: 16px; }
  .poe2-asc-tabs { gap: 6px; }
  .poe2-asc-tab { font-size: .72rem; padding: 0 12px; }
  .poe2-craft-step { grid-template-columns: 36px 1fr; gap: 10px; }
  .poe2-craft-num { width: 36px; height: 36px; font-size: .95rem; }
}
