/* EIAU Haber Teması - Ana Stil */

:root {
  --eiau-accent: #dc2626;
  --eiau-font: "Inter", system-ui, sans-serif;
  --eiau-font-base: 16px;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
}

[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--eiau-font);
  font-size: var(--eiau-font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.top-bar {
  background: #0f172a; color: #fff; font-size: 12px;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-date { opacity: 0.8; }
.live-badge { color: #f87171; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s infinite; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-right a { opacity: 0.7; transition: opacity 0.2s; }
.top-bar-right a:hover { opacity: 1; }
.mode-toggle { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; }
.mode-toggle .moon { display: none; }
[data-theme="dark"] .mode-toggle .sun { display: none; }
[data-theme="dark"] .mode-toggle .moon { display: inline; }

.header-main { border-bottom: 1px solid var(--border); }
.header-flex { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.site-branding { flex-shrink: 0; }
.logo-link { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--eiau-accent), #1e293b);
  color: #fff; font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text strong { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; display: block; line-height: 1; }
.logo-text small { font-size: 10px; color: var(--text-muted); letter-spacing: 2px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-menu li a {
  padding: 8px 14px; font-size: 14px; font-weight: 600; border-radius: 8px;
  transition: background 0.2s; position: relative;
}
.nav-menu li a:hover { background: var(--bg-alt); color: var(--eiau-accent); }

.header-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: none; cursor: pointer; font-size: 18px; color: var(--text);
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg-alt); }

.search-bar { border-top: 1px solid var(--border); padding: 12px 0; }
.search-bar form { display: flex; gap: 8px; }
.search-bar input {
  flex: 1; padding: 10px 16px; border: none; border-radius: 8px;
  background: var(--bg-alt); color: var(--text); font-size: 14px;
}
.search-bar button {
  padding: 10px 24px; border: none; border-radius: 8px;
  background: var(--eiau-accent); color: #fff; font-weight: 600; cursor: pointer;
}

/* === BREAKING NEWS === */
.breaking-news {
  background: linear-gradient(90deg, #dc2626, #b91c1c, #991b1b);
  color: #fff; overflow: hidden;
}
.breaking-flex { display: flex; align-items: center; height: 44px; gap: 12px; }
.breaking-label { font-weight: 800; font-size: 13px; padding-right: 12px; border-right: 1px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.breaking-track {
  flex: 1; overflow: hidden; position: relative;
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.breaking-track:hover { animation-play-state: paused; }
.breaking-item { font-size: 13px; font-weight: 500; }
.breaking-item:hover { text-decoration: underline; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === HERO SLIDER === */
.main-content { padding: 24px 0; }
.hero-section { margin-bottom: 32px; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 460px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-img { width: 100%; height: 460px; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 50%, transparent); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; color: #fff; }
.hero-content h2 { font-size: 28px; font-weight: 900; line-height: 1.2; margin-bottom: 8px; max-width: 700px; }
.hero-content p { font-size: 15px; opacity: 0.85; max-width: 600px; }
.hero-meta { display: flex; gap: 16px; font-size: 12px; opacity: 0.7; margin-top: 10px; }

.hero-dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 8px; z-index: 2; }
.hero-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; border: none; }
.hero-dot.active { width: 32px; background: #fff; }

/* === NEWS TAGS === */
.news-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 800; color: #fff;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.news-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
.tag-sondakika { background: #dc2626; }
.tag-canli { background: #e11d48; }
.tag-gundem { background: #ea580c; }
.tag-acil { background: #b91c1c; }
.tag-ozel { background: #7c3aed; }
.tag-flash { background: #0d9488; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.tag-pulse { animation: tag-glow 2s infinite; }
@keyframes tag-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* === CONTENT GRID === */
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.news-section { margin-bottom: 36px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 6px; height: 28px; border-radius: 3px; background: var(--eiau-accent); }
.section-more { font-size: 14px; font-weight: 600; color: var(--eiau-accent); }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* === NEWS CARD === */
.news-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link { display: block; }
.card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .card-image img { transform: scale(1.05); }
.card-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--eiau-accent); color: #fff; font-weight: 900; font-size: 24px; }
.card-tag { position: absolute; top: 12px; right: 12px; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .card-title { color: var(--eiau-accent); }
.card-excerpt { font-size: 14px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.widget-title { font-size: 16px; font-weight: 900; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--eiau-accent); }
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-num { font-size: 28px; font-weight: 900; line-height: 1; color: var(--eiau-accent); min-width: 28px; }
.popular-item a { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popular-item a:hover { color: var(--eiau-accent); }

.widget-newsletter { background: linear-gradient(135deg, var(--eiau-accent), #1e293b); color: #fff; }
.widget-newsletter h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.widget-newsletter p { font-size: 13px; opacity: 0.85; margin-bottom: 12px; }
.widget-newsletter input { width: 100%; padding: 10px; border: none; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.widget-newsletter button { width: 100%; padding: 10px; border: none; border-radius: 8px; background: #fff; color: #0f172a; font-weight: 700; cursor: pointer; }

.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tag { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--eiau-accent); color: var(--eiau-accent); transition: all 0.2s; }
.cat-tag:hover { background: var(--eiau-accent); color: #fff; }

/* === SINGLE ARTICLE === */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--eiau-accent); z-index: 999; width: 0; transition: width 0.1s; }
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--eiau-accent); }
.breadcrumb .current { color: var(--text); }

.single-article { max-width: 800px; margin: 0 auto; padding: 20px 0; }
.article-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.article-title { font-size: 32px; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.article-excerpt { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--eiau-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.author-name { font-weight: 700; font-size: 14px; }
.article-date { font-size: 12px; color: var(--text-muted); }
.article-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }

.article-featured { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-featured img { width: 100%; }
.featured-tag { position: absolute; top: 16px; left: 16px; }

.article-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.action-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.action-btn:hover { border-color: var(--eiau-accent); color: var(--eiau-accent); transform: translateY(-2px); }

.ai-tools-bar { margin-bottom: 24px; }
.ai-tools-btn {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius);
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: opacity 0.2s;
}
.ai-tools-btn:hover { opacity: 0.9; }

.article-content { font-size: 17px; line-height: 1.8; color: var(--text); }
.article-content p { margin-bottom: 18px; }
.article-content p:first-of-type::first-letter { font-size: 48px; font-weight: 900; float: left; line-height: 1; margin-right: 6px; color: var(--eiau-accent); }
.article-content h2, .article-content h3 { margin: 24px 0 12px; font-weight: 800; }
.article-content img { border-radius: 8px; margin: 16px 0; }
.article-content blockquote { border-left: 4px solid var(--eiau-accent); padding-left: 16px; margin: 16px 0; font-style: italic; color: var(--text-muted); }

.article-tags-list { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags-label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-right: 8px; }
.article-tags-list a { padding: 4px 12px; border-radius: 8px; background: var(--bg-alt); font-size: 13px; font-weight: 600; }
.article-tags-list a:hover { background: var(--eiau-accent); color: #fff; }

.article-share-bottom { display: flex; gap: 8px; margin: 24px 0; }

.author-box { display: flex; gap: 16px; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); margin: 24px 0; }
.author-avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--eiau-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; flex-shrink: 0; }
.author-box-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.author-box-bio { font-size: 14px; color: var(--text-muted); }

.related-news { margin-top: 32px; }

/* === AUTO NEXT === */
.auto-next-indicator {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg);
}
.auto-next-circle { width: 40px; height: 40px; border-radius: 50%; position: relative; }
.auto-next-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.auto-next-text { font-size: 12px; }
.auto-next-text strong { display: block; }
.auto-next-text span { color: rgba(255,255,255,0.6); display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === COMMENTS === */
.comments-area { max-width: 800px; margin: 32px auto; }
.comments-title { font-size: 20px; font-weight: 900; margin-bottom: 20px; }
.comment-list { margin-bottom: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-submit { background: var(--eiau-accent); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* === FOOTER === */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo strong { color: #fff; font-size: 20px; font-weight: 900; }
.footer-brand p { font-size: 14px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #cbd5e1; font-size: 13px; }
.footer-social a:hover { color: #fff; }
.footer-widget-area h4, .widget-title { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer-widget-area ul { display: flex; flex-direction: column; gap: 8px; }
.footer-widget-area a { font-size: 14px; color: #94a3b8; }
.footer-widget-area a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #64748b; }

/* === CUSTOMIZER PANEL === */
.customizer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 320px; z-index: 200;
  background: var(--bg); box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 0.3s; overflow-y: auto;
}
.customizer-panel.open { transform: translateX(0); }
.customizer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.customizer-header h3 { font-size: 16px; font-weight: 800; }
.customizer-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text); }
.customizer-body { padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.custom-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; color: var(--text-muted); }
.color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.color-swatch { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--text); }
.custom-group select, .custom-group input[type="range"] { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }
.custom-group input[type="checkbox"] { margin-right: 6px; }

/* === PAGINATION === */
.pagination { margin-top: 32px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
}
.pagination .current { background: var(--eiau-accent); color: #fff; border-color: var(--eiau-accent); }
.pagination a:hover { border-color: var(--eiau-accent); color: var(--eiau-accent); }

/* === ARCHIVE === */
.archive-header { margin-bottom: 24px; }
.archive-title { font-size: 28px; font-weight: 900; }
.archive-count { color: var(--text-muted); font-size: 14px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* === 404 === */
.error-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.error-content { text-align: center; }
.error-code { font-size: 96px; font-weight: 900; color: var(--eiau-accent); line-height: 1; }
.btn-home { display: inline-block; margin-top: 16px; padding: 12px 24px; background: var(--eiau-accent); color: #fff; border-radius: 8px; font-weight: 700; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav { display: none; position: fixed; top: 100px; left: 0; right: 0; background: var(--bg); padding: 16px; box-shadow: var(--shadow-lg); flex-direction: column; z-index: 99; }
  .main-nav.open { display: flex; }
  .nav-menu { flex-direction: column; width: 100%; }
  .nav-menu li a { display: block; padding: 12px; }
  .hero-slider, .hero-img { height: 300px; }
  .hero-content h2 { font-size: 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .customizer-panel { width: 100%; }
}

/* === COMPACT === */
.compact-layout .news-card .card-body { padding: 12px; }
.compact-layout .card-title { font-size: 14px; }
.compact-layout .card-excerpt { display: none; }
.compact-layout .news-grid { gap: 14px; }
