/* df-bnb-public-events.css
   DF/BNB Public Events Rewards — March 2026
*/

.dfbnb-evr {
  width: 100%;
}

.dfbnb-evr__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.dfbnb-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.dfbnb-btn:hover {
  background: rgba(255,255,255,0.10);
}

/* ── Expand / details ──────────────────────────────────────────────────────── */

.dfbnb-expand {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  overflow: hidden;
  margin: 10px 0;
  background: rgba(255,255,255,0.30);
}

.dfbnb-expand__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.dfbnb-expand__summary::-webkit-details-marker { display: none; }

.dfbnb-expand__title { font-weight: 800; }

.dfbnb-expand__sub {
  opacity: 0.85;
  font-size: 0.95em;
}

.dfbnb-expand__body {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.dfbnb-evr__table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 680px) {
  .dfbnb-expand__body {
    overflow-x: auto;
  }
}

.dfbnb-evr__th,
.dfbnb-evr__cell {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}

/* First-column label cell in Base Rewards tier table */
.dfbnb-evr__cell--label {
  width: 160px;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
}

/* Faint vertical dividers between tier columns */
.dfbnb-evr__table thead .dfbnb-evr__th:not(:first-child),
.dfbnb-evr__table tbody .dfbnb-evr__cell:not(:first-child) {
  border-left: 1px solid rgba(255,255,255,0.06);
}

.dfbnb-evr__h3 {
  margin: 12px 0 6px;
  font-size: 1.05em;
  font-weight: 800;
}

/* ── Notices (Party Crasher / Mutated / Invaders) ─────────────────────────── */

.dfbnb-notice {
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.dfbnb-notice__line {
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.25;
}

.dfbnb-notice--party-crasher .dfbnb-notice__line { font-size: 1.25em; }
.dfbnb-notice--mutated        .dfbnb-notice__line { font-size: 1.20em; }
.dfbnb-notice--invaders        .dfbnb-notice__line { font-size: 1.20em; }

/* ── Warnings ─────────────────────────────────────────────────────────────── */

.dfbnb-warning {
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.10);
}

.dfbnb-warning__title {
  font-weight: 900;
  margin-bottom: 6px;
}

.dfbnb-warning__msg { opacity: 0.95; }

/* ── Search highlight ─────────────────────────────────────────────────────── */

.dfbnb-search-hit {
  outline: 2px solid rgba(255,255,255,0.25);
  border-radius: 6px;
}

/* ── Pool notes ───────────────────────────────────────────────────────────── */

.dfbnb-evr__poolnote {
  margin: 6px 0 10px;
  opacity: 0.9;
  font-size: 0.92em;
}

.dfbnb-evr__poolsub {
  font-weight: 700;
  opacity: 0.9;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.dfbnb-evr__empty {
  opacity: 0.7;
  font-size: 0.95em;
  padding: 4px 0;
}

/* ── Expand summary row (title + pill on same line) ───────────────────────── */

.dfbnb-expand__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dfbnb-expand__pill {
  font-size: 0.8em;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Tier conditions block ────────────────────────────────────────────────── */

.dfbnb-evr__tier-conditions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  gap: 6px;
}

.dfbnb-evr__tier-cond-intro {
  font-size: 0.88em;
  opacity: 0.80;
  margin-bottom: 2px;
}

.dfbnb-evr__tier-cond-row {
  display: flex;
  gap: 8px;
  font-size: 0.9em;
  align-items: baseline;
  flex-wrap: wrap;
}

.dfbnb-evr__tier-cond-label {
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.9;
}

.dfbnb-evr__tier-cond-text {
  opacity: 0.85;
}

/* ── Plan reward detail grid (mirrors titles checklist 3-box layout) ─────── */

.dfbnb-evr__plan-body .detailGrid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.dfbnb-evr__plan-body .detailBox {
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 12px;
  min-height: 90px;
}

.dfbnb-evr__plan-body .detailBox strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.dfbnb-evr__plan-body .detailText {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.85;
}

.dfbnb-evr__plan-body .imagePlaceholder {
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 12px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  font-size: 12px;
}

.dfbnb-evr__plan-body .detailImg {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
  margin: 0 auto;
}

@media (max-width: 680px) {
  .dfbnb-evr__plan-body .detailGrid { grid-template-columns: 1fr; }
}

/* ── Plan progress bar (top header + inside expand) ───────────────────────── */

.dfbnb-evr__plan-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dfbnb-evr__plan-progress--top {
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.dfbnb-evr__plan-progress-text {
  font-size: 0.85em;
  opacity: 0.8;
  min-width: 160px;
}

.dfbnb-evr__plan-bar {
  flex: 1;
  min-width: 80px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
  overflow: hidden;
}

.dfbnb-evr__plan-fill {
  height: 100%;
  width: 0%;
  background: #205d58;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.dfbnb-evr__plan-pct-pill {
  font-size: 0.8em;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ── Plan reward rows (titles-style) ──────────────────────────────────────── */

.dfbnb-evr__plan-row {
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.35);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.dfbnb-evr__plan-row.is-open {
  background: rgba(255,255,255,0.55);
}

.dfbnb-evr__plan-head {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  cursor: pointer;
}

.dfbnb-evr__plan-check {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.dfbnb-evr__plan-main {
  min-width: 0;
}

.dfbnb-evr__plan-title-btn {
  all: unset;
  cursor: pointer;
  display: block;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.dfbnb-evr__plan-title-btn:hover { text-decoration: underline; }

.dfbnb-evr__plan-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dfbnb-evr__plan-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.45);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Tradeable pill variants (mirror titles checklist) */
.dfbnb-evr__plan-pill--trade-yes {
  background: rgba(40, 140, 80, 0.20);
  border-color: rgba(40, 140, 80, 0.35);
}

.dfbnb-evr__plan-pill--trade-no {
  background: rgba(190, 40, 40, 0.18);
  border-color: rgba(190, 40, 40, 0.35);
}

/* Affix pill (Prefix / Suffix) */
.dfbnb-evr__plan-pill--affix {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
}

/* Release date pill */
.dfbnb-evr__plan-pill--date {
  background: rgba(70, 100, 180, 0.18);
  border-color: rgba(70, 100, 180, 0.35);
}

/* Region tag inside plan name button */
.dfbnb-evr__plan-region-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: rgba(32, 93, 88, 0.12);
  border: 1px solid rgba(32, 93, 88, 0.22);
  border-radius: 5px;
  padding: 1px 6px;
  color: #205d58;
  margin-left: 7px;
  letter-spacing: 0.02em;
  vertical-align: middle;
  font-style: normal;
}

.dfbnb-evr__plan-body {
  margin-top: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
}

.dfbnb-evr__plan-detail {
  opacity: 0.70;
  margin-top: 4px;
  font-size: 12px;
}

@media (max-width: 520px) {
  .dfbnb-evr__plan-head { grid-template-columns: 26px 1fr; }
  .dfbnb-evr__plan-pills { justify-content: flex-start; margin-top: 6px; }
  .dfbnb-evr__table { font-size: 13px; }
  .dfbnb-evr__plan-pill { padding: 4px 8px; font-size: 11px; }
}

/* ── Top header card (Season Ticket style) ────────────────────────────────── */

.dfbnb-evrTop {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin: 12px 0 14px;
}

.dfbnb-evrTitle {
  font-weight: 950;
  letter-spacing: .04em;
  font-size: 21px;
  color: #205d58;
}

.dfbnb-evrDesc {
  margin-top: 8px;
  opacity: .8;
  font-size: 14px;
  line-height: 1.45;
  color: #1a120e;
}

.dfbnb-evrLine {
  margin-top: 10px;
  margin-bottom: 0;
  opacity: .85;
  font-size: 13px;
  line-height: 1.35;
}

.dfbnb-evrLine + .dfbnb-evrLine { margin-top: 6px; }

.dfbnb-evrLine--location {
  padding-left: 14px;
  margin-top: 3px !important;
  font-size: 12px;
  opacity: 0.80;
}

.dfbnb-evrLineLabel {
  font-weight: 900;
  font-size: 14px;
}

.dfbnb-evrActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  margin-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
}

.dfbnb-evrBtn {
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.dfbnb-evrBtn:hover { background: rgba(255,255,255,0.75); }

@media (max-width: 520px) {
  .dfbnb-evrTop { padding: 14px; }
  .dfbnb-evrBtn { width: 100%; max-width: 100%; }
}

/* ── Export popup ─────────────────────────────────────────────────────────── */

.dfbnbEvrOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dfbnbEvrPopup {
  background: rgba(255,255,255,0.95);
  padding: 20px;
  border-radius: 12px;
  min-width: 320px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.dfbnbEvrPopupTitle { font-weight: 900; margin-bottom: 12px; }

.dfbnbEvrPopupRow {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.dfbnbEvrPopupRow button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  font-weight: 800;
}

.dfbnbEvrPopupRow button:hover { background: rgba(255,255,255,0.92); }

.dfbnbEvrPopupClose {
  margin-top: 10px;
  font-weight: 700;
  cursor: pointer;
  text-align: right;
}

/* ── Activity layout: Base Rewards section (no expand) ──────────────────── */

.dfbnb-act-section {
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.09);
  overflow: hidden;
}

.dfbnb-act-section__heading {
  padding: 10px 16px 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.025);
}

.dfbnb-act-section__subheading {
  padding: 10px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.40);
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* Base rewards table tweaks */

.dfbnb-act-base__table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.025);
}

.dfbnb-act-base__rate {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(0,0,0,0.75);
}

/* Leveled-list sub-rows */

.dfbnb-act-base__subrow td {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.018);
}

.dfbnb-act-base__subindent {
  padding-left: 28px !important;
  font-style: italic;
}

/* Conditions row under a reward */

.dfbnb-act-base__cond {
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  font-style: italic;
  padding-top: 2px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dfbnb-act-base__cond-label {
  font-weight: 700;
  font-style: normal;
}

/* ── Enclave Plasma Gun Mod Boxes — division math note ───────────────────── */

.dfbnb-act-pool-note {
  font-size: 12px;
  color: rgba(0,0,0,0.50);
  padding: 8px 16px 4px;
  font-style: italic;
}

.dfbnb-act-pool-note strong {
  font-style: normal;
  color: rgba(0,0,0,0.70);
}
