/* Maple Price Board CSS module: Today board and favorites. Original index.css lines 4087-4742. */

/* v8.0 - 오늘의 시세판 */
.today-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border-color: #f1ddca;
  border-radius: 15px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 166, 92, 0.14), transparent 30%),
    linear-gradient(105deg, #fffaf5 0%, #ffffff 62%);
}

.today-banner-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 10px;
}

.today-banner-copy span {
  flex: 0 0 auto;
  color: #a64d00;
  font-size: 11px;
  font-weight: 900;
}

.today-banner-copy strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172333;
  font-size: 13px;
}

.today-banner-copy small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.today-banner button {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--brand-dark);
  border: 1px solid #efd8c3;
  border-radius: 9px;
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.today-banner button:hover {
  border-color: #e7bd97;
  background: #ffe9d4;
  transform: translateX(2px);
}

.today-banner button span {
  margin-left: 2px;
}

.today-board {
  margin-bottom: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.today-board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.today-board-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.today-board-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.today-board-meta {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  padding: 9px 11px;
  text-align: right;
  border: 1px solid #f0dfcf;
  border-radius: 12px;
  background: var(--brand-soft);
}

.today-board-meta strong {
  color: var(--brand-dark);
  font-size: 12px;
}

.today-board-meta span {
  color: var(--muted);
  font-size: 10px;
}

.today-board-status {
  margin-top: 16px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 12px;
}

.today-board-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.today-board-facts[hidden] {
  display: none;
}

.today-board-facts div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eee4da;
  border-radius: 13px;
  background: #fffaf5;
}

.today-board-facts span,
.today-board-facts b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-board-facts span {
  color: var(--muted);
  font-size: 9px;
}

.today-board-facts b {
  margin-top: 4px;
  font-size: 15px;
}

.today-board-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.today-section-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}

.today-section-heading {
  margin-bottom: 9px;
}

.today-section-heading span {
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 850;
}

.today-section-heading h2 {
  margin: 3px 0 0;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.today-section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.today-rank-list {
  display: grid;
  gap: 4px;
}

.today-rank-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 7px;
  color: inherit;
  text-decoration: none;
  border-radius: 11px;
  transition: background-color .16s ease, transform .16s ease;
}

.today-rank-row:hover {
  background: #fff4e9;
  transform: translateY(-1px);
}

.today-rank-row:focus-visible {
  outline: 3px solid rgba(45, 103, 200, 0.18);
  outline-offset: 1px;
}

.today-rank-thumb {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  color: #b8c0c7;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.today-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.today-rank-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.today-rank-copy strong,
.today-rank-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-rank-copy strong {
  font-size: 12px;
}

.today-rank-copy small {
  color: var(--muted);
  font-size: 10px;
}

.today-rank-value {
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.today-rank-value.positive {
  color: var(--positive);
}

.today-rank-value.negative {
  color: var(--negative);
}

.today-band-list {
  display: grid;
  gap: 9px;
  padding: 4px 3px 2px;
}

.today-band-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 10px;
}

.today-band-row div span {
  color: var(--muted);
}

.today-band-row div b {
  color: var(--text);
  font-size: 10px;
}

.today-band-row > i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f2;
}

.today-band-row > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3b77c, #d77c31);
}

.today-board-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .header-actions {
    gap: 5px;
  }

  .header-actions .beta-badge {
    display: none;
  }

  .page-tab {
    padding: 7px 8px;
    font-size: 10px;
  }

  .today-banner {
    align-items: center;
    padding: 11px 12px;
  }

  .today-banner-copy {
    display: grid;
    gap: 2px;
  }

  .today-banner-copy small {
    display: none;
  }

  .today-board {
    padding: 18px 15px;
  }

  .today-board-heading {
    display: grid;
    gap: 12px;
  }

  .today-board-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .today-board-facts {
    gap: 6px;
  }

  .today-board-facts div {
    padding: 9px 8px;
  }

  .today-board-facts b {
    font-size: 12px;
  }

  .today-board-sections {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .today-section-card {
    padding: 13px 10px;
  }

  .today-rank-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
    padding-inline: 5px;
  }

  .today-rank-thumb {
    width: 34px;
    height: 34px;
  }
}

/* v8.1 - 즐겨찾기 / 오늘의 시세판 관심 아이템 */
.item-result-entry {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.item-result-entry.active .item-result-button {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #ffb36e;
}

.item-result-favorite {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  color: #a8afb6;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.item-result-favorite:hover,
.item-result-favorite:focus-visible {
  color: #d77c31;
  border-color: #f1b47d;
}

.item-result-favorite.active {
  color: #d77c31;
  background: #fff8ef;
  border-color: #efb579;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.item-title-row h2 {
  min-width: 0;
}

.item-favorite-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  color: #7d858c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.item-favorite-button span {
  color: #b3bac0;
  font-size: 15px;
  line-height: 1;
}

.item-favorite-button:hover,
.item-favorite-button:focus-visible,
.item-favorite-button.active {
  color: #b96119;
  background: #fff8ef;
  border-color: #efb579;
}

.item-favorite-button.active span {
  color: #d77c31;
}

.today-favorites {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #efd9c4;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffaf5, #fff);
}

.today-favorites-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.today-favorites-heading h3 {
  margin: 3px 0 0;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.today-favorites-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.today-favorites-heading > strong {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid #f0dfcf;
  border-radius: 9px;
  font-size: 10px;
}

.today-favorite-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.today-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.today-favorite-open {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.today-favorite-open:hover,
.today-favorite-open:focus-visible {
  background: #fff7ee;
  outline: 0;
}

.today-favorite-remove {
  display: grid;
  width: 34px;
  place-items: center;
  padding: 0;
  color: #d77c31;
  background: #fffaf5;
  border: 0;
  border-left: 1px solid #f0e1d3;
  cursor: pointer;
  font-size: 15px;
}

.today-favorite-remove:hover,
.today-favorite-remove:focus-visible {
  color: #a74f10;
  background: #ffefe0;
  outline: 0;
}

.today-favorite-empty {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  padding: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #ead8c7;
  border-radius: 12px;
}

.today-favorite-empty > span {
  color: #d4a16f;
  font-size: 20px;
}

.today-favorite-empty div {
  display: grid;
  gap: 2px;
}

.today-favorite-empty strong {
  color: #5b6268;
  font-size: 11px;
}

.today-favorite-empty small {
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .item-result-entry {
    flex: 0 0 auto;
  }

  .item-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .item-favorite-button {
    padding: 5px 8px;
  }

  .today-favorites {
    padding: 13px 10px;
  }

  .today-favorites-heading p {
    max-width: 260px;
  }

  .today-favorite-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .today-favorite-open {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
  }
}

