/*
Theme Name: Alaiye Haber
Theme URI: https://alaiyehaber.com
Author: Alaiye Haber Ekibi
Description: Alanya ve Antalya bölgesi için geliştirilmiş profesyonel haber teması.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: alanya
Tags: news, magazine, responsive
*/

/* ===================================
   ALAİYE HABER - ANA SAYFA STİLLERİ
   =================================== */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #222;
  background: #f0f0f0;
  line-height: 1.5;
}

/* CONTAINER */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ===================================
   HEADER
   =================================== */
#site-header {
  background: #d0011b;
  padding: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding-left: 0;
}

#site-header .container {
  padding-left: 0;
  padding-right: 10px;
}

.site-logo {
  display: flex;
  align-items: center;
  padding: 0 0 0 0;
  background: transparent;
  height: 46px;
}
.site-logo img { max-width: 180px; height: 40px; width: auto; object-fit: contain; }
.site-logo span {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}
.site-logo span em { color: #f5c518; font-style: normal; }

/* HEADER NAV */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  padding: 0 8px;
}
.header-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 0 10px;
  height: 46px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-nav a:hover { background: rgba(0,0,0,0.2); }

/* Hava durumu + arama */
.header-right {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 6px;
}
.header-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  padding: 0 12px;
}
.header-weather .temp { font-size: 18px; font-weight: 700; }
.header-weather .city {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.header-search-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 10px;
  font-size: 18px;
  height: 46px;
  display: flex;
  align-items: center;
}
.header-menu-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 10px;
  font-size: 20px;
  height: 46px;
  display: flex;
  align-items: center;
}

/* E-Gazete alt satır */
.header-bottom {
  background: #b0010f;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.header-bottom a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 10px;
}

/* ===================================
   SON DAKİKA BANT
   =================================== */
.breaking-news-bar {
  background: #fff;
  border-bottom: 2px solid #d0011b;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.breaking-news-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: hidden;
}
.breaking-label {
  background: #d0011b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 12px;
  height: 34px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding-left: 20px;
}
.ticker-item {
  font-size: 12px;
  color: #222;
  white-space: nowrap;
}
.ticker-item::before { content: '• '; color: #d0011b; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   BANNER REKLAMLAR
   =================================== */
.banner-ad {
  margin: 0;
  text-align: center;
  background: transparent;
  display: block;
  overflow: hidden;
}
.banner-ad img { max-width: 100%; height: auto; }
.top-banner, .mid-banner, .full-banner, .bottom-banner { margin: 0; }

/* ===================================
   ANA HABER GRID (3 kart üst)
   =================================== */
.main-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.news-card {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.news-card__img-link {
  display: block;
  position: relative;
  overflow: hidden;
}
.news-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.news-card__img-link:hover .news-card__img { transform: scale(1.03); }
.news-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: #ccc;
}

.news-card__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #d0011b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card__body {
  padding: 8px 10px 10px;
}
.news-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}
.news-card__title a:hover { color: #d0011b; }

/* ===================================
   BÖLÜM BAŞLIĞI
   =================================== */
.section-block { margin: 0; }

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 3px solid #d0011b;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}
.section-title span {
  background: #fff;
  padding-right: 10px;
}

/* ===================================
   HERO SLIDER
   =================================== */
.hero-slider {
  position: relative;
  margin: 8px 0;
  background: #000;
  overflow: hidden;
}

/* Tüm slide'lar gizli, sadece active görünür */
.hero-slide {
  display: none;
  width: 100%;
}
.hero-slide--active { display: block; }

/* Grid: sol büyük + sağ sidebar */
.hero-slide__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  height: 380px;     /* sabit yükseklik — inc/slider.php tarafından override edilir */
}

/* Sol alan */
.hero-slide__main {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero-slide__img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* transition YOK — JS kontrol eder */
}
.hero-slide__img-placeholder {
  width: 100%;
  height: 100%;
  background: #333;
}

/* Overlay */
.hero-slide__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent 10%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.92) 100%);
  padding: 60px 16px 50px;
  pointer-events: none;
}
.hero-slide__overlay a { pointer-events: auto; }

.hero-slide__cat {
  display: inline-block;
  background: #d0011b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.hero-slide__title {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0,0,0,.5);
  display: block;
}

/* Sağ sidebar */
.hero-slide__sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  overflow: hidden;
}
.sidebar-news-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.sidebar-news-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.sidebar-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* transition YOK */
}
.sidebar-news-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: #444;
}
.sidebar-news-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 28px 10px 10px;
}
.sidebar-news-card__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- Oklar ---- */
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 38px; height: 64px;
  font-size: 26px;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity .2s, background .15s;
  display: flex; align-items: center; justify-content: center;
}
.hero-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(208,1,27,.85); }
.slider-arrow--prev { left: 0; border-radius: 0 4px 4px 0; }
.slider-arrow--next { right: 0; border-radius: 4px 0 0 4px; }

/* ---- Pagination ortak ---- */
.hero-slider__nav {
  position: absolute;
  bottom: 0; left: 0;
  display: flex; align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px 10px;
  background: rgba(0,0,0,.6);
  z-index: 15;
  max-width: 70%;
}

/* ---- NOKTA ---- */
.hero-slider__nav--dots .slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
  transition: all .25s;
  font-size: 0;
}
.hero-slider__nav--dots .slider-dot--active {
  background: #d0011b;
  width: 20px; border-radius: 5px;
}

/* ---- YUVARLAK RAKAM ---- */
.hero-slider__nav--round-num .slider-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff; font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  padding: 0;
}
.hero-slider__nav--round-num .slider-dot--active {
  background: #d0011b;
  border-color: #d0011b;
}

/* ---- KARE RAKAM ---- */
.hero-slider__nav--square-num .slider-dot {
  width: 26px; height: 26px; border-radius: 3px;
  background: rgba(255,255,255,.2);
  color: #fff; font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  padding: 0;
}
.hero-slider__nav--square-num .slider-dot--active {
  background: #d0011b;
  border-color: #d0011b;
}

/* ---- KARE KÜÇÜK RESİM ---- */
.hero-slider__nav--square-thumb {
  gap: 5px;
  padding: 7px 10px;
  max-width: 100%;
}
.slider-dot--thumb {
  width: 60px; height: 40px;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,.25);
  background-color: #333;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
  padding: 0;
}
.slider-dot--thumb .thumb-num {
  position: absolute; bottom: 2px; right: 4px;
  color: #fff; font-size: 10px; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  line-height: 1;
}
.slider-dot--thumb.slider-dot--active { border-color: #d0011b; }
.slider-dot--thumb:hover { border-color: rgba(255,255,255,.7); }

/* ---- PROGRESS LINE ---- */
.hero-slider__nav--line {
  width: 100%; max-width: 100%;
  padding: 0; background: transparent;
  flex-direction: column; align-items: stretch;
}
.slider-progress-bar {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.2);
}
.slider-progress-fill {
  height: 100%; background: #d0011b;
  border-radius: 0 2px 2px 0;
  transition: width .35s ease;
  width: 0;
}
.slider-counter {
  position: absolute;
  bottom: 8px; right: 12px;
  color: #fff; font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  z-index: 16;
}

/* ---- GİZLE ---- */
.hero-slider__nav--none { display: none; }

/* ---- OVERLAY STİLLERİ ---- */
.hero-slider--overlay-solid   .hero-slide__overlay { background: rgba(0,0,0,.6); }
.hero-slider--overlay-none    .hero-slide__overlay { background: none; }
.hero-slider--overlay-none .hero-slide__title { text-shadow: 2px 2px 8px rgba(0,0,0,.95); }

/* ---- BAŞLIK KONUMU ---- */
.hero-slider--title-center .hero-slide__overlay {
  top: 0; bottom: 0; display: flex;
  flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 20px 24px;
}
.hero-slider--title-top .hero-slide__overlay {
  top: 0; bottom: auto; padding: 16px;
  background: linear-gradient(rgba(0,0,0,.7), transparent);
}

/* ---- Flip için perspektif ---- */
.hero-slider--trans-flip .hero-slide__main { perspective: 900px; }

/* ===================================
   NO POSTS
   =================================== */
.no-posts { font-size: 13px; color: #888; padding: 12px 0; }

/* ===================================
   FOOTER
   =================================== */
#site-footer {
  background: #222;
  color: #ccc;
  margin-top: 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
}
.footer-widget h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d0011b;
}
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 6px; }
.footer-widget ul li a { font-size: 12px; color: #aaa; }
.footer-widget ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 12px 0;
  text-align: center;
  font-size: 11px;
  color: #777;
}
.footer-bottom a { color: #aaa; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 960px) {
  .main-news-grid { grid-template-columns: repeat(2, 1fr); }
  .resmi-ilanlar-grid { grid-template-columns: repeat(2, 1fr); }
  .category-news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide__inner { grid-template-columns: 1fr; }
  .hero-slide__sidebar { flex-direction: row; }
  .sidebar-news-card__img { height: 130px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-news-grid { grid-template-columns: 1fr; }
  .resmi-ilanlar-grid { grid-template-columns: repeat(2, 1fr); }
  .alanya-news-layout { grid-template-columns: 1fr; }
  .alanya-news-grid { grid-template-columns: 1fr; }
  .category-news-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .hero-slide__title { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr; }
}
