/* ============================================================================
   HABERDE HABER - Site CSS v2 (Faz B)
   Mynet hibrit + 2026 modern. Mobile-first. SEO + performans.
   ============================================================================ */

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

:root {
  --primary: #e6004a;
  --primary-dark: #b30038;
  --primary-light: #fff0f5;
  --black: #111111;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #4a4a4a;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-400: #b5b5b5;
  --gray-300: #d0d0d0;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --gray-50:  #fafafa;
  --white: #ffffff;
  --success: #16a34a;
  --warning: #f59e0b;
  --info: #0066cc;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --max-width: 1320px;

  --transition: 0.15s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }

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

/* ============================================================================
   1) HEADER + NAVIGATION
   ============================================================================ */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 100;
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-text-sub {
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 2px;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-search-btn,
.header-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  background: transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-700);
  transition: all var(--transition);
}
.header-search-btn:hover,
.header-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.header-date {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
}

/* Ana navigasyon */
.main-nav {
  background: var(--black);
  border-top: 3px solid var(--primary);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  color: #fff;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-bottom-color: var(--primary);
}
.nav-link.active {
  background: var(--primary);
  color: #fff;
}

/* Hava + Döviz bandı */
.market-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.market-bar::-webkit-scrollbar { display: none; }
.market-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
}
.market-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--gray-700);
}
.market-item strong {
  color: var(--black);
  font-weight: 700;
}
.market-item .up { color: var(--success); }
.market-item .down { color: var(--primary); }
.market-item .icon {
  font-size: 14px;
}

/* Son dakika şeridi */
.breaking-bar {
  display: flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  overflow: hidden;
}
.breaking-label {
  background: var(--black);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breaking-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.breaking-feed {
  flex: 1;
  overflow: hidden;
  padding: 10px 16px;
}
.breaking-feed-inner {
  display: flex;
  gap: 32px;
  animation: scroll-left 90s linear infinite;
  white-space: nowrap;
}
.breaking-feed-inner:hover {
  animation-play-state: paused;
}
.breaking-item {
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a.breaking-item:hover {
  opacity: 0.85;
  text-decoration: underline;
  color: #fff;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================================
   2) HERO ALANI - Mynet tarzı yoğun
   ============================================================================ */

.hero-section {
  background: var(--white);
  padding: 16px 0;
}

/* 9 haber tek bakışta: 1 büyük + 4 yan + 4 alt */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-main {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  aspect-ratio: 16/10;
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-main:hover img { transform: scale(1.03); }

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: #fff;
}
.hero-main h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0 8px;
  letter-spacing: -0.5px;
  color: #fff;
}
.hero-main .spot {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main .meta {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}

.hero-side {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
}
.hero-side-item {
  position: relative;
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px;
  transition: all var(--transition);
  overflow: hidden;
}
.hero-side-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease;
}
.hero-side-item:hover { box-shadow: var(--shadow-md); }
.hero-side-item:hover::before { transform: scaleY(1); }
.hero-side-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.hero-side-content { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.hero-side-content h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero alt sıra - 4 küçük kart */
.hero-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hero-mini {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.hero-mini:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.hero-mini img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.hero-mini-content { padding: 10px 12px; }
.hero-mini h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================================
   3) KATEGORİ ROZETLERİ + META
   ============================================================================ */

.cat-badge {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cat-badge-sm {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.hero-mini .cat-badge-sm,
.hero-side-item .cat-badge-sm,
.article-card .cat-badge-sm {
  margin-bottom: 6px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-600);
  flex-wrap: wrap;
}
.meta-author { font-weight: 600; color: var(--gray-700); }
.meta-time-sm { font-size: 11px; color: var(--gray-500); }
.meta-time-sm::before { content: "🕐 "; }

.sponsored-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sponsored-badge-lg {
  font-size: 11px;
  padding: 4px 10px;
}

/* ============================================================================
   4) SECTION TITLES (kategori başlıkları)
   ============================================================================ */

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 16px;
  padding-left: 14px;
  border-left: 6px solid var(--primary);
  display: inline-block;
  letter-spacing: -0.3px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 32px 0 16px;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 8px;
}
.section-header .section-title {
  margin: 0;
  border-bottom: none;
}
.see-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: gap var(--transition);
}
.see-all:hover { gap: 8px; }

/* ============================================================================
   5) ARTICLE CARDS (haber kartları)
   ============================================================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}
.article-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-image .cat-badge-sm {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
}
.article-card-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-content p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Küçük kart varyantı */
.article-card-sm {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card-sm:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.article-card-sm img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.article-card-sm .article-card-content { padding: 10px 12px; }
.article-card-sm h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================================
   6) IN-CONTENT YATAY ŞERİTLER (sidebar yerine)
   ============================================================================ */

.inline-strip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 24px 0;
}
.inline-strip-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}
.inline-strip-title::before {
  content: "";
  width: 6px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

/* Çok okunan / trend list */
.trend-list { display: flex; flex-direction: column; gap: 10px; }
.trend-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.trend-item:last-child { border-bottom: none; }
.trend-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.trend-num.gold { background: #fbbf24; color: #78350f; }
.trend-num.silver { background: #9ca3af; }
.trend-num.bronze { background: #d97706; }
.trend-text { flex: 1; min-width: 0; }
.trend-text h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend-text small { color: var(--gray-500); font-size: 11px; }

/* ============================================================================
   7) KÖŞE YAZARLARI ŞERİDİ
   ============================================================================ */

.authors-strip {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 32px 0;
}
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.author-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.author-card-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.author-card-text { flex: 1; min-width: 0; }
.author-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.author-card-title {
  font-size: 11px;
  color: var(--gray-600);
}

/* ============================================================================
   8) HABER DETAY SAYFASI
   ============================================================================ */

.article-page { padding: 0 0 60px; background: var(--white); }
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin: 20px 0 12px;
}
.breadcrumb a:hover { color: var(--primary); }

.article-header { margin-bottom: 24px; }
.article-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 12px;
  letter-spacing: -0.5px;
  color: var(--black);
}
.article-subtitle {
  font-size: 19px;
  color: var(--gray-700);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-700);
  flex-wrap: wrap;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.article-author small {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
}

.share-buttons {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.share-btn {
  width: 36px;
  height: 36px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-700);
  transition: all var(--transition);
  border: none;
}
.share-btn:hover {
  background: var(--primary);
  color: #fff;
}

.sponsored-notice {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 14px;
  color: #92400e;
}
.sponsored-notice strong { display: block; margin-bottom: 4px; }

.article-featured-image { margin: 24px 0; }
.article-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}
.article-featured-image figcaption {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.article-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-900);
}
.article-content p { margin-bottom: 1.4em; }
.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 1.6em 0 0.6em;
  color: var(--black);
}
.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 14px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--gray-800);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content .tldr {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
}
.article-content .tldr strong {
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}
.article-content .tldr strong::before {
  content: "⚡ ";
  margin-right: 4px;
}
.article-content ul, .article-content ol {
  margin: 0 0 1.4em 1.5em;
}
.article-content li { margin-bottom: 0.4em; }
.article-content table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
  line-height: 1.45;
  overflow: visible;
}
.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.article-content th {
  background: var(--gray-900);
  color: var(--white);
  font-weight: 700;
}
.article-content tr:nth-child(even) td {
  background: var(--gray-50);
}
.article-content pre {
  white-space: pre-wrap;
  overflow-x: visible;
}
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(230,0,74,0.4);
  text-underline-offset: 3px;
}
.article-content em { font-style: italic; }
.article-content strong { font-weight: 700; }

.article-tags {
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.tag {
  background: var(--gray-100);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gray-700);
  font-weight: 500;
}
.tag:hover { background: var(--primary); color: #fff; }

.author-box {
  display: flex;
  gap: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
}
.author-avatar-lg {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  flex-shrink: 0;
}
.author-box h3 { margin-bottom: 4px; }
.author-title { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }

.related-articles { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gray-200); }

/* ============================================================================
   9) KATEGORİ + ARAMA SAYFASI
   ============================================================================ */

.category-header {
  margin: 24px 0;
  padding: 24px;
  background: var(--white);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.category-title {
  font-size: 30px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}
.cat-icon { font-size: 32px; }
.category-subtitle { color: var(--gray-600); margin-top: 6px; font-size: 14px; }

/* ============================================================================
   10) PAGINATION
   ============================================================================ */

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.page-link {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================================
   11) EMPTY + ERROR
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 24px 0;
}
.empty-state h2 { margin-bottom: 12px; color: var(--gray-700); }
.empty-state p { color: var(--gray-500); margin-bottom: 24px; }

.error-page { text-align: center; padding: 60px 20px; }
.error-code {
  font-size: 100px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -4px;
}
.error-page h1 { font-size: 28px; margin: 12px 0; }
.error-page p { color: var(--gray-700); margin-bottom: 28px; }
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  font-size: 15px;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}
.error-recent {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 20px;
  border-radius: var(--radius-lg);
}
.error-recent h3 { margin-bottom: 12px; }
.error-recent ul { list-style: none; }
.error-recent li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.error-recent li:last-child { border-bottom: none; }

/* ============================================================================
   11.5) YASAL / KURUMSAL SAYFALAR
   ============================================================================ */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.legal-header {
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.legal-header h1 {
  font-size: 32px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.5px;
}
.legal-icon {
  font-size: 36px;
  display: inline-block;
}

.legal-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-900);
}
.legal-content .lead {
  font-size: 18px;
  color: var(--gray-700);
  font-weight: 400;
  background: var(--gray-50);
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  letter-spacing: -0.3px;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--black);
}
.legal-content p { margin-bottom: 1.2em; }
.legal-content ul, .legal-content ol {
  margin: 0 0 1.4em 1.5em;
}
.legal-content li {
  margin-bottom: 0.5em;
}
.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(230,0,74,0.4);
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-color: var(--primary); }
.legal-content strong { font-weight: 700; }
.legal-content em { font-style: italic; }

/* Künye tablosu */
.kunye-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
}
.kunye-table th, .kunye-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.kunye-table th {
  background: var(--gray-100);
  font-weight: 700;
  width: 35%;
  color: var(--gray-700);
}
.kunye-table tr:last-child th,
.kunye-table tr:last-child td { border-bottom: none; }

/* İletişim grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.contact-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.contact-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
}
.contact-mail {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.contact-mail:hover { background: var(--primary-dark); color: #fff !important; }

/* Medya kiti paket grid */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.package-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.package-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.package-card-featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 30%);
}
.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.package-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.package-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin: 8px 0 16px;
}
.package-price small {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
}
.package-card ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0;
  text-align: left;
}
.package-card li {
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px dashed var(--gray-200);
}
.package-card li:last-child { border-bottom: none; }
.package-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Hızlı yasal linkler */
.legal-quick-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--gray-200);
}
.legal-quick-links h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  margin-bottom: 14px;
}
.legal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.legal-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-700);
  transition: all var(--transition);
}
.legal-quick-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.legal-quick-link span {
  font-size: 18px;
}

/* Mobil yasal sayfalar */
@media (max-width: 768px) {
  .legal-page { padding: 20px 16px; margin-top: 8px; }
  .legal-header h1 { font-size: 24px; gap: 10px; }
  .legal-icon { font-size: 28px; }
  .legal-content { font-size: 15px; }
  .legal-content h2 { font-size: 18px; }
  .legal-content .lead { font-size: 16px; padding: 12px 16px; }
  .kunye-table th, .kunye-table td { padding: 10px 12px; font-size: 13px; }
  .package-price { font-size: 26px; }
  .legal-links-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   12) FOOTER
   ============================================================================ */

.site-footer {
  background: var(--black);
  color: #ccc;
  margin-top: 60px;
  padding: 48px 0 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-text-sub { color: #999; }
.footer-about {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-bottom-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px;
  margin-top: 32px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================================
   13) RESPONSIVE - MOBİL (mobile-first kalmış geri yamalar)
   ============================================================================ */

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

  /* Hamburger görünür */
  .hamburger { display: flex; }
  .header-right-tools { gap: 8px; }
  .header-date { display: none; }

  /* Nav mobilde gizli, hamburger ile açılır */
  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: none;
  }
  .main-nav.nav-open { max-height: 700px; border-top: 3px solid var(--primary); }
  .nav-inner { flex-direction: column; }
  .nav-link {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero mobilde dikey */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-main h1 { font-size: 22px; }
  .hero-main-overlay { padding: 16px; }
  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }
  .hero-side-item { flex-direction: column; padding: 8px; }
  .hero-side-item img { width: 100%; height: 120px; }

  .hero-bottom-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Article grid mobil */
  .article-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Footer mobilde 2 sütun */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Haber detay mobil */
  .article-title { font-size: 26px; }
  .article-subtitle { font-size: 16px; }
  .article-content { font-size: 17px; line-height: 1.7; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }

  /* Author box mobilde dikey */
  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Authors grid mobilde tek sütun */
  .authors-grid { grid-template-columns: 1fr; }

  /* Section title mobil */
  .section-title { font-size: 18px; }

  /* Kategori header mobil */
  .category-header { padding: 16px; }
  .category-title { font-size: 22px; }
  .cat-icon { font-size: 24px; }

  /* Hava + döviz fontları */
  .market-bar-inner { padding: 6px 12px; gap: 14px; font-size: 12px; }
}

@media (max-width: 600px) {
  /* Tek sütun her şey */
  .hero-bottom-grid { grid-template-columns: 1fr 1fr; }
  .hero-side { grid-template-columns: 1fr; }

  /* Footer mobilde tek sütun */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .article-title { font-size: 22px; }
  .hero-main h1 { font-size: 18px; }
  .section-title { font-size: 16px; }

  /* Hero tek sütun, küçültme */
  .hero-main-overlay { padding: 12px; }
  .hero-main h1 { font-size: 16px; line-height: 1.2; }
  .hero-main .spot { font-size: 12px; -webkit-line-clamp: 2; }

  /* Article card padding küçük */
  .article-card-content { padding: 12px; }
  .article-card-content h3 { font-size: 15px; }

  /* Pagination mobil */
  .pagination { flex-wrap: wrap; gap: 4px; }
  .page-link { padding: 10px 12px; font-size: 13px; }
}

/* ============================================================================
   14) ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .breaking-feed-inner { animation: none; }
}

/* Focus states for keyboard users */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print friendly */
@media print {
  .site-header, .site-footer, .breaking-bar, .market-bar,
  .oo-banner, .related-articles { display: none; }
  body { background: white; }
  .article-content { font-size: 12pt; }
}

/* ============================================================================
   15) BIOGRAPHY IMAGE ALIGNMENTS (v3.4)
   ============================================================================ */
/* Container layout for biography image wrappers */
.article-card.category-biyografi .article-card-image,
.article-page.category-biyografi .article-featured-image {
  position: relative;
  background: #0f172a !important; /* Premium dark background for contrast */
  overflow: hidden;
}

/* Detail page featured image container height constraints */
.article-page.category-biyografi .article-featured-image {
  height: 480px;
  max-height: 480px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

/* Blurred background copy */
.category-biyografi .bio-bg-blur {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover !important;
  filter: blur(15px) brightness(0.6);
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

/* Contained foreground portrait */
.category-biyografi .bio-fg-contain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  z-index: 2;
  transition: transform 0.4s ease;
}

/* Hover scales for smooth transition on cards */
.article-card.category-biyografi:hover .bio-fg-contain {
  transform: scale(1.03);
}
.article-card.category-biyografi:hover .bio-bg-blur {
  transform: scale(1.05);
}

/* Trust Shield Badge (v3.5) */
.trust-shield {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f0fdf4; /* Very light green */
  border: 1px solid #bbf7d0; /* Soft green border */
  border-left: 5px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 20px 0 28px 0;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.04);
}
.trust-shield-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--success);
  filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.15));
  animation: pulse-glow 2.5s infinite ease-in-out;
}
.trust-shield-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-shield-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #14532d; /* Dark green text */
}
.trust-shield-text span {
  font-size: 13.5px;
  line-height: 1.5;
  color: #166534; /* Soft dark-green text */
}

@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(22, 163, 74, 0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(22, 163, 74, 0.4)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(22, 163, 74, 0)); }
}

/* Citations Box (v3.5) */
.article-citations {
  margin: 30px 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.article-citations h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-citations h3::before {
  content: "📖";
  font-size: 20px;
}
.citations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.citations-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.citations-list li .cite-num {
  font-weight: 700;
  color: var(--primary);
  min-width: 20px;
}
.citations-list li .cite-content {
  flex: 1;
}
.citations-list li .cite-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(230,0,74,0.4);
  transition: all var(--transition);
}
.citations-list li .cite-content a:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
}
.citations-list li .cite-backlink {
  font-size: 11px;
  color: var(--gray-400);
  text-decoration: none;
  margin-left: 6px;
  transition: color var(--transition);
}
.citations-list li .cite-backlink:hover {
  color: var(--primary);
}
sup a.citation-ref {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  padding: 0 2px;
  transition: background var(--transition);
  border-radius: 2px;
}
sup a.citation-ref:hover {
  background: var(--primary-light);
}


