/* ===== DovizKurlar.com — Modern Design System ===== */
:root {
  --primary: #0b1d3a;
  --primary-mid: #132f5c;
  --primary-light: #1e4a8a;
  --accent: #c9a227;
  --accent-light: #e8c547;
  --accent-glow: rgba(201, 162, 39, 0.25);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --bg: #eef2f7;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 136px;
  --max-w: 1140px;
  --content-w: 1000px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(30, 74, 138, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
.hide { display: none !important; }

/* ===== LOGO ===== */
.site-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  color: var(--accent-light);
  display: flex;
  align-items: center;
}

.logo-wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1;
}

.logo-main { color: #fff; }
.logo-tld { color: var(--accent-light); }

.footer-logo .logo-main { color: #fff; }
.footer-logo .logo-tld { color: var(--accent); }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s;
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(11, 29, 58, 0.18);
}

.header-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  height: 48px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-primary .nav {
  width: var(--max-w);
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.header-primary .nav ul {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: none;
  flex: unset;
  padding: 0 12px;
}

.header-primary .nav ul li {
  position: relative;
  pointer-events: auto;
}

.header-primary .nav ul::-webkit-scrollbar { display: none; }

.header-primary .nav > .site-logo {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.header-primary .nav .nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.header-primary .nav .fav-header-btn {
  position: relative;
  z-index: 3;
}

.header-primary .nav .search-toggle {
  position: relative;
  z-index: 3;
}

.header-primary .nav .search-box {
  right: 0;
}

.header-primary .nav ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 10px;
  display: block;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s;
}

.header-primary .nav ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.header-primary .nav ul li a.active {
  color: #fff;
  background: rgba(201,162,39,0.25);
  font-weight: 600;
}

.header-primary .nav ul li.has-dropdown:hover .dropdown { display: block; }

.header-primary .nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  min-width: 220px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 100;
  border: 1px solid var(--border);
}

.header-primary .nav ul li .dropdown li a {
  color: var(--text);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.header-primary .nav ul li .dropdown li a:hover {
  background: var(--bg);
  color: var(--primary-light);
}

.search-toggle {
  color: rgba(255,255,255,0.85);
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.fav-header-btn {
  position: relative;
  color: rgba(255,255,255,0.85);
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
}

.fav-header-btn:hover,
.menu-toggle:hover,
.search-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.fav-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.fav-dropdown {
  position: fixed;
  top: calc(var(--header-h) - 8px);
  right: 20px;
  z-index: 1002;
  min-width: 220px;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}

.fav-dropdown-inner a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.fav-dropdown-inner a:hover {
  background: var(--bg);
  color: var(--primary-light);
}

.fav-dropdown-inner small {
  color: var(--muted);
  font-weight: 500;
}

.fav-dropdown-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  text-align: center;
}

.search-box {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  width: 340px;
  height: 38px;
  border-radius: 10px;
  display: none;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 20;
}

.search-box.open { display: flex; }

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
}

.search-box button {
  color: var(--primary-light);
  display: flex;
  padding: 4px;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.search-results .item {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}

.search-results .item:hover {
  background: var(--bg);
  color: var(--primary-light);
}

.search-hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start !important;
}

.search-hit-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.search-hit-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.search-empty {
  color: var(--muted);
  font-size: 13px;
  cursor: default;
}

/* ===== MARKET TICKER ===== */
.header-secondary {
  background: linear-gradient(180deg, #081528 0%, var(--primary) 100%);
  min-height: 76px;
  height: auto;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.header-container {
  width: var(--max-w);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.market-data {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  align-items: center;
  width: 100%;
}

.market-data::-webkit-scrollbar { display: none; }

.market-data .item {
  flex-shrink: 0;
  min-width: 130px;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  cursor: pointer;
}

.market-data .item:hover {
  background: rgba(255,255,255,0.06);
}

.market-data .item a {
  display: block;
  color: #fff;
}

.market-data .item .item-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.market-data .asset-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.market-data .asset-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.market-data .item .name {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 0;
}

.market-data .item .value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.3px;
}

.market-data .item .meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.market-data .item .change-rate {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.market-data .item .change-rate.up {
  color: var(--success);
  background: var(--success-bg);
}

.market-data .item .change-rate.down {
  color: var(--danger);
  background: var(--danger-bg);
}

.market-data .item .change-amount {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost { background: var(--bg); color: var(--text); flex: 1; }
.btn-ghost:hover { background: var(--border); }
.btn-accent { background: var(--accent); color: var(--primary); flex: 1; }
.btn-accent:hover { background: var(--accent-light); }

/* ===== WRAPPER ===== */
.wrapper {
  max-width: var(--content-w);
  margin: calc(var(--header-h) + 24px) auto 48px;
  padding: 0 20px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== FEATURED ===== */
.featured-home {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.featured-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 50%, var(--primary-light) 100%);
  z-index: 1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.section-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--primary);
  position: relative;
  padding-left: 14px;
}

.section-head h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.see-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  white-space: nowrap;
  transition: color 0.2s;
}

.see-all-link:hover {
  color: var(--accent);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-bg);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.live-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-row {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
}

.featured-container { flex: 0 0 420px; }

.player-container { flex: 1; min-width: 0; }

.hero-card-wrap { display: block; height: 100%; }

.content-card.top-featured {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.hero-card-wrap:hover .content-card.top-featured {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 74, 138, 0.2);
}

.content-card .left .thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

.content-card .left .thumbnail.large { height: 220px; flex: 1; }

.content-card .left .thumbnail.large::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,29,58,0.75) 0%, transparent 55%);
}

.content-card .left .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card-wrap:hover .thumbnail img { transform: scale(1.06); }

.content-card .left .heading {
  padding: 18px 20px 20px;
  background: #fff;
}

.content-card .left .heading .overline {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.content-card .left .heading .headline--large {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.3px;
}

.content-card .left .timestamp {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-card .left .timestamp::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== HABER SLİDER ===== */
.news-slider {
  height: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(30, 74, 138, 0.12);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  background: var(--primary);
  display: flex;
  flex-direction: column;
}

.news-slider-viewport {
  position: relative;
  flex: 1;
  min-height: 244px;
}

.news-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 244px;
}

.news-slider-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  color: #fff;
  text-decoration: none;
}

.news-slider-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.news-slider-slide img {
  width: 100%;
  height: 100%;
  min-height: 244px;
  object-fit: cover;
  transition: transform 6s ease;
}

.news-slider-slide.active img {
  transform: scale(1.05);
}

.news-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 58, 0.92) 0%, rgba(11, 29, 58, 0.35) 45%, transparent 70%);
  pointer-events: none;
}

.news-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 52px 20px 20px;
  z-index: 2;
}

.news-slider-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.news-slider-caption h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slider-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.news-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.news-slider-arrow:hover {
  background: rgba(201, 162, 39, 0.85);
  color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.news-slider-prev { left: 12px; }
.news-slider-next { right: 12px; }

.news-slider-numbers {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: rgba(8, 21, 40, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-slider-num {
  flex: 1;
  max-width: 48px;
  padding: 11px 4px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.news-slider-num:last-child {
  border-right: none;
}

.news-slider-num:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.news-slider-num.active {
  color: var(--primary);
  background: var(--accent);
  font-weight: 800;
}

/* Content row */
.content-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 28px 28px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-top: 1px solid var(--border);
}

.content-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.content-row-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}

.content-row-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-col { flex: 1; min-width: 0; }
.calendar-col { flex: 0 0 320px; }

/* ===== NEWS LIST ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-list .content-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin-bottom: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  min-height: 112px;
  border-left: 3px solid transparent;
}

.news-list a:hover .content-card {
  border-color: rgba(30, 74, 138, 0.15);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  background: #fff;
}

.content-card .right {
  flex-shrink: 0;
  width: 156px;
}

.content-card .right .thumbnail {
  width: 156px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.content-card .right .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-list a:hover .thumbnail img {
  transform: scale(1.05);
}

.content-card .left { flex: 1; min-width: 0; display: flex; align-items: center; }

.content-card .left .heading .headline--default {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s;
}

.content-card .left .heading .summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
}

.content-card .left .timestamp {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}

.news-list a:hover .headline--default { color: var(--primary-light); }

.local-section {
  padding: 22px 24px;
  margin: 8px 0;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.local-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.local-title a {
  color: var(--text);
  transition: color 0.2s;
}

.local-title a:hover { color: var(--primary-light); }

/* ===== ECONOMIC CALENDAR ===== */
.economic-calendar.card {
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.economic-calendar .title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.economic-calendar .title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.ec-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.ec-item:last-child { border-bottom: none; }

.ec-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.ec-item-header .high {
  color: var(--danger);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.importance.high {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.ec-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.ec-item-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ec-item-value small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.ec-item-value span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.divider.my-8 {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ===== HOME CONTENT ===== */
.home-content {
  margin-top: 28px;
  padding: 28px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.seo-intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.seo-intro a {
  color: var(--primary-light);
  font-weight: 600;
}

.seo-intro a:hover {
  color: var(--accent);
}

.home-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.home-section-bar h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.4px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.home-content-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.home-content-grid .news { flex: 1; min-width: 0; }

.home-content-grid .sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar .widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.sidebar .widget:hover {
  box-shadow: var(--shadow-md);
}

.sidebar h2.title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  padding: 16px 18px 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar h2.title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

ul.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

ul.tabs li {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

ul.tabs li.active {
  color: var(--primary-light);
  border-bottom-color: var(--accent);
  background: var(--card);
}

ul.tabs.blue li {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

ul.tabs.blue li.active {
  color: var(--primary-light);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--card);
  margin-bottom: -1px;
}

.tab-content { padding: 14px 16px 16px; }

.converter-section { padding: 14px 16px; }
.converter-section.hide { display: none; }

.converter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.converter-row .currency-converter-input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.converter-row .currency-converter-input:focus {
  border-color: var(--primary-light);
}

.converter-list {
  width: 72px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}

.converter .more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}

.converter .more a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
}

.converter .more a:hover { color: var(--accent); }

.value-table .table table {
  width: 100%;
  border-collapse: collapse;
}

.value-table .table thead th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0 8px;
  text-align: left;
}

.value-table .table thead th:not(:first-child),
.value-table .table tbody td:not(:first-child) { text-align: right; }

.value-table .table tbody tr {
  border-top: 1px solid var(--border);
}

.value-table .table tbody td {
  padding: 9px 0;
  font-size: 14px;
}

.value-table .table tbody td a {
  color: var(--primary-light);
  font-weight: 700;
}

.value-table .table tbody td a:hover { color: var(--accent); }

.text-bold { font-weight: 700; }
.color-up { color: var(--success) !important; }
.color-down { color: var(--danger) !important; }

/* ===== CANLI FİYAT YANIP SÖNME ===== */
@keyframes priceFlashUp {
  0% { background-color: transparent; box-shadow: none; }
  18% { background-color: rgba(34, 197, 94, 0.45); box-shadow: 0 0 14px rgba(34, 197, 94, 0.55); }
  36% { background-color: transparent; box-shadow: none; }
  54% { background-color: rgba(34, 197, 94, 0.3); box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
  100% { background-color: transparent; box-shadow: none; }
}

@keyframes priceFlashDown {
  0% { background-color: transparent; box-shadow: none; }
  18% { background-color: rgba(239, 68, 68, 0.45); box-shadow: 0 0 14px rgba(239, 68, 68, 0.55); }
  36% { background-color: transparent; box-shadow: none; }
  54% { background-color: rgba(239, 68, 68, 0.3); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  100% { background-color: transparent; box-shadow: none; }
}

.price-live {
  display: inline-block;
  border-radius: 4px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: color 0.15s;
}

.price-live.flash-up,
.market-data .value.flash-up {
  animation: priceFlashUp 1.4s ease-out;
  color: #4ade80 !important;
}

.price-live.flash-down,
.market-data .value.flash-down {
  animation: priceFlashDown 1.4s ease-out;
  color: #f87171 !important;
}

.market-data .item.flash-up {
  animation: priceFlashUp 1.4s ease-out;
  border-radius: var(--radius-sm);
}

.market-data .item.flash-down {
  animation: priceFlashDown 1.4s ease-out;
  border-radius: var(--radius-sm);
}

tr.flash-up td { animation: priceFlashUp 1.4s ease-out; }
tr.flash-down td { animation: priceFlashDown 1.4s ease-out; }

.gold-card.flash-up,
.emtia-card.flash-up,
.parity-card.flash-up,
.quick-item.flash-up {
  animation: priceFlashUp 1.4s ease-out;
}

.gold-card.flash-down,
.emtia-card.flash-down,
.parity-card.flash-down,
.quick-item.flash-down {
  animation: priceFlashDown 1.4s ease-out;
}

.asset-price.flash-up { animation: priceFlashUp 1.4s ease-out; color: #4ade80 !important; }
.asset-price.flash-down { animation: priceFlashDown 1.4s ease-out; color: #f87171 !important; }

.time { color: var(--muted); font-size: 11px; font-weight: 400 !important; }

.view-more {
  display: block;
  text-align: right;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
}

.view-more:hover { color: var(--accent); }

.mt-16 { margin-top: 16px; }

/* ===== LEGAL & FOOTER ===== */
.legal-notice {
  background: linear-gradient(135deg, var(--primary) 0%, #0a2540 100%);
  padding: 16px 20px;
}

.legal-notice p {
  max-width: var(--content-w);
  margin: 0 auto;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.legal-notice p strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 20px 32px;
}

footer .container {
  max-width: var(--content-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

footer .col-brand span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  line-height: 1.6;
}

footer .col-link .col-header {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--accent-light);
}

footer .col-link ul li { margin-bottom: 8px; }

footer .col-link ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

footer .col-link ul li a:hover { color: #fff; }

/* ===== COOKIE ===== */
.cookie-disclaimer {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120vh);
  max-width: 720px;
  width: calc(100% - 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-disclaimer.reveal {
  transform: translateX(-50%) translateY(0);
}

.cookie-disclaimer-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-disclaimer-content p {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 200px;
}

.cookie-disclaimer .settings {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 600;
  white-space: nowrap;
}

.cookie-disclaimer .approve {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}

.cookie-disclaimer .approve:hover { background: var(--primary-light); }

/* ===== MOBİL MENÜ & FAVORİLER ===== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 58, 0.55);
  z-index: 1001;
  backdrop-filter: blur(2px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 88vw);
  z-index: 1002;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
}

.mobile-nav-head button {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.mobile-nav-head button:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-nav-body {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
}

.mobile-nav-group {
  margin-bottom: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: rgba(30, 74, 138, 0.08);
  color: var(--primary-light);
}

.mobile-nav-subs {
  padding: 4px 0 4px 12px;
}

.mobile-nav-sub {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 8px;
}

.mobile-nav-sub:hover {
  background: var(--bg);
  color: var(--primary-light);
}

.favorites-widget .fav-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 0 16px 16px;
  line-height: 1.5;
}

.fav-list {
  padding: 0 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}

.fav-item:hover {
  border-color: var(--primary-light);
  background: #fff;
}

.fav-item-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.fav-item-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.fav-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}

.fav-remove:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

body.menu-open {
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-row, .content-row-body, .home-content-grid { flex-direction: column; }
  .featured-container, .calendar-col, .home-content-grid .sidebar { flex: none; width: 100%; }
  .economic-calendar.card { position: static; }
  .hero-row, .content-row { padding-left: 20px; padding-right: 20px; }
  .section-head { padding-left: 20px; padding-right: 20px; }
  footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 128px; }
  .menu-toggle { display: flex; }
  .header-primary .nav ul { display: none; }
  .search-box {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 52px;
    width: auto;
    transform: none;
    height: 44px;
    z-index: 1003;
  }
  .search-box.open { display: flex; }
  .fav-dropdown {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .section-head h1 { font-size: 20px; }
  .market-data .item { min-width: 118px; }
  .market-data .item .value { font-size: 15px; }
  footer .container { grid-template-columns: 1fr; }
  .cookie-disclaimer-content { flex-direction: column; text-align: center; }
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }
  .page-layout { flex-direction: column; }
  .parity-grid { grid-template-columns: 1fr !important; }
}
