/*
Theme Name: Haberler Yeni
Theme URI: https://haberleryeni.com
Author: Haberler Yeni Medya Grubu
Author URI: https://haberleryeni.com
Description: Haberler Yeni için sıfırdan tasarlanmış, 7/24 son dakika, sıcak haber, video vitrini ve zaman tüneli odaklı, yüksek hızlı Google News ve Core Web Vitals tam uyumlu modern haber teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: haberleryeni
*/

:root {
  --hy-red: #dc2626;
  --hy-red-dark: #b91c1c;
  --hy-red-bright: #ef4444;
  --hy-slate-950: #030712;
  --hy-slate-900: #0b0f19;
  --hy-slate-800: #1f2937;
  --hy-slate-700: #374151;
  --hy-amber: #f59e0b;
  --hy-bg-main: #f3f4f6;
  --hy-bg-card: #ffffff;
  --hy-text-main: #111827;
  --hy-text-muted: #6b7280;
  --hy-border: #e5e7eb;
  --hy-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hy-container: 1280px;
}

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

body {
  font-family: var(--hy-font);
  background-color: var(--hy-bg-main);
  color: var(--hy-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--hy-red);
}

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

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

/* TOP LIVE STRIP */
.hy-live-strip {
  background: var(--hy-slate-950);
  color: #d1d5db;
  font-size: 13px;
  border-bottom: 2px solid var(--hy-red);
  padding: 8px 0;
}

.hy-live-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hy-live-badge {
  background: var(--hy-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hy-pulse-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hy-live-title {
  color: #f9fafb;
  font-weight: 600;
}

/* HEADER MAIN */
.hy-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--hy-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.hy-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hy-logo-link {
  display: inline-block;
  max-width: 380px;
}

.hy-header-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.hy-trends-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.hy-trends-label {
  font-weight: 800;
  color: var(--hy-red);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hy-trend-tag {
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--hy-slate-700);
  border: 1px solid var(--hy-border);
  font-size: 12px;
}

.hy-trend-tag:hover {
  background: var(--hy-red);
  color: #fff;
  border-color: var(--hy-red);
}

/* NAVBAR */
.hy-navbar {
  background: var(--hy-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

.hy-nav-menu {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}

.hy-nav-menu li a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.hy-nav-menu li a:hover,
.hy-nav-menu li.current-menu-item a {
  background: var(--hy-red-dark);
}

/* MOSAIC HERO GRID */
.hy-mosaic-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}

.hy-big-hero {
  position: relative;
  background: var(--hy-slate-900);
  border-radius: 8px;
  overflow: hidden;
  height: 480px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hy-big-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hy-big-hero:hover img {
  transform: scale(1.03);
}

.hy-big-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.95) 85%);
  color: #ffffff;
}

.hy-cat-pill {
  display: inline-block;
  background: var(--hy-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hy-big-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
}

.hy-big-excerpt {
  font-size: 14px;
  color: #e5e7eb;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SIDE MOSAIC 3-CARDS */
.hy-mosaic-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.hy-side-mosaic-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--hy-slate-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hy-side-mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hy-side-mosaic-card:hover img {
  transform: scale(1.04);
}

.hy-side-mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.9) 80%);
  color: #ffffff;
}

.hy-side-mosaic-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2-COLUMN MAIN CONTENT + TIMELINE */
.hy-main-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.hy-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--hy-red);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.hy-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--hy-slate-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hy-section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background: var(--hy-red);
  border-radius: 2px;
}

.hy-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hy-news-card {
  background: var(--hy-bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hy-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hy-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

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

.hy-card-info {
  padding: 14px 16px;
}

.hy-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0;
  color: var(--hy-slate-950);
}

.hy-card-excerpt {
  font-size: 13px;
  color: var(--hy-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 24H TIMELINE FEED */
.hy-timeline-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--hy-border);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.hy-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hy-timeline-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hy-border);
}

.hy-time-badge {
  background: #fee2e2;
  color: var(--hy-red);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hy-timeline-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hy-slate-900);
}

/* SINGLE ARTICLE */
.hy-single-post {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--hy-border);
  padding: 32px;
  margin: 24px 0 40px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}

.hy-breadcrumb {
  font-size: 12px;
  color: var(--hy-text-muted);
  margin-bottom: 16px;
}

.hy-article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--hy-slate-950);
  margin-bottom: 14px;
}

.hy-article-spot {
  font-size: 17px;
  line-height: 1.5;
  color: var(--hy-slate-700);
  font-weight: 500;
  border-left: 4px solid var(--hy-red);
  padding-left: 14px;
  margin-bottom: 20px;
}

.hy-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hy-border);
  border-bottom: 1px solid var(--hy-border);
  font-size: 13px;
  color: var(--hy-text-muted);
  margin-bottom: 24px;
}

.hy-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
}

.hy-article-content p {
  margin-bottom: 20px;
}

.hy-article-content h2,
.hy-article-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--hy-slate-900);
  margin: 30px 0 14px;
}

/* FOOTER */
.hy-footer {
  background: var(--hy-slate-950);
  color: #9ca3af;
  padding: 48px 0 24px;
  border-top: 4px solid var(--hy-red);
}

.hy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.hy-footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 14px;
}

.hy-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hy-mosaic-grid {
    grid-template-columns: 1fr;
  }
  .hy-big-hero {
    height: 340px;
  }
  .hy-main-layout {
    grid-template-columns: 1fr;
  }
  .hy-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hy-cards-grid {
    grid-template-columns: 1fr;
  }
  .hy-big-title {
    font-size: 20px;
  }
  .hy-article-title {
    font-size: 22px;
  }
}
