/* ==========================================================================
   Gaziantep Haber Ajansi - tasarim sistemi
   Dis bagimlilik yok, sistem fontlari, tek tema (acik)
   ========================================================================== */

:root {
  --c: #c8102e;                    /* kategori vurgusu, bilesen bazinda ezilir */

  --accent: #c8102e;
  --accent-ink: #ffffff;
  --accent-soft: #fdeaed;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e2e5ea;
  --border-strong: #cfd4dc;

  --ink: #10131a;
  --ink-2: #39404d;
  --ink-3: #6b7380;

  --head-bg: #ffffff;
  --top-bg: #10131a;
  --top-ink: #c3c9d4;

  --up: #0d7a4f;          /* yukari yonlu finans verisi */
  --up-soft: #e8f6ef;
  --down: #c8102e;        /* asagi yonlu finans verisi */
  --down-soft: #fdeaed;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 19, 26, .06), 0 4px 16px rgba(16, 19, 26, .05);
  --shadow-lg: 0 8px 30px rgba(16, 19, 26, .12);

  --wrap: 1240px;
  --gap: 1.25rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* --- temel --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -.016em;
  font-weight: 750;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; top: 0; }

/* --- baslik / header ----------------------------------------------------- */

.site-head {
  background: var(--head-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}

.topbar { background: var(--top-bg); color: var(--top-ink); font-size: .78rem; }
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 34px;
}
.topbar a { color: var(--top-ink); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.today { letter-spacing: .02em; }

.head-main {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .85rem;
}

.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #7a0a1c);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px 7px;
  border-left: 3px solid #fff; border-top: 3px solid #fff;
  border-bottom: 3px solid rgba(255, 255, 255, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em;
}
.brand-text em {
  font-style: normal; font-size: .68rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}

.search { display: flex; position: relative; width: 290px; flex: 0 0 auto; }
.search input {
  width: 100%; padding: .55rem 2.4rem .55rem .8rem;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .9rem;
}
.search input::placeholder { color: var(--ink-3); }
.search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center;
}
.search button:hover { color: var(--accent); }

.catnav { border-top: 1px solid var(--border); background: var(--head-bg); }
.catnav-in {
  display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
}
.catnav-in::-webkit-scrollbar { display: none; }
.catnav-in a {
  padding: .7rem .75rem; font-size: .88rem; font-weight: 650;
  white-space: nowrap; border-bottom: 3px solid transparent;
  color: var(--ink-2);
}
.catnav-in a:hover {
  color: var(--ink); border-bottom-color: var(--c, var(--accent));
}
.catnav-home { color: var(--accent) !important; }

/* --- finans bandi (header icinde, logo ile arama arasinda) --------------- */

.ticker {
  flex: 1 1 auto;
  min-width: 0;                 /* flex tasmasini onler */
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-kay 46s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

.ticker-group { display: flex; flex-shrink: 0; }

@keyframes ticker-kay {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .3rem .7rem;
  font-size: .82rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.tick:hover { color: inherit; }

.tick-name {
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.tick-val { font-weight: 700; color: var(--ink); }

.tick-chg {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  font-size: .74rem;
  font-weight: 700;
}
.tick-arrow {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
}

.tick--up    .tick-chg  { color: var(--up); }
.tick--up    .tick-arrow { border-bottom: 5px solid var(--up); }
.tick--down  .tick-chg  { color: var(--down); }
.tick--down  .tick-arrow { border-top: 5px solid var(--down); }
.tick--flat  .tick-chg  { color: var(--ink-3); }
.tick--flat  .tick-arrow { display: none; }

/* Hareket tercihi kapaliysa kaydirma yerine elle kaydirilabilir serit */
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker-track { animation: none; }
  .ticker-group:nth-child(2) { display: none; }
}

/* --- son dakika seridi --------------------------------------------------- */

.breaking { background: var(--accent); color: var(--accent-ink); }
.breaking-in { display: flex; align-items: center; gap: .9rem; min-height: 42px; }
.breaking-tag {
  font-size: .7rem; font-weight: 850; letter-spacing: .1em;
  padding: .2rem .5rem; border-radius: 3px;
  background: rgba(0, 0, 0, .22); flex-shrink: 0;
}
.breaking-track {
  display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none;
  font-size: .89rem; font-weight: 600;
}
.breaking-track::-webkit-scrollbar { display: none; }
.breaking-track a { white-space: nowrap; }
.breaking-track a:hover { color: var(--accent-ink); text-decoration: underline; }

/* --- manset / hero ------------------------------------------------------- */

.hero {
  display: grid; grid-template-columns: 1.65fr 1fr;
  gap: var(--gap); margin: 1.6rem 0;
}

.hero-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow);
  display: block; min-height: 300px;
}
.hero-main:hover { color: inherit; }
.hero-media { aspect-ratio: 16 / 9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 8, 12, .92) 0%, rgba(6, 8, 12, .55) 38%, rgba(6, 8, 12, 0) 72%);
}
.hero-text {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 1.5rem; color: #fff;
}
.hero-text h1 {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem); margin: .55rem 0 .5rem;
  text-wrap: balance;
}
.hero-text p {
  margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .86);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main:hover .hero-text h1 { text-decoration: underline; text-decoration-thickness: 2px; }

.hero-side { display: grid; gap: var(--gap); grid-auto-rows: 1fr; }

/* --- yerlesim ------------------------------------------------------------ */

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem; margin-bottom: 3rem;
}
.layout-main { min-width: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.layout-side { display: flex; flex-direction: column; gap: 1.25rem; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--border); padding-bottom: .5rem;
}
.sec-head h2 {
  font-size: 1.12rem; text-transform: uppercase; letter-spacing: .04em;
  position: relative; padding-left: .7rem;
}
.sec-head h2::before {
  content: ""; position: absolute; left: 0; top: .1em; bottom: .1em;
  width: 4px; border-radius: 2px; background: var(--c, var(--accent));
}
.sec-more { font-size: .82rem; font-weight: 650; color: var(--ink-3); flex-shrink: 0; }
.sec-more:hover { color: var(--accent); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- kart --------------------------------------------------------------- */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg); border-color: var(--border-strong);
}
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-link:hover { color: inherit; }

.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg {
  display: block; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 10px, var(--border) 10px 20px);
  opacity: .5;
}
.card-media .chip { position: absolute; left: .6rem; bottom: .6rem; }

.card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title {
  font-size: 1rem; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: var(--accent); }
.card-sum {
  margin: 0; font-size: .86rem; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  margin-top: auto; font-size: .76rem; color: var(--ink-3);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.card-meta--light { color: rgba(255, 255, 255, .78); }
.dot { opacity: .6; }

.card--sm .card-title { font-size: .92rem; -webkit-line-clamp: 3; }
.card--sm .card-media { aspect-ratio: 16 / 9; }
.card--sm .card-body { padding: .7rem .75rem .8rem; }

/* --- cip / etiket -------------------------------------------------------- */

.chip {
  display: inline-block; font-size: .68rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .25rem .5rem; border-radius: 4px;
  background: var(--c, var(--accent)); color: #fff;
}
.chip--solid { background: var(--c, var(--accent)); color: #fff; }
.chip--outline {
  background: transparent; color: var(--c, var(--accent));
  border: 1px solid currentColor; text-transform: none;
  letter-spacing: 0; font-weight: 650; font-size: .78rem;
}
.chip--outline:hover { background: var(--c, var(--accent)); color: #fff; }

.taglist { display: flex; flex-wrap: wrap; gap: .4rem; }

/* --- yan panel ----------------------------------------------------------- */

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
}
.panel-title {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .9rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--border); color: var(--ink-2);
}

.ranklist { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranklist li {
  display: flex; gap: .7rem; padding: .6rem 0;
  border-bottom: 1px dashed var(--border);
}
.ranklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank {
  font-size: 1.1rem; font-weight: 850; line-height: 1;
  color: var(--border-strong); min-width: 1.2rem; font-variant-numeric: tabular-nums;
}
.ranklist a { font-size: .9rem; font-weight: 600; line-height: 1.35; }
.ranklist small { display: block; font-size: .74rem; color: var(--ink-3); font-weight: 400; margin-top: .2rem; }

.minilist { list-style: none; margin: 0; padding: 0; }
.minilist li { border-bottom: 1px dashed var(--border); }
.minilist li:last-child { border-bottom: 0; }
.minilist a { display: flex; gap: .65rem; align-items: center; padding: .55rem 0; font-size: .86rem; font-weight: 600; }
.minilist img { width: 58px; height: 42px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }

.authorbox { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.authorbox strong { font-size: 1rem; }
.authorbox span { color: var(--ink-3); font-size: .8rem; }
.authorbox p { margin: .3rem 0; color: var(--ink-2); }
.authorbox a { color: var(--accent); font-weight: 650; font-size: .85rem; }

/* --- haber detay --------------------------------------------------------- */

.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.post--narrow { max-width: 820px; margin-inline: auto; }

.crumbs { font-size: .8rem; color: var(--ink-3); display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }

.post-head { padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.3rem; }
.post-head h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem); margin: .6rem 0 .65rem; text-wrap: balance;
}
.post-lead {
  margin: 0 0 .8rem; font-size: 1.04rem; color: var(--ink-2);
  font-weight: 450; line-height: 1.55;
  border-left: 3px solid var(--accent); padding-left: .85rem;
}
.post-meta { font-size: .82rem; color: var(--ink-3); display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.byline { font-weight: 700; color: var(--ink-2); }

.post-cover { margin: 0 0 1.5rem; }
.post-cover img { width: 100%; border-radius: var(--radius); }
.post-cover figcaption { font-size: .8rem; color: var(--ink-3); padding-top: .5rem; }

/* --- icerik tipografisi -------------------------------------------------- */

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink); max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.9em; margin-bottom: .55em; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.18rem; }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; padding-top: .5rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  margin: 1.6em 0; padding: .3em 0 .3em 1.2em;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2);
}
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5rem .65rem; text-align: left; }
.prose th { background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }

.share { display: flex; align-items: center; gap: .55rem; margin-top: 1.4rem; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; }
.share a {
  padding: .35rem .75rem; border: 1px solid var(--border-strong);
  border-radius: 999px; font-weight: 650; color: var(--ink-2);
}
.share a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- liste sayfasi ------------------------------------------------------- */

.page-head {
  margin: 1.8rem 0 1.5rem; padding-left: 1rem;
  border-left: 5px solid var(--c, var(--accent));
}
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.page-head p { margin: .45rem 0 0; color: var(--ink-2); font-size: .95rem; }
.page-head .count { display: inline-block; margin-top: .5rem; font-size: .78rem; color: var(--ink-3); }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.5rem 0; }
.pager a {
  padding: .55rem 1.1rem; border: 1px solid var(--border-strong);
  border-radius: 999px; font-size: .88rem; font-weight: 650; background: var(--surface);
}
.pager a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager-pos { font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-3); }

.errbox { text-align: center; padding: 5rem 1rem; }
.errbox strong { display: block; font-size: 4.5rem; font-weight: 850; color: var(--accent); line-height: 1; }
.errbox h1 { font-size: 1.5rem; margin: .8rem 0 .5rem; }
.errbox p { color: var(--ink-2); margin: 0 0 1.5rem; }
.btn {
  display: inline-block; padding: .65rem 1.3rem; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: .9rem;
}

/* --- alt bolum ----------------------------------------------------------- */

.site-foot { background: var(--top-bg); color: var(--top-ink); margin-top: 3rem; }
.foot-in {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem; padding-block: 2.5rem;
}
.site-foot a { color: var(--top-ink); }
.site-foot a:hover { color: #fff; }
.foot-brand .brand-text strong { color: #fff; }
.foot-brand p { font-size: .88rem; margin: .6rem 0 0; max-width: 34ch; }
.foot-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: .8rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; }
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.1rem; font-size: .8rem;
}

/* --- duyarli (responsive) ------------------------------------------------ */

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .layout-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  /* bant kendi satirina gecer, arama kutusu logonun yanina */
  .head-main { flex-wrap: wrap; }
  .search { order: 2; margin-left: auto; }
  .ticker { order: 3; flex-basis: 100%; border-top: 1px solid var(--border); padding-top: .4rem; }
  .tick:first-child { padding-left: 0; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  :root { --gap: .9rem; }
  body { font-size: 15.5px; }
  .head-main { flex-wrap: wrap; row-gap: .7rem; }
  .search { order: 2; width: 100%; flex-basis: 100%; margin-left: 0; }
  .ticker { order: 3; }
  .tick { font-size: .78rem; padding: .3rem .6rem; }
  .hero-side { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .post { padding: 1.1rem; border-radius: 0; border-inline: 0; margin-inline: -16px; }
  .prose { font-size: 1.02rem; }
  .foot-in { grid-template-columns: 1fr; gap: 1.5rem; }
  .topbar-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}

@media print {
  .site-head, .site-foot, .layout-side, .share, .breaking, .pager { display: none; }
  .layout { grid-template-columns: 1fr; }
  body { background: #fff; }
}
