/* 3) Homepage hierarchy: compact centered H1 above the lead stories,
   while the latest-news block remains a centered H2 section. */
.pd-home-page-title {
  display: none !important;
}

.pd-home-compact-title {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 16px 0 18px;
  padding: 0 14px 12px;
  text-align: center;
}

.pd-home-compact-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--accent);
  opacity: .9;
}

.pd-home-compact-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.pd-latest-stream__head--home-h1 {
  display: block;
  margin: 0 0 22px;
  text-align: center;
}

.pd-latest-stream__intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
}

.pd-latest-stream__head--home-h1 .pd-latest-stream__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
}

.pd-latest-stream__head--home-h1 .pd-latest-stream__kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.pd-latest-stream__home-h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.pd-latest-stream__head--home-h1 p {
  max-width: 660px;
  margin: 10px auto 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: balance;
}

/* 4) Light mode only: Buy/Sell are labels, not trend direction.
   Keep green/red exclusively for the actual change badge/sparkline. */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs span {
    background: #f1f4f7 !important;
    border-color: #d2dae4 !important;
    color: #354154 !important;
  }
  html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs span small,
  html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs span b {
    color: inherit !important;
  }
}
html[data-theme="light"] .pd-home-feed .pd-spot-bs span {
  background: #f1f4f7 !important;
  border-color: #d2dae4 !important;
  color: #354154 !important;
}
html[data-theme="light"] .pd-home-feed .pd-spot-bs span small,
html[data-theme="light"] .pd-home-feed .pd-spot-bs span b {
  color: inherit !important;
}

/* 5) Bring homepage section headers closer to the same editorial rhythm.
   Keep the existing markup and gold identity, but avoid competing ornaments. */
.pd-home-feed .pd-section-head.pd-home-section-title,
.pd-home-feed .pd-section-head.pd-home-market-head {
  padding-left: 14px;
  border-left: 4px solid color-mix(in srgb, var(--accent) 78%, transparent);
}
.pd-home-feed .pd-section-head.pd-home-section-title::before,
.pd-home-feed .pd-section-head.pd-home-market-head::before,
.pd-home-feed .pd-section-head.pd-home-section-title h2::after,
.pd-home-feed .pd-section-head.pd-home-market-head h2::after {
  display: none !important;
}

@media (max-width: 760px) {
  .pd-home-compact-title {
    margin: 11px 0 14px;
    padding: 0 6px 9px;
  }
  .pd-home-compact-title::after {
    width: 40px;
    height: 2px;
  }
  .pd-home-compact-title h1 {
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.1;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .pd-latest-stream__head--home-h1 {
    margin-bottom: 16px;
  }
  .pd-latest-stream__intro {
    padding: 0 4px;
  }
  .pd-latest-stream__head--home-h1 .pd-latest-stream__kicker {
    margin-bottom: 8px;
    padding: 5px 9px;
    font-size: 9.5px;
  }
  .pd-latest-stream__home-h1 {
    font-size: clamp(27px, 8.2vw, 34px);
    line-height: 1.08;
  }
  .pd-latest-stream__head--home-h1 p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .pd-home-feed .pd-section-head.pd-home-section-title,
  .pd-home-feed .pd-section-head.pd-home-market-head {
    padding-left: 10px;
    border-left-width: 3px;
  }
}

/* v1.4 — Homepage semantic hierarchy + CSS-only column alignment. */
.pd-feature-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 0 10px;
  text-align: center;
}
.pd-feature-section-title h1 {
  position: relative;
  margin: 0;
  padding-left: 17px;
  color: var(--text);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.pd-feature-section-title h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

/* JS ile yükseklik ölçmek yerine grid'in doğal stretch davranışını kullan. */
@media (min-width: 981px) {
  .pd-home-feature { align-items: stretch !important; }
  .pd-home-feature__left,
  .pd-home-trend.pd-trend-news { align-self: stretch !important; }
  .pd-home-trend.pd-trend-news {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
  .pd-home-trend.pd-trend-news .pd-trend-news__list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
}

/* H1 yukarı taşındı; akış başlığı H2 olarak daha sakin kalır. */
.pd-latest-stream__home-h1 {
  font-size: clamp(27px, 2.5vw, 36px);
}

@media (max-width: 760px) {
  .pd-feature-section-title {
    min-height: 28px;
    margin-bottom: 8px;
  }
  .pd-feature-section-title h1 {
    padding-left: 14px;
    font-size: clamp(17px, 5.1vw, 20px);
    white-space: nowrap;
  }
  .pd-feature-section-title h1::before {
    width: 6px;
    height: 6px;
  }
  /* Mobilde manşet görselinin ilk ekranı gereksiz kaplamasını azalt. */
  .pd-feature-main a,
  .pd-feature-slide > a {
    min-height: 0 !important;
    aspect-ratio: 16 / 9.25;
  }
  .pd-latest-stream__head--home-h1 p {
    display: none;
  }
  .pd-latest-stream__home-h1 {
    font-size: clamp(23px, 7vw, 29px);
  }
}




/* v1.5.1 — Manset H1 panel and stronger negative-state visuals. */
.pd-feature-section-title--panel {
  justify-content: flex-start;
  min-height: auto;
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
}
.pd-feature-section-title--panel h1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 18px 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, rgba(255,255,255,.08));
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 92%, transparent), color-mix(in srgb, var(--bg-elevated, var(--surface)) 96%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.pd-feature-section-title--panel h1::before { content: none; }
.pd-feature-section-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.pd-feature-section-title--panel h1 > span:last-child {
  display: block;
  min-width: 0;
}

.pd-spot-badge.pd-down {
  color: #f87171 !important;
  background: color-mix(in srgb, #ef4444 14%, transparent) !important;
  border-color: color-mix(in srgb, #ef4444 36%, transparent) !important;
}
.pd-spot-badge.pd-up {
  color: #34d399 !important;
  background: color-mix(in srgb, #10b981 14%, transparent) !important;
  border-color: color-mix(in srgb, #10b981 36%, transparent) !important;
}
.pd-spot-badge.pd-flat {
  color: #cbd5e1 !important;
  background: color-mix(in srgb, #94a3b8 14%, transparent) !important;
  border-color: color-mix(in srgb, #94a3b8 28%, transparent) !important;
}

@media (max-width: 760px) {
  .pd-feature-section-title--panel {
    margin-bottom: 10px;
  }
  .pd-feature-section-title--panel h1 {
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 22px;
    gap: 10px;
  }
  .pd-feature-section-title__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 15px;
  }
  .pd-feature-section-title--panel h1 > span:last-child {
    font-size: clamp(18px, 5.1vw, 21px);
    line-height: 1.12;
    white-space: normal;
  }
}


/* v1.5.2 — Restore semantic green/red badges and fix low/high card tones. */
.pd-home-feed .pd-spot-card .pd-spot-badge.pd-up {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.pd-home-feed .pd-spot-card .pd-spot-badge.pd-down {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.14) !important;
  border: 1px solid rgba(239, 68, 68, 0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.pd-home-feed .pd-spot-card .pd-spot-badge.pd-flat {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.14) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

/* Non-crypto buy/sell semantics stay as they were; crypto low/high should be low=red, high=green. */
.pd-home-feed .pd-spot-bs .pd-spot-metric--low {
  background: rgba(239, 68, 68, 0.10) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: #f87171 !important;
}
.pd-home-feed .pd-spot-bs .pd-spot-metric--low small,
.pd-home-feed .pd-spot-bs .pd-spot-metric--low b {
  color: #f87171 !important;
}
.pd-home-feed .pd-spot-bs .pd-spot-metric--high {
  background: rgba(16, 185, 129, 0.10) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
  color: #34d399 !important;
}
.pd-home-feed .pd-spot-bs .pd-spot-metric--high small,
.pd-home-feed .pd-spot-bs .pd-spot-metric--high b {
  color: #34d399 !important;
}
/* Keep forex buy/sell colors explicit after the light-mode neutralization and across themes. */
.pd-home-feed .pd-spot-bs .pd-spot-metric--buy {
  background: rgba(16, 185, 129, 0.10) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
  color: #34d399 !important;
}
.pd-home-feed .pd-spot-bs .pd-spot-metric--buy small,
.pd-home-feed .pd-spot-bs .pd-spot-metric--buy b {
  color: #34d399 !important;
}
.pd-home-feed .pd-spot-bs .pd-spot-metric--sell {
  background: rgba(239, 68, 68, 0.10) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: #f87171 !important;
}
.pd-home-feed .pd-spot-bs .pd-spot-metric--sell small,
.pd-home-feed .pd-spot-bs .pd-spot-metric--sell b {
  color: #f87171 !important;
}


/* v1.5.4 — Definitive market state colors (light + dark). */
html[data-theme="light"] .pd-home-feed .pd-spot-card .pd-spot-badge.pd-up,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-card .pd-spot-badge.pd-up,
html[data-theme="dark"] .pd-home-feed .pd-spot-card .pd-spot-badge.pd-up {
  color: #22c55e !important;
  background: rgba(34,197,94,.14) !important;
  border-color: rgba(34,197,94,.48) !important;
}
html[data-theme="light"] .pd-home-feed .pd-spot-card .pd-spot-badge.pd-down,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-card .pd-spot-badge.pd-down,
html[data-theme="dark"] .pd-home-feed .pd-spot-card .pd-spot-badge.pd-down {
  color: #ef4444 !important;
  background: rgba(239,68,68,.13) !important;
  border-color: rgba(239,68,68,.46) !important;
}
html[data-theme="light"] .pd-home-feed .pd-spot-card .pd-spot-badge.pd-flat,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-card .pd-spot-badge.pd-flat,
html[data-theme="dark"] .pd-home-feed .pd-spot-card .pd-spot-badge.pd-flat {
  color: var(--text-muted) !important;
  background: color-mix(in srgb,var(--text-muted) 10%,transparent) !important;
  border-color: color-mix(in srgb,var(--text-muted) 28%,transparent) !important;
}

/* Crypto low/high: low red, high green in both themes. */
html[data-theme="light"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--low,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs > .pd-spot-metric--low,
html[data-theme="dark"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--low {
  background: rgba(239,68,68,.10) !important;
  border-color: rgba(239,68,68,.30) !important;
  color: #ef4444 !important;
}
html[data-theme="light"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--low small,
html[data-theme="light"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--low b,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs > .pd-spot-metric--low small,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs > .pd-spot-metric--low b,
html[data-theme="dark"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--low small,
html[data-theme="dark"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--low b { color:#ef4444 !important; }

html[data-theme="light"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--high,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs > .pd-spot-metric--high,
html[data-theme="dark"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--high {
  background: rgba(34,197,94,.10) !important;
  border-color: rgba(34,197,94,.30) !important;
  color: #22c55e !important;
}
html[data-theme="light"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--high small,
html[data-theme="light"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--high b,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs > .pd-spot-metric--high small,
html:not([data-theme="dark"]) .pd-home-feed .pd-spot-bs > .pd-spot-metric--high b,
html[data-theme="dark"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--high small,
html[data-theme="dark"] .pd-home-feed .pd-spot-bs > .pd-spot-metric--high b { color:#22c55e !important; }
