/* Burn Notice - burn-notice.css */

/* ===========================
   HERO BANNER
=========================== */
.burn-hero {
  position: relative;
  margin: 2rem 0 3rem 0;
  text-align: center;
}
.burn-banner-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: var(--drop-shadow-1);
}
.burn-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffe100;
  font-size: 4vw;
  font-family: var(--font-heading, 'Roboto', sans-serif);
  letter-spacing: 0.08em;
  font-weight: 900;
  text-shadow: 3px 3px 10px #000, 0 2px 32px #d70000;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===========================
   INTRO SECTION
=========================== */
.burn-intro {
  max-width: 600px;
  margin: 2rem auto 3rem auto;
  text-align: center;
}
.burn-intro h2 {
  font-size: var(--font-size-xxl, 2rem);
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: 0.25rem;
}
.burn-intro .subtitle {
  font-size: var(--font-size-lg, 1.25rem);
  font-family: var(--font-body, 'Roboto Serif', serif);
  color: var(--color-secondary, #666);
  font-weight: var(--font-weight-md, 500);
  margin-bottom: 1.25rem;
}
.burn-intro p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--color-dark, #222);
}
.burn-intro button.button {
  padding: 0.7em 2em;
  font-size: var(--font-size-md, 1rem);
  font-weight: var(--font-weight-bold, 700);
  border-radius: var(--border-radius-m, 0.5rem);
  background: var(--button-bg, #fff);
  color: var(--button-color, #333);
  border: var(--button-border, 1px solid #333);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.burn-intro button.button:hover {
  background: var(--button-hover-bg, #333);
  color: var(--button-hover-color, #fff);
}


/* ===========================
   Definition Box
=========================== */

.definition-box {
  font-family: 'Roboto Mono', monospace;
  background-color: #f5f5f5;
  border-left: 4px solid #007BFF;
  padding: 1rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.definition-box strong {
  font-weight: 600;
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.definition-box em {
  font-style: italic;
  color: #555;
}

body.dark-mode .definition-box {
  background: linear-gradient(to right, #0d0d0d, #1a1a1a);
  box-shadow: 0 0 10px #ff3a3644;
}

body.dark-mode .definition-box strong {
  color: #ff3a36;
  font-weight: 700;
  font-size: 1.1rem;
}

body.dark-mode .definition-box em {
  color: #e36d6d;
  font-style: italic;
}


/* ===========================
   GRAND TOTALS SECTION
=========================== */
.burn-totals {
  max-width: 1100px;
  margin: 3rem auto 3rem auto;
}
.grand-totals-title {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
  text-align: left;
}
.grand-totals-row {
  display: flex;
  justify-content: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
}
.grand-total-block {
  min-width: 180px;
  text-align: left;
}
.grand-total-label {
  font-size: 1.1rem;
  color: var(--color-dark, #333);
  font-family: var(--font-slab, 'Roboto Slab');
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: 0.4rem;
}
.grand-total-value {
  font-size: 2.5rem;
  color: #888;
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.1;
}
.grand-total-value .tz {
  font-size: 1.6rem;
}

/* ===========================
   BURN STATS TABLE
=========================== */


#burn-loading {
  font-family: var(--font-code, "Roboto Mono", monospace);
  font-size: 1.2rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 48px;
  display: inline-block;
  line-height: 48px;
}


.blink {
  animation: fadeBlink 3s ease-in-out infinite;
}

@keyframes fadeBlink {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}



th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  white-space: nowrap;
}
th.sortable .arrow {
  margin-left: 5px;
  font-size: 0.9em;
  vertical-align: middle;
  opacity: 0.2;
  transition: opacity 0.2s;
}


.burn-stats {
  max-width: 1200px;
  margin: 4rem auto 4rem auto;
}
.burn-stats-title {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 2rem;
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: 1.5rem;
}
.burn-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-code, 'Roboto Mono', monospace);
  background: var(--color-white, #fff);
}
.burn-table th, .burn-table td {
  padding: 1.2rem 0.9rem;
  text-align: center;
}
.burn-table th {
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 1rem;
  font-weight: var(--font-weight-bold, 700);
  border-bottom: 2px solid #222;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.burn-table td {
  font-size: 1.07rem;
  color: #111;
  border-bottom: 1px solid #e4e4e4;
  font-family: var(--font-code, 'Roboto Mono', monospace);
}
.burn-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px #0002;
}

.burn-table tbody tr {
  cursor: pointer;
  transition: background 0.14s;
}
.burn-table tbody tr:hover {
  background: #f6f6f6; /* or use var(--color-hover-bg, #f6f6f6) if you want a CSS variable */
}


/* Burn Bar */

.burn-bar {
  display: flex;
  width: 80px;               
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  align-items: center;
  margin: 0;
  position: relative;
  justify-content: flex-start; /* force bar to fill left-to-right */
}

.burn-portion.remain {
  height: 100%;
  background: #4cb3ff;
  border-radius: 6px 0 0 6px;
  transition: width 0.4s cubic-bezier(0.4,0.2,0.6,1);
  /* width is set inline via JS */
  min-width: 0;
  flex-shrink: 0;
}

.burn-portion.burned {
  height: 100%;
  background: #ff3a36;
  border-radius: 0 6px 6px 0;
  transition: width 0.4s cubic-bezier(0.4,0.2,0.6,1);
  min-width: 0;
  flex-shrink: 0;
}

.burn-status-icon {
  margin-left: 8px;
  font-size: 1.1em;
  vertical-align: middle;
}

/* Optional: Left-align the bar and emoji in the cell */
td:last-child {
  text-align: left;
  vertical-align: middle;
}

.burn-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 14px;
  justify-content: flex-start;
}

.burn-bar {
  display: flex;
  width: 80px;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  align-items: center;
  margin: 0;
  position: relative;
  justify-content: flex-start;
}

.burn-portion.remain {
  height: 100%;
  background: #4cb3ff;
  border-radius: 6px 0 0 6px;
  transition: width 0.4s cubic-bezier(0.4,0.2,0.6,1);
  min-width: 0;
  flex-shrink: 0;
}

.burn-portion.burned {
  height: 100%;
  background: #ff3a36;
  border-radius: 0 6px 6px 0;
  transition: width 0.4s cubic-bezier(0.4,0.2,0.6,1);
  min-width: 0;
  flex-shrink: 0;
}

.burn-status-icon {
  font-size: 1.2em;
  margin-left: 0;
  vertical-align: middle;
}



/* Progress Bar */
.burn-progress-bar {
  height: 12px;
  width: 120px;
  background: #e8e8e8;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.burn-progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 80%; /* Placeholder, set width dynamically in JS */
  background: #45aaff;
  border-radius: 6px 0 0 6px;
  position: absolute;
  top: 0; left: 0;
  transition: width 0.3s;
}
.burn-status-icon {
  font-size: 1.35rem;
  vertical-align: middle;
  margin-left: 8px;
}



body.dark-mode {
  color: var(--color-off-white);
}

body.dark-mode .burn-hero,
body.dark-mode .burn-intro,
body.dark-mode .burn-totals,
body.dark-mode .burn-stats {
  background: transparent;
  color: var(--color-off-white);
}

body.dark-mode .burn-title {
  color: #ffe94d;
  text-shadow: 2px 2px 12px #000, 0 2px 42px #111;
}

body.dark-mode .burn-banner-img {
  box-shadow: 0 4px 30px #0008;
  border: 1px solid #29262d;
}

body.dark-mode .burn-intro h2,
body.dark-mode .burn-stats-title,
body.dark-mode .grand-totals-title {
  color: #ffe94d;
}

body.dark-mode .burn-intro .subtitle {
  color: #c4b991;
}

body.dark-mode .burn-intro p {
  color: #c9c8d2;
}

body.dark-mode .burn-intro button.button {
  background: #282733;
  color: #ffe94d;
  border: 1px solid #555;
}

body.dark-mode .burn-intro button.button:hover {
  background: #ffe94d;
  color: #18171a;
}

body.dark-mode .grand-total-label {
  color: #d9ca6b;
}

body.dark-mode .grand-total-value {
  color: #fff;
}

body.dark-mode .burn-table {
  background: var(--color-dark-mode);
}

body.dark-mode .burn-table th {
  border-bottom: 2px solid #ffe94d;
  color: #ffe94d;
  background: var(--color-dark-mode);
}

body.dark-mode .burn-table td {
  color: #e3e1ee;
  border-bottom: 1px solid #37344a;
  background: var(--color-dark-mode);
}

body.dark-mode .burn-table tbody tr:hover {
  background: #2e2c38;
}

body.dark-mode .burn-thumb {
  box-shadow: 0 2px 10px #0006;
  border: 1px solid #555;
}

body.dark-mode .burn-bar {
  background: #35324a;
}

body.dark-mode .burn-portion.remain {
  background: #2698e9;
}

body.dark-mode .burn-portion.burned {
  background: #e03b44;
}

body.dark-mode .burn-status-icon {
  color: #ffe94d;
}


/* ===============================
   Responsive Cleanup
================================= */

/* Base Responsive Adjustments */
@media (max-width: 900px) {
  .grand-totals-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .burn-table th,
  .burn-table td {
    padding: 0.6rem 0.4rem;
    font-size: 0.95rem;
  }
}

/* Compact View - Mobile */
@media (max-width: 600px) {
  .burn-hero {
    margin: 1rem 0;
  }
  .burn-banner-img {
    max-width: 100%;
    height: auto;
  }

  .grand-totals {
    text-align: center;
  }

  .grand-totals-title {
    text-align: center;
  }

  .grand-totals-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .grand-total-block {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .grand-totals-row {
    flex-direction: column;
    gap: 1rem;
  }

  .burn-stats-title {
    text-align: center;
  }

  .burn-table {
    border: none;
    display: block;
    width: 100%;
  }

  .burn-table thead {
    display: none;
  }

  .burn-table tbody {
    display: block;
  }

  .burn-table tr {
    text-align: center;
    display: block;
    border: 1px solid #444;
    border-radius: 0.3rem;
    padding: 1rem;
    margin: 2rem;
  }

  .burn-table td {
    font-size: 1.15rem; /* bigger values */
    font-weight: 500;
    display: flex;
    align-items: center;
    border: none !important;
    border-bottom: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
  }

  .burn-table td::before {
    font-size: 0.75rem; /* keep labels smaller */
    font-weight: 700;
    color: #888;
    content: attr(data-label);
    text-align: center;
    min-width: 90px;
    margin: 0 0 0.2rem 0;
    flex-shrink: 0;
    width: 100%;
  }

  .burn-thumb {
    height: 200px;
    width: 200px;
    margin: 0 auto 0.5rem auto;
    display: block;
  }

  .burn-bar-wrapper {
    margin-top: 0.6rem;
    text-align: center;
  }
}

/* Clean Dark Mode for Mobile */
@media (max-width: 600px) {
  body.dark-mode .burn-table tr {
    background-color: #111;
    border-bottom: 1px solid #333;
  }

  body.dark-mode .burn-table td::before {
    color: #aaa;
  }

  body.dark-mode .grand-totals-row {
    border-color: #444;
  }
}
