/* ===== Yeni Şafak style header ===== */

/* TOP BAR — dark red */
.ys-top {
  background: oklch(32% 0.13 25);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.ys-top-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 44px;
  gap: 24px;
}
.ys-top-l { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; white-space: nowrap; }
.ys-date { font-weight: 600; letter-spacing: 0.04em; }
.ys-dot { color: rgba(255,255,255,0.4); }
.ys-time { color: #fff; }
.ys-top-nav { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.ys-top-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  transition: color .15s;
  position: relative;
}
.ys-top-link::before {
  content: "•";
  margin-right: 26px;
  margin-left: -26px;
  color: rgba(255,255,255,0.35);
}
.ys-top-link:first-child::before { content: none; margin: 0; }
.ys-top-link:hover { color: #fff; }
.ys-plus {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.75);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .15s;
}
.ys-plus:hover { color: #fff; }

/* MAIN HEADER — bright red */
.ys-main {
  background: oklch(58% 0.225 25);
  color: #fff;
}
.ys-main-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 96px;
}
.ys-burger {
  background: transparent;
  border: 0;
  color: #fff;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.ys-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 56px;
}
.ys-logo-img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.ys-edisyon {
  display: flex; align-items: center; gap: 14px;
  margin-left: 18px;
}
.ys-edisyon-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  opacity: 0.92;
}
.ys-flags { display: flex; align-items: center; gap: 8px; }
.ys-flag {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: opacity .15s;
  opacity: 0.85;
}
.ys-flag:hover, .ys-flag.active { opacity: 1; }
.ys-flag.active { background: rgba(255,255,255,0.10); }
.ys-flag-emoji { font-size: 16px; line-height: 1; filter: saturate(1.2); }
.ys-flag-code { letter-spacing: 0.04em; }

.ys-tvnet {
  display: inline-flex; align-items: center; gap: 10px;
  background: oklch(28% 0.16 265);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.ys-tvnet:hover { background: oklch(22% 0.18 265); color: #fff; }
.ys-tvnet-brand {
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.ys-tvnet-pulse { display: inline-flex; align-items: center; gap: 2px; }
.ys-tvnet-pulse span {
  width: 4px; height: 4px; border-radius: 50%;
  background: #fff;
  animation: ys-pulse-dot 1.4s infinite;
}
.ys-tvnet-pulse span:nth-child(2) { width: 6px; height: 6px; animation-delay: 0.15s; }
.ys-tvnet-pulse span:nth-child(3) { width: 8px; height: 8px; animation-delay: 0.3s; }
@keyframes ys-pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.ys-tvnet-text { font-weight: 700; }

/* Nav row inside main bright red */
.ys-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  gap: 20px;
}
.ys-nav { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ys-nav::-webkit-scrollbar { display: none; }
.ys-nav-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  cursor: pointer;
  padding: 8px 4px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .15s;
}
.ys-nav-btn:hover { opacity: 0.85; color: #fff; }
.ys-nav-btn.is-pill {
  background: #1A1A1A;
  color: #fff;
  border-radius: 8px;
  padding: 8px 18px;
}
.ys-nav-btn.is-pill:hover { background: #000; opacity: 1; }
.ys-nav-btn.is-active { text-decoration: none; }
.ys-nav-btn.is-active:not(.is-pill) { opacity: 0.7; }
.ys-star { color: #fff; font-size: 14px; opacity: 0.92; }
.ys-more { letter-spacing: -0.08em; font-size: 28px; padding: 0 6px; }
.ys-search {
  background: transparent;
  border: 0;
  color: #fff;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background .15s;
}
.ys-search:hover { background: rgba(255,255,255,0.12); }

/* Market cards strip */
.ys-market {
  background: oklch(94% 0.005 250);
  border-top: 1px solid oklch(88% 0.006 250);
  border-bottom: 1px solid oklch(88% 0.006 250);
  padding: 14px 0;
}
.ys-market-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 10px;
}
.ys-market-cards {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  min-width: 0;
}
.ys-mcard {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px 10px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 4px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(15,20,35,0.04);
  min-width: 0;
}
.ys-mcard:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,20,35,0.08); }
.ys-mcard-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: oklch(35% 0.02 260);
  font-family: var(--font-sans);
}
.ys-mcard-val {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: oklch(12% 0.015 260);
  font-family: var(--font-sans);
  line-height: 1.1;
}
.ys-mcard-badge {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  margin-top: 2px;
  color: #fff;
}
.ys-mbg-up { background: oklch(64% 0.16 152); }
.ys-mbg-down { background: oklch(58% 0.22 25); }
.ys-mbg-flat { background: oklch(72% 0.16 70); }
.ys-mcard-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  width: 22px; height: 22px;
  border-radius: 4px;
  color: #fff;
}
.ys-mcard-chgs {
  display: flex; flex-direction: column; gap: 0;
  font-family: var(--font-sans);
  text-align: right;
  line-height: 1.1;
}
.ys-mcard-pct {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ys-mcard-abs {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: -0.01em;
}
.ys-market-cta {
  background: #0F0F0F;
  color: #fff;
  border-radius: 8px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  min-width: 110px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  transition: background .15s;
}
.ys-market-cta:hover { background: #000; color: #fff; }
.ys-market-cta svg { display: block; }
.ys-market-cta span { letter-spacing: 0.06em; }

/* Responsive */
@media (max-width: 1280px) {
  .ys-market-cards { grid-template-columns: repeat(6, 1fr); }
  .ys-mcard:nth-child(n+7) { display: none; }
}
@media (max-width: 1100px) {
  .ys-top-nav { display: none; }
  .ys-top-row { grid-template-columns: 1fr auto; }
  .ys-edisyon { display: none; }
  .ys-main-row { grid-template-columns: auto auto 1fr auto; gap: 16px; }
  .ys-market-cards { grid-template-columns: repeat(4, 1fr); }
  .ys-mcard:nth-child(n+5) { display: none; }
}
@media (max-width: 720px) {
  .ys-logo { height: 40px; }
  .ys-foot-logo { gap: 12px; padding: 0 16px; height: 52px; }
  .ys-foot-logo-img { height: 40px; }
  .ys-foot-logo-ito { height: 44px; }
  .ys-tvnet-text { display: none; }
  .ys-tvnet { padding: 8px 12px; }
  .ys-nav-btn { font-size: 16px; }
  .ys-nav-btn.is-pill { padding: 6px 12px; font-size: 14px; }
  .ys-market-cards { grid-template-columns: repeat(2, 1fr); }
  .ys-mcard:nth-child(n+3) { display: none; }
}
