﻿* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  padding: 0;
}

html {
  max-width: 100%;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

#main-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 60;
}

@media (max-width: 767px) {
  #member-panel-btn,
  #member-login-btn,
  #member-register-btn {
    display: none !important;
  }
}

img, video, iframe {
  max-width: 100%;
}

.font-display { font-family: 'Arial Narrow', 'Segoe UI', Tahoma, sans-serif; }

/* Ticker */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-ticker,
.ticker-anim {
  animation: ticker var(--ticker-duration-seconds, var(--ticker-speed-seconds, 28s)) linear infinite;
  will-change: transform;
}

/* Category badge */
.cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
}

/* News card hover */
.news-card { transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* Live pulse */
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-dot { animation: live-pulse 1.4s ease-in-out infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e30613; }

/* Section title underline */
.section-title {
  position: relative;
  padding-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: #E30613;
  border-radius: 2px;
}

/* Ad placeholder */
.ad-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #f8f8f8,
    #f8f8f8 10px,
    #f0f0f0 10px,
    #f0f0f0 20px
  );
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Program timeline */
.program-item.active {
  border-left: 3px solid #E30613;
  background: #fff5f5;
}

/* Chat bubble */
.chat-bubble-own { border-radius: 12px 12px 2px 12px; }
.chat-bubble-other { border-radius: 12px 12px 12px 2px; }

/* Gold badge shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.gold-shimmer {
  background: linear-gradient(90deg, #b8860b, #ffd700, #daa520, #ffd700, #b8860b);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Firma card */
.firma-card { transition: box-shadow 0.2s, transform 0.2s; }
.firma-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* Input focus */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #E30613 !important;
  box-shadow: 0 0 0 3px rgba(227,6,19,0.08);
}

/* Vefat card */
.vefat-card { border-left: 3px solid #6b7280; }

/* Headline slider */
.headline-slider-shell {
  background: #fff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.slider-item {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.34s ease-in-out;
}

.slider-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.headline-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,8,14,0.50) 0%, rgba(4,8,14,0.22) 44%, rgba(4,8,14,0.05) 100%);
  pointer-events: none;
}

.headline-slide-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.headline-caption-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 54px 34px;
  pointer-events: none;
  z-index: 4;
}

.headline-caption-card {
  max-width: min(920px, 90%);
  pointer-events: auto;
}

.headline-caption-cat {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #E30613;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.headline-caption-title {
  margin: 0;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: clamp(17px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1.18;
  max-width: 96%;
}

.headline-caption-title span {
  background: rgba(7,13,24,0.94);
  padding: 0.04em 0.26em 0.11em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.headline-pagination-wrap {
  background: #e6e6e6;
  border-top: 1px solid #d1d1d1;
}

.headline-pagination-row {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.headline-pagination-row::-webkit-scrollbar {
  height: 0;
}

.headline-page-btn {
  flex: 1 0 58px;
  min-width: 58px;
  height: 42px;
  border: 0;
  border-right: 1px solid #cfcfcf;
  background: #e5e5e5;
  color: #1f1f1f;
  font-family: 'Arial Narrow', 'Segoe UI', Tahoma, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.headline-page-btn:last-child {
  border-right: 0;
}

.headline-page-btn:hover {
  background: #dadada;
}

.headline-page-btn.active {
  background: #e30613;
  color: #fff;
}

.headline-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,240,240,0.94);
  color: #222;
  transform: translateY(-50%);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
  transition: background 0.16s ease, color 0.16s ease;
}

.headline-nav-btn:hover {
  background: #fff;
  color: #e30613;
}

.headline-nav-prev { left: 10px; }
.headline-nav-next { right: 10px; }
.headline-nav-btn.is-hidden { display: none; }

@media (max-width: 1023px) {
  .headline-caption-wrap {
    padding: 14px 42px 26px;
  }
  .headline-caption-title {
    font-size: clamp(16px, 3.1vw, 28px);
    line-height: 1.18;
  }
  .headline-page-btn {
    height: 38px;
    font-size: 18px;
    min-width: 50px;
  }
  .headline-nav-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 639px) {
  .headline-caption-wrap {
    padding: 10px 34px 18px 12px;
  }
  .headline-caption-cat {
    font-size: 11px;
    padding: 3px 8px;
  }
  .headline-caption-title {
    font-size: clamp(14px, 4.8vw, 20px);
    max-width: 100%;
  }
  .headline-page-btn {
    min-width: 36px;
    height: 32px;
    font-size: 16px;
  }
  .headline-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .headline-nav-prev { left: 6px; }
  .headline-nav-next { right: 6px; }
}

