/* Market Screener Feature Page - Premium Editorial Layout */

/* ========================================
   SECTIONS CONTAINER
   ======================================== */
.market-screener_sectionsContainer__Bu6kT {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ========================================
   FEATURE SECTION - Full Width Alternating
   ======================================== */
.market-screener_featureSection__kyAYu {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.market-screener_featureSectionVisible__UazMB {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating backgrounds */
.market-screener_featureSection__kyAYu:nth-child(odd) {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.market-screener_featureSection__kyAYu:nth-child(even) {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Reverse layout for odd-indexed sections (2nd, 4th) */
.market-screener_featureSectionReversed__iQv2x .market-screener_contentSide__BcZ4f {
  order: 2;
}

.market-screener_featureSectionReversed__iQv2x .market-screener_visualSide__1RUAB {
  order: 1;
}

/* ========================================
   CONTENT SIDE (Text)
   ======================================== */
.market-screener_contentSide__BcZ4f {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.market-screener_sectionLabel__sZRzZ {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #059669);
}

.market-screener_sectionLabel__sZRzZ::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent, #059669);
  border-radius: 1px;
}

.market-screener_sectionTitle__3YzfI {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.market-screener_sectionDescription__5brjx {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #475569;
}

.market-screener_benefitsList__JQP36 {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.market-screener_benefitItem__A3rCF {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.5;
}

.market-screener_benefitIcon__zLDsN {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: linear-gradient(135deg, var(--accent-light, #A7F3D0) 0%, var(--accent, #059669) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.market-screener_benefitIcon__zLDsN svg {
  width: 11px;
  height: 11px;
  color: white;
}

/* ========================================
   VISUAL SIDE (Diagram)
   ======================================== */
.market-screener_visualSide__1RUAB {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.market-screener_visualWrapper__37iAv {
  position: relative;
  width: 100%;
  max-width: 420px;
}

/* Subtle glow behind the visual */
.market-screener_visualWrapper__37iAv::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow, rgba(5, 150, 105, 0.08)) 0%,
    transparent 70%
  );
  border-radius: 24px;
  z-index: 0;
}

.market-screener_visualCard__cuH00 {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 1;
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.market-screener_featureSection__kyAYu:hover .market-screener_visualCard__cuH00 {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.06);
}

.market-screener_visualCardHeader__3w8ns {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(
    135deg,
    var(--accent, #059669) 0%,
    var(--accent-dark, #047857) 100%
  );
}

.market-screener_headerIcon__lpjc5 {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-screener_headerIcon__lpjc5 svg {
  width: 16px;
  height: 16px;
  color: white;
}

.market-screener_visualCardTitle__i43R9 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

.market-screener_visualCardBody__4xWHV {
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* ========================================
   CARD CONTENT (Inside Visual Card)
   ======================================== */
.market-screener_cardContent__KkRox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================
   DATA ROWS (Generic)
   ======================================== */
.market-screener_dataRow__7nCoi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: background 200ms ease, border-color 200ms ease;
}

.market-screener_dataRow__7nCoi:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.market-screener_dataIcon__1fenv {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.market-screener_dataSvg__6N1SY {
  width: 20px;
  height: 20px;
}

.market-screener_dataDetails__t2DWE {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.market-screener_dataType__VR6IO {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

.market-screener_dataValue__hymy5 {
  font-size: 10px;
  color: #64748b;
}

.market-screener_dataValue__hymy5 strong {
  color: #334155;
  font-weight: 600;
}

.market-screener_dataBadge__caQQN {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ========================================
   SCREENER TABLE PREVIEW
   ======================================== */
.market-screener_screenerTable__t_E_N {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.market-screener_screenerTableHeader__PZgA5 {
  display: grid;
  grid-template-columns: 90px 60px 45px 55px 70px;
  gap: 6px;
  padding: 8px 10px;
  background: #f1f5f9;
  border-radius: 8px 8px 0 0;
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.market-screener_screenerTableRow__HqOv3 {
  display: grid;
  grid-template-columns: 90px 60px 45px 55px 70px;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.market-screener_screenerTableRow__HqOv3:last-child {
  border-bottom: none;
}

.market-screener_pairCell__6R4x3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-screener_pairIcon__VIcyQ {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: white;
}

.market-screener_pairInfo__KxtyR {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.market-screener_pairName__SBGOF {
  font-size: 10px;
  font-weight: 600;
  color: #1e293b;
}

.market-screener_pairExchange__5eYkI {
  font-size: 8px;
  color: #94a3b8;
}

.market-screener_changeCell__ljQOh {
  font-size: 10px;
  font-weight: 600;
}

.market-screener_changeUp__6Ksf5 {
  color: #059669;
}

.market-screener_changeDown__e1Ufb {
  color: #ea5050;
}

.market-screener_rsiCell__ZDD_I {
  display: flex;
  align-items: center;
  gap: 4px;
}

.market-screener_rsiValue__g9TF6 {
  font-size: 10px;
  font-weight: 600;
  color: #334155;
}

.market-screener_rsiDot__WWpSC {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.market-screener_rsiOverbought__Gd3hT {
  background: #ea5050;
}

.market-screener_rsiOversold__lvMDo {
  background: #059669;
}

.market-screener_rsiNeutral__ts8o_ {
  background: #94a3b8;
}

.market-screener_volumeCell__CIjVW {
  font-size: 10px;
  color: #64748b;
}

.market-screener_volumeHigh__9_gF9 {
  color: #d97706;
  font-weight: 600;
}

.market-screener_patternBadge__f6GKU {
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.market-screener_patternBullish__YJFBM {
  background: #dcfce7;
  color: #059669;
}

.market-screener_patternBearish__ccUnM {
  background: #fef2f2;
  color: #ea5050;
}

.market-screener_patternNeutral__EytSz {
  background: #f5f3ff;
  color: #8b5cf6;
}

.market-screener_patternNone__R8GkY {
  background: #f1f5f9;
  color: #94a3b8;
}

.market-screener_patternIcon__vBE9O {
  width: 10px;
  height: 10px;
}

/* ========================================
   PATTERN CARDS
   ======================================== */
.market-screener_patternsGrid__SGN7T {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.market-screener_patternCard__Y47s9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.market-screener_patternCardIcon__C6SvH {
  width: 24px;
  height: 24px;
}

.market-screener_patternCardLabel__pLccN {
  font-size: 9px;
  font-weight: 600;
  color: #334155;
}

.market-screener_patternCardCount__l0DoN {
  font-size: 14px;
  font-weight: 700;
}

.market-screener_patternCardCountGreen__7F6tu {
  color: #059669;
}

.market-screener_patternCardCountRed__OEPji {
  color: #ea5050;
}

.market-screener_patternCardCountPurple__Oxysi {
  color: #8b5cf6;
}

/* ========================================
   EXCHANGE BADGES
   ======================================== */
.market-screener_exchangeGrid__t1JyI {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.market-screener_exchangeBadge__nG1KP {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.market-screener_exchangeBadgeActive__lrvoT {
  background: #d1fae5;
  border-color: #34d399;
  color: #059669;
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.market-screener_sectionDivider__mfJIo {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e2e8f0 20%,
    #e2e8f0 80%,
    transparent 100%
  );
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
  .market-screener_featureSection__kyAYu {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
  }

  .market-screener_featureSectionReversed__iQv2x .market-screener_contentSide__BcZ4f,
  .market-screener_featureSectionReversed__iQv2x .market-screener_visualSide__1RUAB {
    order: unset;
  }

  .market-screener_contentSide__BcZ4f {
    align-items: center;
  }

  .market-screener_sectionTitle__3YzfI {
    font-size: 1.875rem;
  }

  .market-screener_benefitsList__JQP36 {
    align-items: flex-start;
    text-align: left;
    max-width: 400px;
  }

  .market-screener_visualWrapper__37iAv {
    max-width: 380px;
  }
}

@media (max-width: 640px) {
  .market-screener_featureSection__kyAYu {
    padding: 3rem 1.25rem;
    gap: 2rem;
  }

  .market-screener_sectionTitle__3YzfI {
    font-size: 1.5rem;
  }

  .market-screener_sectionDescription__5brjx {
    font-size: 0.9375rem;
  }

  .market-screener_benefitItem__A3rCF {
    font-size: 0.875rem;
  }

  .market-screener_visualWrapper__37iAv {
    max-width: 100%;
  }

  .market-screener_dataRow__7nCoi {
    padding: 8px 10px;
    gap: 10px;
  }

  .market-screener_dataIcon__1fenv {
    width: 30px;
    height: 30px;
  }

  .market-screener_dataSvg__6N1SY {
    width: 18px;
    height: 18px;
  }

  .market-screener_dataType__VR6IO {
    font-size: 10px;
  }

  .market-screener_dataValue__hymy5 {
    font-size: 9px;
  }

  .market-screener_dataBadge__caQQN {
    font-size: 9px;
    padding: 3px 8px;
  }

  .market-screener_screenerTableHeader__PZgA5,
  .market-screener_screenerTableRow__HqOv3 {
    grid-template-columns: 80px 55px 40px 50px 60px;
    gap: 4px;
    padding: 6px 8px;
  }

  .market-screener_patternsGrid__SGN7T {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .market-screener_featureSection__kyAYu {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .market-screener_visualCard__cuH00 {
    transition: none;
  }

  .market-screener_featureSection__kyAYu:hover .market-screener_visualCard__cuH00 {
    transform: none;
  }
}

