/* HaberModern v2 - Rich Ultra Modern News Portal Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --hm-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --hm-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --hm-primary: #e11d48;
  --hm-primary-hover: #be123c;
  --hm-primary-light: #ffe4e6;
  --hm-secondary: #0f172a;
  --hm-dark-bg: #090d16;
  --hm-accent: #2563eb;
  --hm-amber: #f59e0b;
  --hm-green: #10b981;
  
  --hm-bg: #f8fafc;
  --hm-card-bg: #ffffff;
  --hm-card-border: #e2e8f0;
  
  --hm-text-main: #0f172a;
  --hm-text-muted: #64748b;
  --hm-text-light: #94a3b8;
  
  --hm-radius-sm: 8px;
  --hm-radius-md: 12px;
  --hm-radius-lg: 20px;
  --hm-radius-full: 9999px;
  
  --hm-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --hm-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --hm-shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.14);
  
  --hm-max-width: 1320px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hm-container {
  width: 100%;
  max-width: var(--hm-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* TOPBAR */
.hm-topbar {
  background: #090d16;
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hm-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hm-topbar__date {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hm-ticker-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hm-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: var(--hm-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  white-space: nowrap;
}

.hm-ticker-item.up { color: #34d399; }
.hm-ticker-item.down { color: #f87171; }

.hm-ticker-label {
  color: #cbd5e1;
  font-weight: 700;
}

.hm-topbar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.hm-social-icon:hover {
  background: var(--hm-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* HEADER */
.hm-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hm-card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--hm-shadow-sm);
}

.hm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 30px;
}

.hm-logo {
  font-family: var(--hm-font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--hm-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.8px;
}

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

.hm-logo img {
  max-height: 52px;
  width: auto;
}

.hm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hm-nav__link {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hm-secondary);
  border-radius: var(--hm-radius-md);
  position: relative;
}

.hm-nav__link:hover, .hm-nav__link.active {
  color: var(--hm-primary);
  background: var(--hm-primary-light);
}

.hm-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hm-live-btn {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--hm-radius-full);
  font-weight: 700;
  font-size: 0.825rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.hm-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}

/* BREAKING TICKER */
.hm-breaking {
  background: #ffffff;
  border: 1px solid var(--hm-card-border);
  border-radius: var(--hm-radius-md);
  margin: 20px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--hm-shadow-sm);
}

.hm-breaking__badge {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 14px 22px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hm-breaking__content {
  padding: 0 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hm-secondary);
}

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

/* HERO SUPER GRID (5 CARDS) */
.hm-hero-super {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .hm-hero-super {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 640px) {
  .hm-hero-super {
    grid-template-columns: 1fr;
  }
}

.hm-hero-card {
  position: relative;
  border-radius: var(--hm-radius-lg);
  overflow: hidden;
  background: var(--hm-secondary);
  box-shadow: var(--hm-shadow-md);
}

.hm-hero-card.main-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

@media (max-width: 1024px) {
  .hm-hero-card.main-hero {
    grid-column: 1 / -1;
    height: 380px;
  }
}

.hm-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hm-hero-card:hover img {
  transform: scale(1.06);
}

.hm-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(9,13,22,0.7) 60%, rgba(9,13,22,0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.hm-hero-card.main-hero .hm-hero-card__overlay {
  padding: 32px;
}

.hm-badge {
  align-self: flex-start;
  background: var(--hm-primary);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--hm-radius-full);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.hm-badge.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.hm-hero-card__title {
  font-family: var(--hm-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hm-hero-card.main-hero .hm-hero-card__title {
  font-size: 2rem;
  font-weight: 800;
}

.hm-hero-card__meta {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* TABBED HEADLINE STRIP (MANŞET BARI) */
.hm-headline-strip {
  background: #ffffff;
  border: 1px solid var(--hm-card-border);
  border-radius: var(--hm-radius-md);
  padding: 16px;
  margin-bottom: 36px;
  box-shadow: var(--hm-shadow-sm);
}

.hm-headline-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.hm-headline-strip__title {
  font-family: var(--hm-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hm-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hm-headline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

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

@media (max-width: 576px) {
  .hm-headline-grid {
    grid-template-columns: 1fr;
  }
}

.hm-headline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: var(--hm-radius-sm);
  border: 1px solid var(--hm-card-border);
  transition: all 0.2s;
}

.hm-headline-item:hover {
  background: #ffffff;
  border-color: var(--hm-primary);
  transform: translateY(-2px);
  box-shadow: var(--hm-shadow-sm);
}

.hm-headline-num {
  font-family: var(--hm-font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--hm-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hm-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hm-headline-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hm-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* LAYOUT GRID */
.hm-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-bottom: 50px;
}

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

/* CARDS */
.hm-card {
  background: var(--hm-card-bg);
  border-radius: var(--hm-radius-md);
  border: 1px solid var(--hm-card-border);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--hm-shadow-sm);
}

.hm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hm-shadow-md);
  border-color: #cbd5e1;
}

.hm-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090d16;
}

.hm-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-card:hover .hm-card__thumb img {
  transform: scale(1.07);
}

.hm-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hm-card__title {
  font-family: var(--hm-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hm-secondary);
  margin-bottom: 10px;
}

.hm-card:hover .hm-card__title {
  color: var(--hm-primary);
}

.hm-card__desc {
  font-size: 0.875rem;
  color: var(--hm-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-card__meta {
  font-size: 0.8rem;
  color: var(--hm-text-muted);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

/* HORIZONTAL CARD */
.hm-card--horizontal {
  flex-direction: row;
  align-items: center;
}

.hm-card--horizontal .hm-card__thumb {
  width: 130px;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: var(--hm-radius-sm);
  margin: 10px;
}

.hm-card--horizontal .hm-card__body {
  padding: 10px 14px 10px 0;
}

.hm-card--horizontal .hm-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* SECTION HEADER */
.hm-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--hm-card-border);
  position: relative;
}

.hm-sec-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #e11d48 0%, #be123c 100%);
  border-radius: 2px;
}

.hm-sec-title {
  font-family: var(--hm-font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--hm-secondary);
  text-transform: uppercase;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* RANKED SIDEBAR LIST */
.hm-ranked-widget {
  background: #ffffff;
  border-radius: var(--hm-radius-md);
  border: 1px solid var(--hm-card-border);
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: var(--hm-shadow-sm);
}

.hm-ranked-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.hm-rank-badge {
  font-family: var(--hm-font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #94a3b8;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.hm-ranked-item:nth-child(1) .hm-rank-badge { color: #f59e0b; }
.hm-ranked-item:nth-child(2) .hm-rank-badge { color: #94a3b8; }
.hm-ranked-item:nth-child(3) .hm-rank-badge { color: #b45309; }

.hm-ranked-title {
  font-family: var(--hm-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hm-secondary);
}

.hm-ranked-item:hover .hm-ranked-title {
  color: var(--hm-primary);
}

/* CATEGORY SHOWCASE BOX */
.hm-cat-box {
  background: #ffffff;
  border-radius: var(--hm-radius-md);
  border: 1px solid var(--hm-card-border);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--hm-shadow-sm);
}

.hm-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .hm-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ARTICLE DETAIL */
.hm-article {
  background: #ffffff;
  border-radius: var(--hm-radius-lg);
  border: 1px solid var(--hm-card-border);
  padding: 40px;
  box-shadow: var(--hm-shadow-sm);
}

@media (max-width: 640px) {
  .hm-article {
    padding: 20px;
  }
}

.hm-article__title {
  font-family: var(--hm-font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--hm-secondary);
  margin: 16px 0;
  letter-spacing: -0.5px;
}

.hm-article__desc {
  font-size: 1.2rem;
  color: var(--hm-text-muted);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--hm-primary);
}

.hm-article__hero-img {
  width: 100%;
  border-radius: var(--hm-radius-md);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--hm-shadow-md);
}

.hm-article__body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #1e293b;
}

.hm-article__body p {
  margin-bottom: 1.75rem;
}

.hm-article__body blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--hm-primary);
  padding: 20px 24px;
  font-style: italic;
  font-weight: 600;
  border-radius: 0 var(--hm-radius-md) var(--hm-radius-md) 0;
  margin: 24px 0;
}

/* FOOTER */
.hm-footer {
  background: #090d16;
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 4px solid var(--hm-primary);
}

.hm-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .hm-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hm-footer__grid {
    grid-template-columns: 1fr;
  }
}

.hm-footer__title {
  color: #ffffff;
  font-family: var(--hm-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.hm-footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--hm-primary);
}

.hm-footer__links {
  list-style: none;
}

.hm-footer__links li {
  margin-bottom: 12px;
}

.hm-footer__links a {
  color: #94a3b8;
  font-weight: 500;
}

.hm-footer__links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.hm-footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: #64748b;
}

.hm-ad-box {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--hm-radius-md);
  padding: 16px;
  text-align: center;
  margin: 24px 0;
}
