/*
==========================================
 DETUBEX v2.8 - Ultimate Single Fix
 Modern 2026 Video Teması
 Açık tonlu • SEO uyumlu • Responsive
 + Görüntülenme Rozeti Entegre
==========================================
*/

/* 🔹 GENEL TASARIM */
body {
  background: #f8fafc;
  color: #1e293b;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #0077ff;
  text-decoration: none;
  transition: 0.25s;
}

a:hover {
  color: #0056cc;
}

/* 🔹 ANA CONTAINER */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🔹 VİDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.video-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: 0.25s ease;
}

.video-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.video-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.video-title {
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-align: center;
  transition: 0.2s;
}

.video-title:hover {
  color: #0077ff;
}

/* 🔹 Görüntülenme Rozeti */
.video-views-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  line-height: 1;
  transition: 0.25s ease;
}

.video-thumb:hover .video-views-badge {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

/* 🔹 SAYFALAMA */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto 40px auto;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  color: #0077ff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.25s;
  min-width: 38px;
  text-align: center;
}

.pagination a:hover {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

.pagination .current {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}

/* 🔹 TEKİL VİDEO SAYFASI */
.single-video {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 30px 25px;
  text-align: center;
  transition: 0.3s ease;
}

.single-video:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.single-video h1 {
  font-size: 26px;
  color: #111;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
}

.single-video .post-meta {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 18px;
}

.single-video .post-meta a {
  color: #0077ff;
  font-weight: 600;
}

.single-video iframe,
.single-video video {
  width: 100%;
  max-width: 840px;
  height: 460px;
  border: 0;
  border-radius: 10px;
  margin: 25px auto;
  display: block;
  background: #000;
}

.single-video p {
  font-size: 15.5px;
  color: #334155;
  text-align: justify;
  margin-top: 12px;
}

/* 🔹 SIDEBAR ve WIDGET ALANI */
.sidebar {
  position: relative;
  margin-top: 40px;
}

.widget {
  background: linear-gradient(145deg, #ffffff 0%, #f3f5f8 100%);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #0077ff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #0077ff33;
  padding-bottom: 6px;
}

.widget-title::before {
  content: "🗂️";
  font-size: 18px;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #1e293b;
  font-weight: 500;
  transition: 0.25s;
}

.widget ul li a:hover {
  color: #0077ff;
  padding-left: 6px;
}

/* 🔹 BENZER VİDEOLAR */
.related-videos {
  margin-top: 50px;
}

.related-videos h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #0077ff;
  text-align: center;
}

.related-videos .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-videos .video-item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.related-videos .video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.related-videos .video-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.related-videos .video-title {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.related-videos .video-title:hover {
  color: #0077ff;
}

/* 🔹 FOOTER */
footer {
  text-align: center;
  padding: 45px 0;
  color: #777;
  font-size: 14px;
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: 70px;
}

/* 🔹 RESPONSIVE */
@media (max-width: 900px) {
  .container {
    padding: 15px;
  }

  .single-video {
    margin: 20px auto;
    padding: 20px 15px;
    border-radius: 10px;
  }

  .single-video iframe,
  .single-video video {
    height: 300px;
  }

  .video-thumb img {
    height: 180px;
  }

  .related-videos .video-item img {
    height: 180px;
  }

  .widget {
    padding: 15px 18px;
  }

  .video-views-badge {
    font-size: 12px;
    padding: 3px 6px;
    bottom: 6px;
    right: 6px;
  }
}

/* 🔹 Mobilde Sidebar & Widget Gizle */
@media (max-width: 900px) {
  .sidebar,
  .widget-area,
  aside,
  #secondary,
  #categories-5 {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

/* 🔹 SADECE MOBİLDE TAM OTURAN GÖRÜNÜM */
@media (max-width: 600px) {
  html, body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: #fff;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .single-video {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .single-video iframe,
  .single-video video {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #000;
  }

  .video-views-badge {
    font-size: 11px;
    padding: 3px 6px;
    bottom: 5px;
    right: 5px;
  }
}
