/* ===== Avrupa Gündem Haber — editoryal landing ===== */
:root {
  --color-bg: #f6f4f1;
  --color-surface: #ffffff;
  --color-masthead: #0a1628;
  --color-utility: #06101c;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-accent: #c8102e;
  --color-accent-hover: #9f0c24;
  --color-border: #e5e7eb;
  --color-gold: #c9a227;
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --container: min(1180px, 100% - 2rem);
  --article-width: min(820px, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.article-narrow {
  width: var(--article-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Utility + kayan FX ----- */
.utility-bar {
  background: var(--color-utility);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.utility-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.25rem;
  padding-block: 0.3rem;
  max-width: 100%;
}

.utility-date {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.fx-widget {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fx-track {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.fx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  will-change: transform;
  animation: fx-marquee 16s linear infinite;
}

.fx-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fx-code {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.fx-value {
  color: rgba(255, 255, 255, 0.92);
}

.fx-arrow {
  font-size: 0.65rem;
}

.fx-up .fx-arrow,
.fx-up .fx-value {
  color: #4ade80;
}

.fx-down .fx-arrow,
.fx-down .fx-value {
  color: #f87171;
}

.fx-flat .fx-arrow {
  color: rgba(255, 255, 255, 0.45);
}

.fx-stamp {
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.fx-updated {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  white-space: nowrap;
}

/* ----- Masthead ----- */
.site-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0.9rem;
  min-height: 4.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.92;
}

.brand-crest {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-masthead);
  white-space: nowrap;
}

.brand-accent {
  display: block;
  width: 2.25rem;
  height: 2.5px;
  background: var(--color-accent);
  border-radius: 1px;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-accent);
}

/* ----- Breaking ----- */
.breaking-bar {
  background: var(--color-masthead);
  color: #fff;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.4rem;
  padding-block: 0.35rem;
  overflow: hidden;
}

.breaking-label {
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}

.breaking-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.breaking-ticker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-size: 0.86rem;
}

.breaking-ticker span {
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fx-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ----- Landing article ----- */
.landing-article {
  padding-block: 2rem 3.75rem;
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 2.1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.landing-header {
  margin-bottom: 1.15rem;
}

.category-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.category-badge.static {
  margin-bottom: 0.9rem;
}

.landing-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  color: var(--color-text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.meta-sep {
  opacity: 0.5;
}

.landing-figure {
  margin: 1.4rem 0 0.35rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d1d5db;
  border: 1px solid var(--color-border);
}

.landing-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.landing-figure figcaption {
  margin: 0;
  padding: 0.55rem 0.15rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  border: none;
  background: transparent;
}

.article-lead {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  margin: 1.15rem 0 1.5rem;
  color: #374151;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.article-body {
  padding: 0;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.75rem 0 0.85rem;
  color: var(--color-masthead);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  min-width: 3rem;
}

.article-body p {
  margin: 0 0 1.15rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #1f2937;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body p.dropcap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.85;
  padding: 0.12rem 0.45rem 0 0;
  color: var(--color-accent);
}

.article-loading {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--color-text-muted);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-masthead);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  padding-block: 1.75rem;
}

.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.brand-footer .brand-title {
  color: #fff;
}

.brand-footer .brand-sub {
  color: #f3f4f6;
}

.brand-footer .brand-crest {
  width: 40px;
  height: 40px;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .utility-inner {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    padding-block: 0.4rem;
  }

  .utility-date {
    font-size: 0.72rem;
    padding-right: 0.55rem;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fx-list {
    animation-duration: 12s;
    gap: 1.35rem;
  }

  .masthead {
    min-height: 4rem;
    padding-block: 0.7rem;
  }

  .brand-crest {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .landing-article {
    padding-block: 1.25rem 2.5rem;
  }

  .article-card {
    padding: 1.2rem 1.05rem 1.5rem;
  }

  .article-lead {
    font-size: 1.08rem;
  }

  .article-body p {
    font-size: 1.02rem;
  }

  .article-body h2 {
    font-size: 1.15rem;
  }

  .article-body p.dropcap::first-letter {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .container,
  .article-narrow {
    padding-inline: 0.75rem;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .landing-header h1 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breaking-ticker {
    animation: none;
  }

  /* Kur şeridi bilinçli olarak kayar (kullanıcı isteği); sadece hız düşer */
  .fx-list {
    animation-duration: 28s;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Editorial article layout */
:root {
  --color-bg: #f5f3ef;
  --color-masthead: #102039;
  --color-accent: #bc2332;
  --color-text: #172033;
  --color-border: #e4e1dc;
  --container: min(1280px, 100% - 2rem);
}

html { scroll-padding-top: 7rem; }

.site-header { position: relative; border-bottom: 0; }
.masthead { justify-content: space-between; min-height: 6.6rem; padding-block: 1.35rem; }
.brand { gap: 0.9rem; }
.brand-crest { width: 54px; height: 54px; }
.brand-title { font-size: 1.34rem; letter-spacing: 0.105em; }
.brand-sub { letter-spacing: 0.38em; }
.masthead-right { display: flex; align-items: center; gap: 2.2rem; }
.masthead-edition { color: #7a8190; font-size: 0.75rem; line-height: 1.4; text-align: right; }
.masthead-edition strong { color: var(--color-masthead); font-weight: 700; }
.header-action { display: inline-flex; align-items: center; gap: 1rem; background: var(--color-masthead); color: white; padding: 0.68rem 1rem; font-size: 0.79rem; font-weight: 700; letter-spacing: 0.02em; transition: background .2s ease; }
.header-action:hover { background: var(--color-accent); }
.section-nav { background: #fff; border-top: 1px solid #eeece8; border-bottom: 1px solid var(--color-border); }
.section-nav-inner { min-height: 2.9rem; display: flex; align-items: center; gap: 2rem; font-size: 0.77rem; font-weight: 700; }
.section-nav a { color: #596274; white-space: nowrap; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--color-accent); }
.section-nav-note { margin-left: auto; font-weight: 500; color: #9aa0a9; }
.section-nav-note span { margin-inline: .5rem; }
.breaking-bar { background: var(--color-masthead); }
.breaking-inner { min-height: 2.65rem; }
.breaking-label { border-radius: 0; }
.landing-article { padding-block: 3.1rem 5.5rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(240px, 300px); align-items: start; justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); }
.article-main { min-width: 0; }
.article-overline { display: flex; align-items: center; gap: .75rem; font-size: .67rem; font-weight: 700; letter-spacing: .15em; color: #8a8c90; margin-bottom: 1.4rem; }
.article-overline span:first-child { color: var(--color-accent); }
.overline-line { width: 2.2rem; height: 1px; background: #bebfc1; }
.landing-header { margin-bottom: 0; }
.category-badge { border-radius: 0; background: transparent; color: var(--color-accent); padding: 0; }
.category-badge.static { margin-bottom: .65rem; }
.landing-header h1 { font-size: clamp(2.45rem, 4.1vw, 3.85rem); line-height: 1.09; letter-spacing: -.035em; margin: 0 0 1.15rem; text-wrap: balance; }
.article-standfirst { font-family: var(--font-heading); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.48; color: #566174; margin: 0 0 1.7rem; }
.article-meta { gap: .65rem; padding: .9rem 0; border-block: 1px solid var(--color-border); font-size: .8rem; }
.landing-figure { margin: 1.35rem 0 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.landing-figure img { aspect-ratio: 1.68; object-fit: cover; background: #d7dadc; }
.landing-figure figcaption { padding: .65rem 0 0; font-size: .75rem; font-style: normal; }
.article-content-wrap { width: min(690px, 100%); margin-inline: auto; padding-top: 2.1rem; }
.article-body p { font-size: 1.105rem; line-height: 1.83; color: #30394a; margin-bottom: 1.3rem; }
.article-body h2 { display: block; border: 0; padding: 0; font-size: 1.65rem; letter-spacing: -.02em; margin: 2.65rem 0 .9rem; }
.article-body p.dropcap::first-letter { font-size: 3.75rem; color: var(--color-accent); padding-right: .5rem; }
.paragraph-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin: -.35rem 0 1.75rem; padding: .53rem .55rem .53rem .9rem; border: 1px solid #d8dce3; border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(16,32,57,.055); color: var(--color-masthead); font-size: .84rem; font-weight: 700; line-height: 1.3; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.paragraph-link span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 4px; background: #f5e9e9; color: var(--color-accent); font-size: 1rem; }
.paragraph-link:hover { border-color: var(--color-accent); box-shadow: 0 6px 16px rgba(16,32,57,.1); transform: translateY(-1px); }
.paragraph-link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.lead-link { margin: -1rem 0 1.3rem; padding: .65rem .65rem .65rem 1rem; background: var(--color-masthead); border-color: var(--color-masthead); color: #fff; box-shadow: 0 8px 20px rgba(16,32,57,.16); }
.lead-link span { background: rgba(255,255,255,.14); color: #fff; }
.lead-link:hover { background: #1b3557; border-color: #1b3557; }
.sidebar-sticky { position: sticky; top: 1.5rem; }
.sidebar-card { background: #fff; padding: 1.55rem 1.45rem 1.65rem; border-top: 3px solid var(--color-accent); box-shadow: 0 14px 35px rgba(16,32,57,.055); }
.sidebar-kicker, .redirect-eyebrow { font-size: .67rem; font-weight: 700; letter-spacing: .14em; color: var(--color-accent); }
.sidebar-card h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: .25rem 0 1rem; }
.contents-list { list-style: none; padding: 0; margin: 0; }
.contents-list li { border-top: 1px solid #e9e7e3; }
.contents-list a { display: flex; align-items: baseline; gap: .8rem; padding: .72rem 0; font-size: .85rem; line-height: 1.35; font-weight: 600; }
.contents-list a:hover { color: var(--color-accent); }
.contents-list span { color: var(--color-accent); font-size: .72rem; font-weight: 700; }
.sidebar-note { display: flex; gap: .8rem; margin-top: 1.1rem; padding: 1.1rem; background: #eeede9; color: #3c4757; font-size: .81rem; line-height: 1.5; }
.sidebar-note p { margin: .3rem 0 0; }
.note-icon { display: grid; place-items: center; flex: 0 0 1.25rem; height: 1.25rem; background: var(--color-masthead); color: white; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.redirect-card { margin-top: 3rem; padding: 1.7rem; background: #fff; border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); }
.redirect-card h2 { font-family: var(--font-heading); font-size: 1.6rem; margin: .4rem 0; }
.redirect-card p { color: #586273; margin: 0 0 1.1rem; font-size: .91rem; }
.redirect-button { display: inline-flex; gap: 1.5rem; align-items: center; background: var(--color-accent); color: #fff; padding: .8rem 1.1rem; font-weight: 700; font-size: .88rem; }
.redirect-button:hover { background: #951a27; }
.site-footer { padding-block: 2.5rem; }
.footer-description { margin: 0; color: #c0c7d1; font-size: .85rem; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 780px; }
  .article-sidebar { order: 2; }
  .sidebar-sticky { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .sidebar-note { margin-top: 0; }
}

@media (max-width: 600px) {
  .masthead { min-height: 4.7rem; padding-block: .8rem; }
  .brand-crest { width: 40px; height: 40px; }
  .brand-title { font-size: .95rem; }
  .brand-sub { font-size: .65rem; }
  .masthead-edition, .header-action, .section-nav-note { display: none; }
  .section-nav-inner { gap: 1.35rem; overflow-x: auto; }
  .landing-article { padding-block: 1.7rem 3rem; }
  .article-overline { margin-bottom: 1rem; }
  .landing-header h1 { font-size: clamp(2.05rem, 9vw, 2.8rem); }
  .article-standfirst { font-size: 1.08rem; }
  .landing-figure { margin-inline: -.75rem; }
  .landing-figure figcaption { padding-inline: .75rem; }
  .article-content-wrap { padding-top: 1.3rem; }
  .article-body p { font-size: 1.02rem; }
  .article-body h2 { font-size: 1.42rem; }
  .sidebar-sticky { display: block; }
  .sidebar-note { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-list { animation: none; }
}
