/* ==========================================================================
   Cyber Gate — Haberler (haberler.html) ve Haber detayı (haber.html)
   Haber kartı (.news-card) ortak dosyadadır: style.css
   ========================================================================== */

/* ---------- Haberler listesi ---------- */
.news-page { padding: 32px 0 96px; }
#news-featured:not(:empty) { margin-bottom: 24px; }

/* En yeni haber: geniş kart (solda görsel, sağda yazı) */
.news-feature { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 340px; }
.news-feature__media { position: relative; overflow: hidden; background: var(--surface-2); border-radius: calc(var(--radius-lg) - 2px) 0 0 calc(var(--radius-lg) - 2px); }
.news-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-feature:hover .news-feature__media img { transform: scale(1.05); }
.news-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 36px 40px; }
.news-feature__badge {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: var(--primary);
}
.news-feature__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; transition: color .2s; }
.news-feature:hover .news-feature__title { color: var(--primary-300); }
.news-feature__excerpt { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ---------- Haber detayı ---------- */
.article { padding: calc(var(--header-h) + 48px) 0 24px; }
.article__container { max-width: 820px; }
.article__head { margin-bottom: 32px; }
.article__meta { flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; }
.article__meta time, .article__meta span:not(.tag) { display: inline-flex; align-items: center; gap: 6px; }
.article__meta svg { width: 15px; height: 15px; }
.article__title { margin: 0 0 16px; font-family: var(--font-brand); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -0.01em; }
.article__lead { margin: 0; font-size: 19px; line-height: 1.65; color: var(--text-muted); }

.article__cover {
  display: block; width: 100%; padding: 0; margin: 0 0 40px; cursor: zoom-in;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article__cover:hover img { transform: scale(1.02); }
.article__cover:focus-visible, .article__photo:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; }

.article__content p { margin: 0 0 20px; font-size: 17.5px; line-height: 1.85; color: #d4dde8; }

.article__subtitle { margin: 40px 0 16px; font-size: 20px; }
.article__gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article__photo {
  padding: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: var(--surface-2); border: 1px solid var(--border);
}
.article__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article__photo:hover img { transform: scale(1.06); }

.article__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.article__share { display: flex; align-items: center; gap: 10px; }
.article__share-label { margin-right: 4px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.article__share-btn {
  position: relative; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.article__share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.article__share-btn svg { width: 18px; height: 18px; }
.article__copy.is-copied { background: var(--success); border-color: var(--success); color: #07111d; }
.article__copied {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.article__copy.is-copied .article__copied { opacity: 1; }
.article__back svg { width: 16px; height: 16px; }
.article__back:hover svg { transform: translateX(-3px); }

/* Önceki / sonraki haber */
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.article__nav-link {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s;
}
.article__nav-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.article__nav-link small { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-300); }
.article__nav-link span { font-weight: 600; line-height: 1.4; }
.article__nav-link.is-next { text-align: right; grid-column: 2; }

.article__notfound { padding: 48px 0; }
.article__notfound h1 { margin: 0 0 8px; font-size: 28px; }
.article__notfound p { margin: 0 0 24px; }
.article__notfound .flow-btn { margin: 0 auto; }

.article-related { padding-top: 64px; }

@media (max-width: 900px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature__media { aspect-ratio: 16 / 9; border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0; }
  .news-feature__body { padding: 24px; }
}
@media (max-width: 640px) {
  .article { padding-top: calc(var(--header-h) + 28px); }
  .article__lead { font-size: 17px; }
  .article__content p { font-size: 16.5px; }
  .article__gallery-grid { grid-template-columns: 1fr 1fr; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav-link.is-next { grid-column: auto; }
}
