:root {
  --bg-page: #eef2f6;
  --surface: #ffffff;
  --surface-alt: #f8fafc;

  --navy-950: #07192d;
  --navy-900: #0c2744;
  --navy-800: #153960;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;

  --forest-700: #14532d;
  --forest-600: #15803d;
  --forest-500: #16a34a;
  --forest-soft: rgba(22, 163, 74, 0.14);

  --down-600: #b91c1c;
  --down-soft: rgba(185, 28, 28, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 8px rgba(12, 39, 68, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 39, 68, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--slate-900);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Üst Canlı Piyasa Bandı */
.markets-bar {
  background: var(--navy-950);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.markets-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.markets-track::-webkit-scrollbar {
  display: none;
}

.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.market-pill .m-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}

.market-pill .m-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.market-pill .m-pct {
  font-weight: 700;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
}

.market-pill.up .m-pct {
  color: #4ade80;
  background: var(--forest-soft);
}

.market-pill.down .m-pct {
  color: #fca5a5;
  background: var(--down-soft);
}

.market-pill.flat .m-pct {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.16);
}

/* Header & Kategori Navigasyonu */
.site-header {
  background: var(--navy-900);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--forest-600);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  width: 280px;
}

.search-form input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 7px 8px;
  width: 100%;
  font-size: 13.5px;
  outline: none;
}

.search-form input::placeholder {
  color: #94a3b8;
}

.search-form button {
  background: var(--forest-600);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--forest-500);
}

.cat-nav {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}

.cat-nav-list::-webkit-scrollbar {
  display: none;
}

.cat-nav-list a {
  display: block;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.cat-nav-list a:hover,
.cat-nav-list a.active {
  color: #ffffff;
  border-bottom-color: #4ade80;
  background: rgba(255, 255, 255, 0.06);
}

/* Son Dakika Akış Bandı */
.breaking-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--slate-200);
  padding: 8px 0;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breaking-tag {
  background: var(--forest-700);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.breaking-ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.breaking-marquee {
  display: inline-flex;
  gap: 28px;
  animation: tickerScroll 40s linear infinite;
}

.breaking-marquee:hover {
  animation-play-state: paused;
}

.breaking-marquee a {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-900);
}

.breaking-marquee a:hover {
  color: var(--forest-700);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ana İçerik & Manşet Slider Alanı */
.main-content {
  padding: 22px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.slider-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-950);
  min-height: 410px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(12, 39, 68, 0.14);
}

.slide-item {
  display: none;
  position: relative;
  width: 100%;
  height: 410px;
}

.slide-item.active {
  display: block;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.headline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 45, 0.95) 14%, rgba(7, 25, 45, 0.28) 65%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.cat-chip {
  display: inline-block;
  background: var(--forest-600);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
  text-transform: uppercase;
}

.headline-title {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.24;
  font-weight: 800;
}

.headline-summary {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.headline-meta {
  font-size: 12px;
  color: #cbd5e1;
}

.slider-controls {
  position: absolute;
  bottom: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.slider-btn {
  background: rgba(7, 25, 45, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--forest-600);
}

.side-headlines {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
}

.side-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-950);
  min-height: 198px;
  box-shadow: var(--shadow-sm);
}

.side-card img {
  width: 100%;
  height: 198px;
  object-fit: cover;
  opacity: 0.72;
}

.side-card .headline-overlay {
  padding: 16px;
}

.side-card .headline-title {
  font-size: 16.5px;
  margin-bottom: 4px;
}

/* Ana Grid & Sidebar */
.page-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy-900);
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
}

.section-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest-700);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--navy-900);
}

.news-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-title {
  margin: 4px 0 8px;
  font-size: 16px;
  line-height: 1.36;
  font-weight: 700;
  color: var(--slate-900);
}

.news-card-title a:hover {
  color: var(--navy-800);
}

.news-card-summary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--slate-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--slate-500);
  display: flex;
  justify-content: space-between;
}

/* Sağ Sütun Kutuları */
.sidebar-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  margin-bottom: 18px;
}

.sidebar-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-200);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.market-table th,
.market-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--slate-200);
  text-align: left;
}

.market-table th {
  color: var(--slate-500);
  font-size: 11.5px;
  font-weight: 700;
}

.market-table td.num {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.text-up {
  color: var(--forest-600);
  font-weight: 700;
}

.text-down {
  color: var(--down-600);
  font-weight: 700;
}

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

.trend-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--slate-200);
  align-items: flex-start;
}

.trend-list li:last-child {
  border-bottom: none;
}

.trend-num {
  background: var(--navy-900);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trend-list a {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* Detay, Reklam & Footer */
.article-detail {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
}

.article-detail h1 {
  margin: 8px 0 12px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--navy-950);
}

.article-lead {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--surface-alt);
  padding: 12px 16px;
  border-left: 4px solid var(--forest-600);
  border-radius: 4px;
  margin-bottom: 18px;
}

.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate-900);
}

.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  margin-bottom: 18px;
}

.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 34px 0 20px;
  margin-top: 28px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 960px) {
  .hero-grid,
  .page-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    width: 100%;
  }

  .header-main {
    flex-wrap: wrap;
  }
}