/*
Theme Name: PulseTR
Theme URI: https://pulsetr.com.tr
Author: PulseTR
Author URI: https://pulsetr.com.tr
Description: PulseTR - Türkiye'nin Nabzı. Profesyonel haber sitesi teması. Siyah-kırmızı modern tasarım, otomatik haber çekme, canlı kayan bant, döviz/borsa ticker ve reklam alanları ile tam donanımlı.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pulsetr
Tags: news, magazine, black, red, responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --black: #080808;
  --dark: #0F0F0F;
  --card: #161616;
  --card2: #1C1C1C;
  --border: #252525;
  --text: #EFEFEF;
  --muted: #777777;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
::selection { background: var(--red); color: white; }

/* BREAKING BAND */
.breaking-band {
  background: var(--red);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  z-index: 200;
}
.breaking-band::before {
  content: 'SON DAKİKA';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--black);
  color: white;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  z-index: 2;
  white-space: nowrap;
}
.ticker-wrap { padding-left: 145px; overflow: hidden; }
.ticker-inner {
  display: inline-flex;
  animation: tickerScroll 50s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12px;
  font-weight: 600;
  padding: 0 30px;
  color: white;
  letter-spacing: 0.3px;
}
.ticker-item::after {
  content: '◆';
  margin-left: 30px;
  opacity: 0.4;
  font-size: 7px;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* DATA BAR */
.data-bar {
  background: #0A0A0A;
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  overflow: hidden;
}
.data-bar-inner {
  display: flex;
  animation: dataScroll 35s linear infinite;
  white-space: nowrap;
}
.data-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
}
.data-bar-item .label { color: var(--muted); }
.price-up { color: #00CC66; }
.price-down { color: #FF4444; }
@keyframes dataScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* HEADER */
#masthead {
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.site-branding .site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 4px;
  color: white;
  line-height: 1;
  margin: 0;
}
.site-branding .site-title a { color: white; }
.site-branding .site-title span { color: var(--red); }
.site-branding .site-description {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-meta {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.header-meta strong {
  color: var(--red);
  display: block;
  font-size: 11px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 1px;
  border-radius: 2px;
  margin-top: 4px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: blink 1.2s infinite;
  display: inline-block;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* NAVIGATION */
#site-navigation {
  background: var(--dark);
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
#site-navigation::-webkit-scrollbar { display: none; }
.main-navigation ul {
  display: flex;
  list-style: none;
  padding: 0 12px;
  margin: 0;
  white-space: nowrap;
}
.main-navigation ul li a {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* CONTAINER */
.site-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* AD BANNER */
.ad-banner {
  background: var(--card);
  border: 1px dashed var(--border);
  margin: 14px 0;
  padding: 14px;
  text-align: center;
  border-radius: 3px;
}
.ad-banner .ad-label {
  font-size: 9px;
  color: #333;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.ad-banner .ad-size {
  font-size: 13px;
  color: #2A2A2A;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: white;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
}
.section-badge {
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* HERO */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  padding: 14px 0;
}
.hero-main {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0000, #0d0d0d);
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
}
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.97));
  padding: 50px 16px 16px;
}
.cat-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  color: white;
  margin-bottom: 6px;
}
.hero-meta { font-size: 10px; color: rgba(255,255,255,0.45); }

.hero-stack { display: flex; flex-direction: column; gap: 10px; }
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px;
  display: flex;
  gap: 10px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.mini-card:hover { border-color: var(--red); }
.mini-thumb {
  width: 70px;
  height: 55px;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0000, #0d0d0d);
}
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-cat {
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.mini-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.mini-time { font-size: 9px; color: var(--muted); margin-top: 3px; }

/* BREAKING LIST */
.breaking-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}
.breaking-list-head {
  background: #0F0F0F;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.breaking-list-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: white;
}
.bl-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.bl-item:hover { background: rgba(204,0,0,0.04); }
.bl-item:last-child { border-bottom: none; }
.bl-time {
  font-size: 9px;
  color: var(--red);
  font-weight: 700;
  min-width: 35px;
  margin-top: 2px;
}
.bl-title { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--text); }

/* NEWS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.news-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.news-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0000, #111);
  position: relative;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-thumb .cat-badge {
  position: absolute;
  top: 8px; left: 8px;
  margin: 0;
}
.news-card-body { padding: 10px; }
.news-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}

/* TWO COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* SIDEBAR */
.sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.sidebar-box-head {
  background: var(--red);
  padding: 8px 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: white;
}
.pop-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.pop-item:hover { background: rgba(204,0,0,0.05); }
.pop-item:last-child { border-bottom: none; }
.pop-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--red);
  opacity: 0.35;
  line-height: 1;
  min-width: 24px;
}
.pop-cat {
  font-size: 9px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.pop-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text); }

/* WEATHER */
.weather-widget {
  background: linear-gradient(135deg, #1a0000, #0d0d0d);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.weather-icon { font-size: 38px; }
.weather-temp {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: white;
  line-height: 1;
}
.weather-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.weather-cities { font-size: 9px; color: #444; margin-top: 6px; }

/* FEEDZY HABERLERI */
.feedzy-rss ul { list-style: none; padding: 0; margin: 0; }
.feedzy-rss ul li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.feedzy-rss ul li:hover { border-color: var(--red); }
.feedzy-rss ul li .rss_header { padding: 10px; }
.feedzy-rss ul li .rss_header a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.feedzy-rss ul li .rss_header a:hover { color: var(--red); }
.feedzy-rss ul li .rss_content { padding: 0 10px 10px; font-size: 12px; color: var(--muted); }

/* CAT TABS */
.cat-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}
.cat-tab:hover, .cat-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* FOOTER */
#colophon {
  background: #050505;
  border-top: 3px solid var(--red);
  padding: 28px 20px 14px;
  margin-top: 32px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: white;
  margin-bottom: 6px;
}
.footer-logo span { color: var(--red); }
.footer-desc {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 380px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.footer-col h5 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 30px;
  height: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--red);
  border-color: var(--red);
}

/* SINGLE POST */
.single-post-header { margin-bottom: 20px; }
.single-post-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: white;
  margin: 10px 0;
}
.single-post-meta { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.single-post-meta span { margin-right: 12px; }
.single-post-content {
  font-size: 15px;
  line-height: 1.8;
  color: #D0D0D0;
}
.single-post-content p { margin-bottom: 16px; }
.single-post-content a { color: var(--red); }
.single-post-content blockquote {
  border-left: 4px solid var(--red);
  background: var(--card);
  padding: 16px;
  margin: 20px 0;
  color: var(--text);
  font-style: italic;
}
.single-post-content h2, .single-post-content h3 {
  color: white;
  margin: 20px 0 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .site-branding .site-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}
