/*
Theme Name: DETUBEX
Theme URI: https://detubex.local
Author: ChatGPT & Kral
Author URI: https://detubex.local
Description: Modern 2026 açık tonlu, Detube benzeri video teması. Hızlı, SEO uyumlu, responsive.
Version: 2.0
License: GPLv2 or later
Text Domain: detubex
*/

/* 🔹 Genel Tasarım */
body {
  background: #f9fafb;
  color: #222;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: #0077ff;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: #0056cc;
}

/* 🔹 Container */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 🔹 Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.video-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.video-title {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

/* 🔹 Tekil Video Sayfası */
.single-video {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 20px;
}

.single-video iframe {
  width: 100%;
  height: 480px;
  border: 0;
  border-radius: 8px;
}

/* ======================================================
   🔹 MODERN SIDEBAR 2026
   ====================================================== */

.sidebar {
  position: relative;
}

/* Sidebar genel kutu */
.widget {
  background: linear-gradient(145deg, #ffffff 0%, #f2f5f9 100%);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  margin-bottom: 30px;
  padding: 18px 20px 22px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Başlık */
.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #0b64e0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #0b64e0;
  padding-bottom: 6px;
}

.widget-title::before {
  content: "🗂️";
  font-size: 18px;
}

/* Liste */
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.25s;
  border: 1px solid #eef1f4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  margin-bottom: 8px;
}

.widget ul li:hover {
  background: #e9f3ff;
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.widget ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 15px;
  color: #222;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.widget ul li a::before {
  content: "▶";
  font-size: 11px;
  color: #0077ff;
  opacity: 0.5;
  transition: 0.3s;
}

.widget ul li:hover a::before {
  opacity: 1;
  transform: translateX(3px);
}

.widget ul li a:hover {
  color: #0077ff;
}

/* 🔹 Benzer Videolar */
.related-videos {
  margin-top: 40px;
}

.related-videos h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #0077ff;
}

.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.2s;
}

.related-videos .video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-videos .video-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.related-videos .video-title {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.related-videos .video-title:hover {
  color: #0077ff;
}

/* 🔹 Footer */
footer {
  text-align: center;
  padding: 30px 0;
  color: #777;
  font-size: 14px;
  background: #fff;
  border-top: 1px solid #eee;
}

/* 🔹 Responsive */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr !important;
  }

  .single-video iframe {
    height: 300px;
  }

  .widget {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .video-thumb img {
    height: 160px;
  }

  .related-videos .video-item img {
    height: 180px;
  }
}
/* ✅ DETUBEX Sidebar Ultimate Fix */
.widget-area {
  background: transparent;
}

.widget-area .widget {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px 22px;
  margin-bottom: 25px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.widget-area .widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.widget-area .widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #0077ff;
  border-left: 4px solid #0077ff;
  padding-left: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-area .widget-title::before {
  content: "🗂️";
  font-size: 18px;
}

.widget-area .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area .widget ul li {
  background: #f9fafc;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: 0.25s;
}

.widget-area .widget ul li:hover {
  background: #e9f3ff;
  transform: translateX(5px);
}

.widget-area .widget ul li a {
  display: block;
  padding: 8px 10px;
  color: #222 !important;
  text-decoration: none;
  font-weight: 500;
}

.widget-area .widget ul li a:hover {
  color: #0077ff !important;
  font-weight: 600;
}
