/**
 * Watchtower — Max tactical lists & custom screener
 */

.wt-banner.inner-page-banner-section {
  padding-top: 180px !important;
  padding-bottom: 70px !important;
}

.wt-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wt-max-badge {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  flex-shrink: 0;
}

.wt-banner-lead {
  font-size: 1rem;
  opacity: 0.95;
}

.wt-banner-link {
  color: #fff;
  text-decoration: underline;
}

.wt-main .main-area {
  max-width: 1140px;
  margin: 0 auto;
}

/* Tabs */
.blog-section .wt-tab-content.tab-content {
  padding-top: 0 !important;
}

#wtTab.wt-tabs.nav-tabs {
  padding-top: 2rem !important;
  margin-bottom: 1.75rem;
}

.wt-tabs.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  border-bottom: none;
}

.wt-tabs .nav-item {
  margin-bottom: 0;
}

.wt-tabs .nav-link {
  padding: 0.55rem 1.2rem !important;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
}

.wt-tabs .nav-link:hover {
  color: var(--main-color, #254ce9);
  background: #eff6ff !important;
}

.wt-tabs.nav-tabs .nav-link.active {
  color: #fff !important;
  background: var(--main-color, #254ce9) !important;
  border-color: var(--main-color, #254ce9) !important;
}

/* Gates */
.wt-gate {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  margin: 1rem 0 2rem;
}

.wt-gate h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Max hero balance */
.wt-hero-balance {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.wt-hero-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

.wt-balance-bar {
  display: flex;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wt-balance-long {
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.wt-balance-short {
  background: linear-gradient(90deg, #b91c1c, #f97316);
  flex: 1;
}

.wt-balance-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.4rem;
}

.wt-hero-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0.75rem 0 0;
}

.wt-max-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.wt-th-save,
.wt-save-cell {
  width: 2.75rem;
  text-align: center;
  vertical-align: middle;
}

.wt-lovehate {
  display: inline-block;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.wt-lovehate .fa-heart.text-red {
  color: #e74c3c !important;
}

.wt-lovehate .fa-heart-broken.text-darkred {
  color: #6d1209 !important;
}

/* Two-column Max list */
.wt-max-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .wt-max-columns {
    grid-template-columns: 1fr;
  }
}

.wt-max-col {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.wt-max-col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.wt-max-col--long .wt-max-col-head {
  background: linear-gradient(90deg, #ecfdf5, #fff);
}

.wt-max-col--short .wt-max-col-head {
  background: linear-gradient(90deg, #fef2f2, #fff);
}

.wt-max-col-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.wt-max-col-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  background: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.wt-max-col-icon {
  font-size: 0.7rem;
  color: #16a34a;
}

.wt-max-col--short .wt-max-col-icon {
  color: #dc2626;
}

.wt-max-col .wt-stock-table-wrap {
  box-shadow: none;
  margin: 0;
  border-radius: 0;
}

/* Tables */
.wt-stock-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.wt-stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wt-stock-table th,
.wt-stock-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.wt-stock-table th {
  background: #0d1b2a;
  color: #fff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.wt-stock-table tbody tr:hover td {
  background: #f8fafc;
}

.wt-num {
  color: #9ca3af;
  font-size: 0.8rem;
  width: 2rem;
}

.wt-ticker-cell strong {
  color: #0d1b2a;
}

.wt-score-pill {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #254ce9;
  background: #eff6ff;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.wt-actions-cell {
  white-space: nowrap;
  text-align: right;
}

.wt-action-link {
  padding: 0 0.35rem !important;
  font-weight: 700;
}

.wt-empty-msg {
  padding: 1.5rem;
  text-align: center;
  color: #9ca3af;
  margin: 0;
}

/* Builder */
.wt-tab-intro {
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.wt-filter-panel {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.wt-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.wt-builder-advanced {
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.wt-builder-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--main-color, #254ce9);
  margin-bottom: 0.5rem;
}

.wt-builder-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wt-results-count {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

/* My lists */
.wt-my-list {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
}

.wt-my-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.wt-my-list-head-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wt-my-clear {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  line-height: 1.3;
}

.wt-my-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wt-my-list-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-top: 1px solid #f3f4f6;
  font-size: 0.9rem;
}

/* Export */
.wt-export-box {
  width: 100%;
  min-height: 140px;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.85rem;
}

.wt-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wt-export-size-btns .btn {
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.wt-save-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  padding: 0.65rem 1rem;
  background: #0d1b2a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.wt-save-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.wt-disclaimer {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
  .wt-tabs .nav-link {
    white-space: normal;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem !important;
  }
}
