/*
Theme Name: Videox
Version: 4.0
Author: Videox Team
Description: Modern, hızlı, SEO uyumlu video teması + AJAX Load More + 2026 Single Tasarımı.
*/

/* === GLOBAL === */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Inter", sans-serif;
  background: #0b0b0b;
  color: #f2f2f2;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* === GRID === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  width: 95%;
  margin: 40px auto 60px;
  padding-bottom: 20px;
}

/* === KART === */
.video-item {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 0 8px rgba(255, 45, 125, 0.08);
  position: relative;
}
.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 45, 125, 0.35);
}

/* === GÖRSEL === */
.video-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1b1b1b;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

/* === BAŞLIK === */
.video-item h3 {
  font-size: 15px;
  font-weight: 500;
  color: #ff5ec9;
  padding: 10px 12px;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: color 0.3s ease;
}
.video-item:hover h3 {
  color: #ff9edf;
}

/* === ALT META === */
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 12px;
  color: #bbb;
  font-size: 12px;
  opacity: 0.8;
}
.video-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* === HEADER === */
.site-header {
  background: #000;
  padding: 18px 30px;
  border-bottom: 2px solid #ff2e93;
  box-shadow: 0 2px 10px rgba(255, 45, 125, 0.1);
}
.site-header h1 {
  display: none; /* SEO için kalıyor ama görünmüyor */
}

/* === LOAD MORE BUTTON === */
#videox-loadmore {
  background: linear-gradient(90deg, #ff2e93, #ff5ec9);
  color: #fff;
  padding: 14px 40px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all .25s ease;
  box-shadow: 0 0 15px rgba(255,45,125,0.25);
  display: block;
  margin: 40px auto;
}
#videox-loadmore:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255,45,125,0.4);
  background: linear-gradient(90deg, #ff5ec9, #ff9edf);
}

/* === LOADING DURUMU === */
#videox-loadmore.loading {
  pointer-events: none;
  opacity: 0.8;
  position: relative;
}
#videox-loadmore.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  position: absolute;
  top: 50%;
  left: calc(50% + 60px);
  transform: translateY(-50%);
}
@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* === PAGINATION (Eğer LoadMore kapalıysa) === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px auto;
}
.pagination .page-num a,
.pagination .page-num span {
  display: inline-block;
  padding: 8px 14px;
  background: #161616;
  color: #ff5ec9;
  border-radius: 8px;
  border: 1px solid #222;
  transition: all 0.2s ease;
  font-weight: 500;
}
.pagination .page-num a:hover {
  background: #ff2e93;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 45, 125, 0.3);
}
.pagination .current {
  background: #ff2e93;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(255, 45, 125, 0.4);
}

/* === SINGLE PAGE TASARIMI === */
.video-page {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  width: 90%;
  margin: 50px auto;
}

.video-container {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(255,45,125,0.1);
}

.video-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.video-player iframe,
.video-player video {
  width: 100%;
  max-height: 420px; /* Standart masaüstü boyutu */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: none;
  object-fit: cover;
  display: block;
}

.video-title {
  font-size: 24px;
  color: #fff;
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.video-duration {
  color: #ff5ec9;
  font-weight: 500;
  margin-bottom: 15px;
}

.video-description {
  color: #ddd;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 20px;
}

.video-tags {
  margin-bottom: 25px;
}
.video-tags .tag {
  display: inline-block;
  background: rgba(255,94,201,0.1);
  color: #ff5ec9;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 4px;
}

.video-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.video-nav a {
  background: #111;
  color: #ff5ec9;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all .2s ease;
  font-weight: 500;
}
.video-nav a:hover {
  background: #ff5ec9;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,94,201,0.3);
}

/* === BENZER VİDEOLAR === */
.related-videos {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 0 20px rgba(255,45,125,0.05);
}
.related-videos h2 {
  font-size: 18px;
  color: #ff9edf;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

/* === RESPONSIVE === */
@media (max-width:1200px){
  .video-grid{grid-template-columns:repeat(4,1fr);}
}
@media (max-width:900px){
  .video-grid{grid-template-columns:repeat(3,1fr);}
  .video-page{grid-template-columns:1fr;}
  .video-player iframe, .video-player video {max-height:320px;}
}
@media (max-width:600px){
  .video-grid{grid-template-columns:repeat(2,1fr);}
  .video-player iframe, .video-player video {max-height:220px;}
}
@media (max-width:400px){
  .video-grid{grid-template-columns:repeat(1,1fr);}
}
/* === Video Navigation Buttons === */
.video-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  gap: 10px;
}

.nav-btn {
  flex: 1;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--videox-accent), var(--videox-main));
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all .25s ease;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255,45,125,0.25);
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--videox-main), var(--videox-accent));
  box-shadow: 0 0 20px rgba(255,45,125,0.4);
}

/* === Back Home Button === */
.back-home {
  text-align: center;
  margin: 35px auto 10px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--videox-accent), var(--videox-main));
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 0 10px rgba(255,45,125,0.25);
}

.home-btn i {
  font-size: 16px;
}

.home-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--videox-main), var(--videox-accent));
  box-shadow: 0 0 20px rgba(255,45,125,0.4);
}
/* === Lazy Thumbnail === */
.lazy-thumb {
  background: #111;
  filter: blur(10px);
  transition: filter 0.5s ease, opacity 0.5s ease;
  opacity: 0.6;
}

.lazy-thumb.loaded {
  filter: blur(0);
  opacity: 1;
}
