/**
 * Sector Flow — premium sector rotation dashboard
 */

.inner-page-banner-section.sf-banner {
  padding-top: 200px !important;
  padding-bottom: 100px !important;
}

.sf-premium-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #254ce9, #7c3aed);
  border-radius: 999px;
}

.sf-section {
  padding: 0 0 3rem;
}

.sf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sf-summary-card {
  padding: 1.15rem 1.25rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px 5px rgba(209, 209, 224, 0.45);
  border-left: 4px solid #254ce9;
}

.sf-summary-card h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 0.35rem;
}

.sf-summary-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.sf-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.sf-dial-wrap {
  flex: 0 0 320px;
  max-width: 100%;
  text-align: center;
}

.sf-balance-bar {
  display: flex;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sf-balance-long {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 0.8s ease;
}

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

.sf-balance-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

.sf-balance-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0.5rem 0 0;
}

.sf-regime-pill {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #0d1b2a;
  color: #fff;
}

.sf-regime-pill.risk-on {
  background: #166534;
}

.sf-regime-pill.risk-off {
  background: #991b1b;
}

.sf-regime-pill.neutral {
  background: #4b5563;
}

.sf-hero-aside {
  flex: 1;
  min-width: 260px;
}

.sf-storm {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
}

.sf-sector-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sf-sector-card {
  padding: 1.25rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px 5px rgba(209, 209, 224, 0.45);
}

.sf-sector-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.sf-score-ring {
  font-size: 1.75rem;
  font-weight: 700;
  color: #254ce9;
  line-height: 1;
}

.sf-sector-card p.sf-thesis {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0.75rem 0 1rem;
}

.sf-stance {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-stance-long {
  background: #dcfce7;
  color: #166534;
}

.sf-stance-watch {
  background: #fef9c3;
  color: #854d0e;
}

.sf-stance-neutral {
  background: #f3f4f6;
  color: #4b5563;
}

.sf-stance-short {
  background: #fee2e2;
  color: #991b1b;
}

.sf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sf-card-actions .btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}

.sf-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.sf-heat-cell {
  padding: 0.85rem 0.65rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sf-heat-cell span.sf-heat-score {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.sf-heat-hot {
  background: linear-gradient(145deg, #15803d, #22c55e);
}

.sf-heat-warm {
  background: linear-gradient(145deg, #2563eb, #38bdf8);
}

.sf-heat-mid {
  background: linear-gradient(145deg, #ca8a04, #facc15);
  color: #1f2937;
}

.sf-heat-cool {
  background: linear-gradient(145deg, #ea580c, #fb923c);
}

.sf-heat-cold {
  background: linear-gradient(145deg, #b91c1c, #ef4444);
}

.sf-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px 5px rgba(209, 209, 224, 0.45);
  background: #fff;
}

.sf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sf-table th,
.sf-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.sf-table th {
  background: #0d1b2a;
  color: #fff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sf-table tbody tr:hover td {
  background: #f9fafb;
}

.sf-pairs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-pairs li {
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: #f9fafb;
  border-left: 4px solid #254ce9;
}

.sf-alerts {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.sf-alerts li {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: #eff6ff;
  border-left: 3px solid #254ce9;
  font-size: 0.9rem;
}

.sf-teaser {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
  color: #fff;
  margin-bottom: 2rem;
}

.sf-teaser h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.sf-blur-zone {
  position: relative;
}

.sf-blur-zone.sf-locked > .sf-blur-target {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.sf-blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
}

.sf-blur-overlay .box {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-width: 420px;
}

.sf-disclaimer {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Override global .nav-tabs .nav-link { padding: 10px 0 } — tabs need horizontal gap */
.sf-tabs.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.sf-tabs .nav-item {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.sf-tabs .nav-link {
  display: inline-block;
  padding: 0.55rem 1.15rem !important;
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: nowrap;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
}

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

/* Bootstrap + style.css load after this file via topheader — must win on active state */
.sf-tabs.nav-tabs .nav-item.show .nav-link,
.sf-tabs.nav-tabs .nav-link.active {
  color: #fff !important;
  background-color: var(--main-color, #254ce9) !important;
  border-color: var(--main-color, #254ce9) !important;
}

/* Override global .blog-section .tab-content { padding-top: 50px } (style.css loads after this file via topheader) */
.blog-section .sf-tab-content.tab-content {
  padding-top: 0 !important;
}

#sfTab.sf-tabs.nav-tabs {
  padding-top: 50px !important;
}

.sf-tab-content > .tab-pane {
  outline: none;
}

.sf-detail-panel {
  padding: 1.5rem;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 0 10px 5px rgba(209, 209, 224, 0.35);
  margin-bottom: 2rem;
}

.sf-score-bars {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sf-score-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.sf-score-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.sf-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #254ce9, #7c3aed);
  border-radius: 999px;
}

@media (max-width: 767px) {
  .sf-hero {
    flex-direction: column;
  }

  .sf-dial-wrap {
    flex: 1 1 100%;
  }

  .sf-tabs .nav-link {
    white-space: normal;
    text-align: center;
    max-width: 11rem;
  }

  .sf-table {
    font-size: 0.78rem;
  }

  .sf-table th,
  .sf-table td {
    padding: 8px 10px;
  }
}
