/* ═══════════════════════════════════════════════════════════════════
   MMOCodeX — Universal Game Tools CSS  (mcx-game-tools.css)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── TL EVENT TIMER GRID ─────────────────────────────────────── */
#tal-timer-grid { width: 100%; }
.tal-event-card {
  padding: 16px 14px;
  border-right: 1px solid rgba(130,216,255,.1);
  border-bottom: 1px solid rgba(130,216,255,.1);
  background: linear-gradient(180deg, rgba(2,18,22,.7), rgba(0,5,8,.6));
  text-align: center;
  transition: background .18s;
}
.tal-event-card:hover { background: rgba(4,28,36,.85); }
.tal-event-card:nth-child(4n) { border-right: none; }
.tal-event-icon { font-size: 1.4rem; margin-bottom: 4px; }
.tal-event-name { font-size: .82rem; font-weight: 950; letter-spacing: .04em; margin-bottom: 2px; }
.tal-event-freq { color: rgba(239,255,248,.42); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.tal-event-cd { font-size: 1.3rem; font-weight: 950; color: #fff; letter-spacing: -.02em; line-height: 1; }
.tal-event-next { color: rgba(239,255,248,.45); font-size: .7rem; font-weight: 800; margin-top: 4px; }

/* ─── WOW RESET + AFFIXES ─────────────────────────────────────── */
.wow-reset-panel {
  width: min(1120px,100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  align-items: start;
}
.wow-reset-card {
  padding: 24px;
  border: 1px solid rgba(244,196,48,.2);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(20,14,2,.9),rgba(5,3,0,.8));
  text-align: center;
}
.wow-reset-label { color: rgba(239,255,248,.5); font-size: .72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .10em; display: block; margin-bottom: 8px; }
.wow-reset-countdown { font-size: 2.4rem; font-weight: 950; color: #f4c430; letter-spacing: -.04em; display: block; }
.wow-reset-info { color: rgba(239,255,248,.5); font-size: .78rem; margin-top: 8px; display: block; }
.wow-region-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.wow-region-btn { min-height: 30px; padding: 0 12px; border: 1px solid rgba(244,196,48,.22); border-radius: 999px; background: rgba(0,0,0,.32); color: rgba(239,255,248,.65); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .16s; }
.wow-region-btn.is-active, .wow-region-btn:hover { border-color: rgba(244,196,48,.5); color: #f4c430; background: rgba(40,28,4,.55); }
.wow-affixes-card {
  padding: 24px;
  border: 1px solid rgba(244,196,48,.16);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(16,12,2,.88),rgba(4,3,0,.78));
}
.wow-affix-group { }
.wow-affix-label { color: rgba(239,255,248,.5); font-size: .7rem; font-weight: 950; text-transform: uppercase; letter-spacing: .10em; display: block; margin-bottom: 10px; }
.wow-affix-list { display: flex; gap: 8px; flex-wrap: wrap; }
.wow-affix-tag { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: start; padding: 8px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.28); min-width: 0; }
.wow-affix-tag span { font-size: 1.1rem; grid-row: 1/3; align-self: center; }
.wow-affix-tag b { font-size: .8rem; font-weight: 950; }
.wow-affix-tag small { color: rgba(239,255,248,.5); font-size: .72rem; line-height: 1.35; grid-column: 2; }

/* ─── POE2 FLIP CALCULATOR ────────────────────────────────────── */
.poe2-flip-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.poe2-flip-label { display: grid; gap: 6px; color: rgba(239,255,248,.65); font-size: .82rem; font-weight: 800; }
.poe2-flip-label input { width: 100%; min-height: 40px; border: 1px solid rgba(215,77,63,.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; }
.poe2-flip-label input:focus { border-color: #d74d3f; box-shadow: 0 0 0 3px rgba(215,77,63,.12); }
.flip-result { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.flip-result-item { padding: 12px 14px; border: 1px solid rgba(215,77,63,.16); border-radius: 12px; background: rgba(0,0,0,.22); }
.flip-result-item span { display: block; color: rgba(239,255,248,.5); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.flip-result-item strong { font-size: 1.2rem; font-weight: 950; }

/* ─── POE2 LEAGUE COUNTDOWN ───────────────────────────────────── */
.poe2-league-cd-panel {
  text-align: center;
  padding: 22px;
  border: 1px solid rgba(215,77,63,.18);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(22,5,4,.88),rgba(5,1,0,.8));
  width: min(1120px,100%);
  margin: 0 auto 32px;
}
.poe2-league-cd-label { color: rgba(239,255,248,.5); font-size: .72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; display: block; margin-bottom: 6px; }
.poe2-league-cd-value { font-size: 2.8rem; font-weight: 950; color: #d74d3f; letter-spacing: -.04em; display: block; }
.poe2-league-cd-note { color: rgba(239,255,248,.42); font-size: .78rem; margin-top: 8px; display: block; }

/* ─── COREPUNK QUIZ ───────────────────────────────────────────── */
.cp-quiz-q p { color: #effff8; font-size: 1rem; font-weight: 800; margin: 0 0 14px; }
.cp-quiz-num { color: rgba(239,255,248,.4); font-size: .72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .10em; display: block; margin-bottom: 8px; }
.cp-quiz-opt {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; margin-bottom: 8px;
  border: 1px solid rgba(60,179,113,.2); border-radius: 12px;
  background: rgba(0,0,0,.28); color: rgba(239,255,248,.8);
  font-size: .88rem; font-weight: 800; cursor: pointer;
  transition: all .16s;
}
.cp-quiz-opt:hover:not(:disabled) { border-color: rgba(60,179,113,.5); background: rgba(4,24,12,.5); color: #effff8; }
.cp-quiz-opt.is-correct { border-color: #3cb371; background: rgba(8,40,20,.6); color: #68dcad; }
.cp-quiz-opt.is-wrong   { border-color: #ff5040; background: rgba(40,8,4,.6);  color: #ff7060; }
.cp-quiz-result { text-align: center; padding: 20px 0; }
.cp-quiz-score { font-size: 3rem; font-weight: 950; color: #3cb371; margin-bottom: 8px; }
.cp-quiz-result p { color: rgba(239,255,248,.7); margin-bottom: 14px; }

/* ─── GW2 RESET ───────────────────────────────────────────────── */
.gw2-reset-bar {
  width: min(1120px,100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gw2-reset-card {
  padding: 22px;
  border: 1px solid rgba(232,184,75,.2);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(18,12,2,.88),rgba(5,3,0,.8));
  text-align: center;
}
.gw2-reset-title { color: rgba(239,255,248,.5); font-size: .72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .10em; display: block; margin-bottom: 6px; }
.gw2-reset-cd { font-size: 2.2rem; font-weight: 950; color: #e8b84b; letter-spacing: -.04em; display: block; }
.gw2-reset-info { color: rgba(239,255,248,.45); font-size: .78rem; margin-top: 6px; display: block; }
.gw2-toolbox-grid {
  width: min(1120px,100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

/* ─── AAC COUNTER ─────────────────────────────────────────────── */
.aac-days-panel {
  width: min(1120px,100%);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(200,146,42,.2);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(20,12,2,.88),rgba(5,2,0,.8));
}
.aac-days-num { font-size: 3.5rem; font-weight: 950; color: #c8922a; letter-spacing: -.04em; line-height: 1; }
.aac-days-label { color: rgba(239,255,248,.5); font-size: .72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .10em; display: block; margin-top: 4px; }
.aac-days-desc { color: rgba(239,255,248,.7); font-size: .92rem; line-height: 1.6; }
.aac-days-desc b { color: #c8922a; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  #tal-timer-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  .wow-reset-panel { grid-template-columns: 1fr; }
  .gw2-reset-bar { grid-template-columns: 1fr; }
  .gw2-toolbox-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .poe2-flip-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #tal-timer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .gw2-toolbox-grid { grid-template-columns: 1fr; }
  .poe2-flip-grid { grid-template-columns: 1fr; }
  .flip-result { grid-template-columns: 1fr; }
  .aac-days-panel { grid-template-columns: 1fr; text-align: center; }
}
