/* Haberler.com - Son Dakika Haberler ve Güncel Haberler */
:root {
  --primary: #c41e3a;
  --primary-dark: #9e1830;
  --dark: #1a1a1a;
  --text: #333;
  --text-muted: #666;
  --border: #e0e0e0;
  --bg-light: #f5f5f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

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

/* Header – sade, ince menü */
.site-header {
  background: #222;
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.logo span {
  color: var(--primary);
}

/* Nav – daha ince, okunaklı */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav li {
  border-right: 1px solid rgba(255,255,255,0.08);
}

.main-nav li:last-child {
  border-right: none;
}

.main-nav a {
  display: block;
  padding: 0 18px;
  line-height: 52px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.main-nav .nav-disabled {
  display: block;
  padding: 0 18px;
  line-height: 52px;
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  pointer-events: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px 0 40px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.main-layout-simple .content {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.haber-giris {
  text-align: center;
  padding: 48px 24px;
}

.haber-giris-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.haber-giris-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.haber-giris-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Featured / Hero */
.hero {
  margin-bottom: 24px;
}

.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hero-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.hero-card .category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-card h2 a:hover {
  color: #fff;
  text-decoration: underline;
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.news-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-light);
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .body {
  padding: 14px;
}

.news-card .category {
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.news-card h3 a:hover {
  color: var(--primary);
}

/* Section title */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.widget-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.widget-body {
  padding: 12px;
}

/* Son dakika list */
.breaking-list {
  list-style: none;
}

.breaking-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.4;
}

.breaking-list li:last-child {
  border-bottom: none;
}

.breaking-list a:hover {
  color: var(--primary);
}

/* Kur/Döviz */
.kur-widget {
  display: grid;
  gap: 8px;
}

.kur-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.kur-item:last-child {
  border-bottom: none;
}

.kur-item .rate {
  font-weight: 700;
  color: var(--text);
}

.kur-item .change {
  font-size: 0.8rem;
}

.kur-item .change.up {
  color: #0a0;
}

.kur-item .change.down {
  color: #c00;
}

/* Category blocks on homepage */
.category-block {
  margin-bottom: 32px;
}

.category-block .section-title {
  margin-bottom: 12px;
}

.category-block .news-grid {
  margin-bottom: 0;
}

/* Article detail page */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.article-page .category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.article-page h1 {
  font-size: 1.85rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.article-page .featured-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-page .featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 1em;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
  color: var(--text);
}

.article-body h3:first-child {
  margin-top: 0;
}

/* Haber içi linkler – belirgin ve tıklanabilir */
.article-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.article-body a:hover {
  color: var(--primary-dark);
  background: rgba(196, 30, 58, 0.08);
}

.article-body a.link-cta {
  display: inline-block;
  margin: 4px 0;
  padding: 12px 20px;
  min-height: 44px;
  line-height: 1.3;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.article-body a.link-cta:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.article-body a.link-cta:active {
  transform: scale(0.98);
}

/* Mobil dokunma alanı */
@media (pointer: coarse) {
  .article-body a.link-cta {
    -webkit-tap-highlight-color: rgba(196, 30, 58, 0.2);
    tap-highlight-color: rgba(196, 30, 58, 0.2);
  }
}

/* Yoğunluk uyarısı */
.yogunluk-uyari {
  background: #fff3cd;
  color: #856404;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #ffc107;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.back-link:hover {
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #999;
  padding: 24px 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: #fff;
}

/* Placeholder image */
.thumb img[src=""],
.thumb img:not([src]) {
  background: linear-gradient(135deg, #eee 0%, #ddd 100%);
  min-height: 120px;
}

/* Boş durum – sadece sizin haberleriniz */
.hero-empty {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}

.hero-empty p {
  margin-bottom: 8px;
}

.hero-empty-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.empty-msg {
  color: var(--text-muted);
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.empty-msg code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========== MOBİL ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 48px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .main-layout,
  .main-layout-simple {
    padding: 16px 0 32px;
    gap: 20px;
  }

  .haber-giris {
    padding: 32px 16px;
  }

  .haber-giris-btn {
    padding: 14px 28px;
    min-height: 48px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .article-page {
    padding: 16px 16px 32px;
    max-width: 100%;
  }

  .article-page h1 {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body a.link-cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    min-height: 48px;
    font-size: 1.05rem;
    margin: 12px 0;
  }

  .widget {
    margin-bottom: 0;
  }

  .site-footer {
    padding: 20px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header-inner {
    min-height: 44px;
    padding: 0 12px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .haber-giris {
    padding: 24px 12px;
  }

  .article-page {
    padding: 12px 12px 24px;
  }

  .article-page h1 {
    font-size: 1.3rem;
  }

  .article-body a.link-cta {
    padding: 16px;
    min-height: 52px;
  }
}
