/* SSBulten — Ana Sayfa */
.page-home { overflow-x: hidden; --gap: 24px; }
.page-home .wrap { max-width: 1320px; padding: 0 22px; }

/* ---------- 1. BÖLÜM BAŞLIĞI ---------- */
.section-head {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
}
.section-head .bar { width: 4px; height: 26px; background: var(--gold); border-radius: 2px; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head a.more {
  font-size: .8rem; color: var(--text-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.section-head a.more:hover { color: var(--gold); }

/* ---------- 2. BREAKING NEWS BANDI ---------- */
.ticker-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  position: relative; z-index: 30;
}
.ticker-inner { display: flex; align-items: center; height: 42px; gap: 16px; overflow: hidden; }
.ticker-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}
.ticker-label .dot {
  width: 7px; height: 7px; background: #fff; border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}
.ticker-viewport { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-track {
  display: flex; align-items: center; gap: 50px; height: 100%;
  white-space: nowrap; width: max-content;
  animation: marquee 120s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { color: var(--text-2); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.ticker-track a:hover { color: var(--text); }
.ticker-track a::before { content: "›"; color: var(--gold); font-weight: 700; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-label .dot { animation: none; }
}

/* ---------- 3. HERO / BENTO ---------- */
.hero { padding: 36px 0 20px; }
.bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  height: 560px;
}
.hero-cell {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero-cell.lead { grid-row: 1 / 3; }
.hero-cell.wide { grid-column: 2 / 4; }
.hero-cell .ph {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.hero-cell:hover .ph { transform: scale(1.06); }
.hero-cell::after {
  content: ""; position: absolute; inset: 0; background: var(--scrim);
}
.hero-cell .meta { position: relative; z-index: 2; padding: 24px; width: 100%; color: #fff; }
.hero-cell.lead .meta { padding: 34px; }
.hero-cell .meta h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.18; margin: 12px 0 0;
}
.hero-cell.lead .meta h3 { font-size: 1.9rem; }
.hero-cell .meta h3 { font-size: 1.06rem; }
.hero-cell .meta p { display: none; }
.hero-cell.lead .meta p {
  display: block; color: rgba(255,255,255,.82); font-size: .96rem; margin-top: 10px; max-width: 90%;
}
.hero-cell .timeline {
  display: flex; gap: 12px; align-items: center; margin-top: 12px;
  font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.7);
}

/* Köşe HUD aksanı */
.hero-cell .corner {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  width: 26px; height: 26px; pointer-events: none; opacity: .55;
}
.hero-cell .corner::before, .hero-cell .corner::after {
  content: ""; position: absolute; background: var(--gold);
}
.hero-cell .corner::before { top: 0; right: 0; width: 100%; height: 2px; }
.hero-cell .corner::after { top: 0; right: 0; width: 2px; height: 100%; }

/* ---------- 4. KATEGORİ ETİKETİ ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(212,168,75,.16); color: var(--gold-soft);
  border: 1px solid rgba(212,168,75,.32);
}
.tag.on-image { background: rgba(212,168,75,.22); backdrop-filter: blur(6px); }
.tag.havacilik { color: #7db8ff; background: rgba(125,184,255,.14); border-color: rgba(125,184,255,.3); }
.tag.deniz { color: #5fd3c3; background: rgba(95,211,195,.14); border-color: rgba(95,211,195,.3); }
.tag.kara { color: #c5a06a; background: rgba(197,160,106,.16); border-color: rgba(197,160,106,.32); }
.tag.uzay { color: #b08bff; background: rgba(176,139,255,.14); border-color: rgba(176,139,255,.3); }
.tag.siber { color: #ff7a8a; background: rgba(255,122,138,.14); border-color: rgba(255,122,138,.3); }

/* ---------- 5. ANA İZGARA ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  padding: 32px 0 60px;
  align-items: start;
  min-width: 0;
}
.layout > main,
.layout > .sidebar {
  min-width: 0;
  max-width: 100%;
}
.page-home main > .ssb-unit-wide { margin-top: 0; margin-bottom: 22px; }

/* Haber kartları grid */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.news-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,168,75,.4);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.7), 0 0 0 1px var(--navy-glow);
}
.news-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-card .thumb .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .55s var(--ease); }
.news-card:hover .thumb .ph { transform: scale(1.07); }
.news-card .thumb .tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.news-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
  line-height: 1.28; letter-spacing: -.01em; margin-bottom: 9px;
}
.news-card h3 a { transition: color .2s; }
.news-card:hover h3 a { color: var(--gold-soft); }
.news-card .excerpt { color: var(--text-2); font-size: .9rem; line-height: 1.55; flex: 1; }
.news-card .card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px;
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-3);
}
.news-card .card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-card .card-meta svg { width: 13px; height: 13px; }
.news-card .card-meta .meta-views { color: var(--gold-soft); font-weight: 600; }

/* "Daha fazla" butonu */
.load-more {
  display: flex; justify-content: center; margin-top: 34px;
}
.load-more button {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: .9rem;
  padding: 13px 28px; border-radius: 10px; transition: all .2s;
}
.load-more button:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 6. SIDEBAR ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 92px; }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.sidebar-card .sb-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 16px;
}
.sidebar-card .sb-head .dotmark { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }

/* En çok okunanlar */
.popular-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popular-list li:first-child { padding-top: 0; }
.popular-list .rank {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-3); width: 26px; flex-shrink: 0; line-height: 1.1;
}
.popular-list li:nth-child(1) .rank { color: var(--gold); }
.popular-list .pl-body h4 {
  font-size: .9rem; font-weight: 600; line-height: 1.35; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.popular-list li:hover .pl-body h4 { color: var(--gold-soft); }
.popular-list .pl-body .pm { font-family: var(--font-mono); font-size: .68rem; color: var(--text-3); margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.popular-list .pl-body .pm .vc { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-soft); font-weight: 600; }

/* Etiket bulutu */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: .8rem; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 20px; transition: all .2s;
}
.tag-cloud a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.tag-cloud a span { color: var(--text-3); font-family: var(--font-mono); font-size: .7rem; }

/* Hisse / gösterge paneli */
.ticker-card .sb-head .live {
  margin-left: auto; font-family: var(--font-mono); font-size: .62rem;
  color: var(--green); display: inline-flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: .08em;
}
.ticker-card .sb-head .live .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
.stock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.stock-row:last-child { border-bottom: none; padding-bottom: 0; }
.stock-row .sym { display: flex; flex-direction: column; }
.stock-row .sym b { font-size: .85rem; font-weight: 700; }
.stock-row .sym small { font-size: .68rem; color: var(--text-3); }
.stock-row .price { text-align: right; font-family: var(--font-mono); }
.stock-row .price .val { font-size: .9rem; font-weight: 600; display: block; }
.stock-row .price .chg { font-size: .72rem; font-weight: 600; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 280px; min-width: 0; }
  .sidebar > .ssb-unit-box:not(.ssb-unit-live) { flex: 1 1 280px; min-width: 0; max-width: 100%; }
  .sidebar > .ssb-unit-box.ssb-unit-live { flex: none; max-width: 300px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .hero-cell { min-height: 240px; }
  .hero-cell.lead { grid-column: 1 / 3; grid-row: auto; min-height: 320px; }
  .hero-cell.wide { grid-column: auto; }
}
@media (max-width: 560px) {
  .page-home .wrap { padding: 0 16px; }
  .layout { gap: 20px; padding: 16px 0 36px; --gap: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .hero { padding: 20px 0 12px; }
  .hero-cell.lead { grid-column: auto; }
  .hero-cell.lead .meta h3 { font-size: 1.35rem; }
  .hero-cell .meta { padding: 18px; }
  .hero-cell.lead .meta { padding: 22px; }
  .section-head { gap: 8px 10px; margin-bottom: 14px; min-width: 0; }
  .section-head .bar { height: 22px; flex-shrink: 0; }
  .section-head h2 { font-size: 1.15rem; }
  .section-head .rule { min-width: 12px; }
  .section-head a.more { font-size: .74rem; gap: 4px; flex-shrink: 0; margin-left: auto; }
  .news-card .body { padding: 14px 14px 16px; }
  .news-card h3 { font-size: 1.02rem; }
  .news-card:hover { transform: none; }
  .sidebar { flex-direction: column; gap: 16px; }
  .sidebar-card,
  .sidebar > .ssb-unit-box:not(.ssb-unit-live) { flex: none; width: 100%; max-width: 100%; }
  .page-home main > .ssb-unit-wide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .page-home .sidebar > .ssb-unit-box.ssb-unit-live {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }
  .tag-cloud a { font-size: .76rem; padding: 5px 10px; }
  .nl-input-row { flex-direction: column; padding: 10px 12px; gap: 10px; }
  .nl-input-row input { padding: 6px 0; }
  .nl-input-row button { width: 100%; justify-content: center; }
  .ticker-label span.txt { display: none; }
  .ticker-inner { gap: 10px; }
}

/* ---------- 9. PARLATMA KATMANI ---------- */

/* Hareket hassasiyeti (a11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Hero giriş animasyonu — lead hücre LCP; animasyon yok */
.hero-cell.lead { animation: none; opacity: 1; transform: none; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
.hero-cell:not(.lead) { animation: heroIn .8s var(--ease) both; }
.hero-cell:nth-child(2) { animation-delay: .08s; }
.hero-cell:nth-child(3) { animation-delay: .16s; }
.hero-cell:nth-child(4) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-cell:not(.lead) { animation: none; opacity: 1; transform: none; }
}

/* İmleç ışıltısı (spotlight) */
.news-card, .hero-cell { --mx: 50%; --my: 50%; }
.news-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212,168,75,.14), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.news-card:hover::after { opacity: 1; }
.hero-cell::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(212,168,75,.18), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.hero-cell:hover::before { opacity: 1; }

/* Başlık / özet satır kırpma */
.news-card h3 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .excerpt { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-cell .meta h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-cell.lead .meta h3 { -webkit-line-clamp: 3; }

/* ---------- 10. CANLISAAT ÇİPİ ---------- */
.clock-chip {
  flex-shrink: 0; font-family: var(--font-mono); font-size: .74rem; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line);
}
.clock-chip .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
.clock-chip b { color: var(--text); font-weight: 600; letter-spacing: .03em; }
@media (max-width: 680px) { .clock-chip { display: none; } }

/* ---------- 11. KONU PİLLERİ (sabit) — components.css'te tanımlı ---------- */

.news-card.hide-filter { display: none; }
.news-card.fade-filter { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 12. YER İMİ BUTONU ---------- */
.bookmark-btn {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(10,14,23,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; border: 1px solid rgba(255,255,255,.2);
  opacity: 0; transform: translateY(-4px); transition: all .2s;
}
.news-card:hover .bookmark-btn { opacity: 1; transform: none; }
.bookmark-btn:hover { background: var(--gold); color: #0a0e17; border-color: var(--gold); }
.bookmark-btn.saved { opacity: 1; transform: none; background: var(--gold); color: #0a0e17; border-color: var(--gold); }
.bookmark-btn svg { width: 16px; height: 16px; fill: none; }
.bookmark-btn.saved svg { fill: currentColor; }
.bookmark-btn.pop { animation: pop .4s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* ---------- 13. WEB_NEW ENTEGRASYONu ---------- */
.page-home {
  background-image:
    radial-gradient(120% 90% at 0% 0%, rgba(56,96,180,.16), transparent 55%),
    radial-gradient(100% 80% at 100% 0%, rgba(212,168,75,.08), transparent 55%);
}

.hero-cell .ph,
.news-card .thumb .ph {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-cell .ph img,
.hero-cell .ph picture,
.news-card .thumb .ph img,
.news-card .thumb .ph picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cell:has(img),
.news-card:has(img) {
  animation: none;
  background-image: none;
}

.load-more a.load-more-btn,
.load-more .load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  padding: 13px 28px;
  border-radius: 10px;
  transition: all .2s;
  text-decoration: none;
}

.load-more a.load-more-btn:hover,
.load-more .load-more-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Görsel iskelet shimmer */
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.news-card .thumb, .hero-cell {
  background-image: linear-gradient(100deg, var(--surface-2) 28%, var(--line) 50%, var(--surface-2) 72%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: shimmer 1.8s linear infinite;
}
