/*
Theme Name: PiyasaDetay
Theme URI: https://piyasadetay.com
Author: PiyasaDetay
Author URI: https://piyasadetay.com
Description: Haber merkezli, hızlı ve SEO odaklı finans portalı teması.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: piyasadetay
*/

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f6;
  --text: #111827;
  --text-soft: #475467;
  --text-muted: #667085;
  --border: #dfe4ea;
  --brand: #132b43;
  --brand-2: #1f4e79;
  --accent: #c98b1d;
  --accent-soft: #fff4d8;
  --green: #138a4c;
  --red: #c13a2f;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0c1117;
    --surface: #121922;
    --surface-soft: #182332;
    --text: #e8edf3;
    --text-soft: #b6c1ce;
    --text-muted: #8c9aaa;
    --border: #273445;
    --brand: #e8edf3;
    --brand-2: #83b7e7;
    --accent: #e1a93b;
    --accent-soft: rgba(225, 169, 59, 0.14);
    --green: #34c27a;
    --red: #f06a5f;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #eef2f6;
  --text: #111827;
  --text-soft: #475467;
  --text-muted: #667085;
  --border: #dfe4ea;
  --brand: #132b43;
  --brand-2: #1f4e79;
  --accent: #c98b1d;
  --accent-soft: #fff4d8;
  --green: #138a4c;
  --red: #c13a2f;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1117;
  --surface: #121922;
  --surface-soft: #182332;
  --text: #e8edf3;
  --text-soft: #b6c1ce;
  --text-muted: #8c9aaa;
  --border: #273445;
  --brand: #e8edf3;
  --brand-2: #83b7e7;
  --accent: #e1a93b;
  --accent-soft: rgba(225, 169, 59, 0.14);
  --green: #34c27a;
  --red: #f06a5f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.pd-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.pd-market-strip {
  background: #0d1824;
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.pd-market-strip__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.pd-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(19, 138, 76, 0.18);
  flex: 0 0 auto;
}

.pd-market-tick {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #cbd5e1;
  font-size: 13px;
}

.pd-market-tick strong {
  color: #fff;
  font-size: 14px;
}

.pd-up {
  color: var(--green);
}

.pd-down {
  color: var(--red);
}

.pd-site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pd-site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pd-brand {
  color: var(--brand);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 0;
}

.pd-brand span {
  color: var(--accent);
}

.pd-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.pd-nav li {
  list-style: none;
}

.pd-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-nav a:hover {
  color: var(--accent);
}

.pd-theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 28px;
}

.pd-lead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.pd-card,
.pd-story,
.pd-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pd-story {
  overflow: hidden;
}

.pd-story__image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #152333, #355674);
}

.pd-story__image img,
.pd-story-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-story-image-full {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 18px;
  background: var(--surface-soft);
}

.pd-story__body,
.pd-panel,
.pd-card {
  padding: 20px;
}

.pd-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pd-story h1,
.pd-story h2,
.pd-card h2,
.pd-card h3,
.pd-panel h2,
.pd-panel h3 {
  margin: 8px 0 10px;
  line-height: 1.16;
}

.pd-story h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.pd-story h2,
.pd-card h3 {
  font-size: 23px;
}

.pd-excerpt,
.pd-meta,
.pd-panel p {
  color: var(--text-muted);
  line-height: 1.55;
}

.pd-meta {
  font-size: 13px;
}

.pd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.pd-section-head h2 {
  margin: 0;
  font-size: 19px;
}

.pd-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pd-list-link {
  display: block;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-weight: 800;
  line-height: 1.35;
}

.pd-market-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.pd-market-row span {
  color: var(--text-soft);
  font-weight: 800;
}

.pd-page-header {
  margin: 30px auto 22px;
}

.pd-page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.pd-article {
  max-width: 780px;
}

.pd-article-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.pd-article-content p {
  font-size: 18px;
  line-height: 1.75;
}

.pd-price-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.pd-price-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0;
}

.pd-price-value strong {
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
}

.pd-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pd-price-stat {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.pd-price-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.pd-price-stat strong {
  font-size: 20px;
}

.pd-seo-block {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.pd-seo-block h2 {
  margin-top: 0;
}

.pd-seo-block p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.pd-site-footer {
  margin-top: 48px;
  padding: 32px 0;
  background: #0d1824;
  color: #cbd5e1;
}

.pd-site-footer strong {
  color: #fff;
}

@media (max-width: 980px) {
  .pd-site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .pd-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .pd-layout,
  .pd-lead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pd-container {
    width: min(100% - 24px, 1180px);
  }

  .pd-news-grid,
  .pd-price-grid {
    grid-template-columns: 1fr;
  }

  .pd-story__body,
  .pd-panel,
  .pd-card {
    padding: 18px;
  }

  .pd-site-header {
    position: static;
  }
}