﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --bg-color: #f9fbfc;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-color: #222222;
  --border-color: #dcdcdc;
  --accent-color: #2563eb; /* Canlı mavi */
  --accent-hover: #1d4ed8;
  --thumb-radius: 14px;
  --glass-blur: blur(12px);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-hard: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Genel gövde ayarları */
body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Video Thumbnail Container & Play Button --- */

.video-thumbnail-container {
  position: relative;
  cursor: pointer;
  border-radius: var(--thumb-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.video-thumbnail-container:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* --- Toggle Description Link --- */
.toggle-desc {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.toggle-desc:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.full-description {
  display: inline;
}

/* --- Tarih Filter Alanı --- */

.tarih-filter {
  margin: 10px 0;
  padding: 10px 15px;
  background: #eee;
  border-radius: 8px;
  display: inline-block;
  font-size: 14px;
  color: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.tarih-filter:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tarih-filter label {
  margin-right: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tarih-filter label i {
  color: #1E90FF;
  transition: color 0.3s ease;
}

.tarih-filter:hover label i {
  color: #1C86EE;
}

.tarih-filter select {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 5px;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #ccc;
  min-width: 120px;
}

/* Responsive Tarih Filter */
@media (max-width: 600px) {
  .tarih-filter {
    width: 100%;
    box-sizing: border-box;
  }
  .tarih-filter select {
    width: 100%;
    margin-top: 6px;
  }
}



/* --- Arama Formu --- */

/* Arama Çubuğu Genel Stilleri */
.search-form {
  margin-bottom: 20px;
  display: flex;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #ddd;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-form:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  outline: none;
  color: #333;
}

.search-input::placeholder {
  color: #aaa;
  font-style: italic;
}


.search-button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px; /* Butonun minimum genişliği */
}

.search-button:hover {
  background-color: #0056b3;
}

.search-button:active {
  background-color: #003d80;
}

/* Mobilde buton küçülür, input genişler */
@media (max-width: 480px) {
  .search-form {
    flex-direction: row; /* Yanyana */
    max-width: 100%;
  }
  
  .search-input {
    font-size: 16px;
    padding: 10px 12px;
  }
  
  .search-button {
    padding: 0 10px;
    font-size: 14px;
    min-width: 40px; /* Daha küçük buton */
  }
}



/* --- Arama Sonuçları --- */

.related-videos {
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 20px 30px;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.4s ease;
}

.related-videos:hover {
  box-shadow: var(--shadow-hard);
}

.related-videos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-videos li {
  margin-bottom: 22px;
}

.search-result {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 8px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  will-change: transform, box-shadow;
}

.search-result:hover {
  background: #f9faff;
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.search-thumb {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--thumb-radius);
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.search-result:hover .search-thumb {
  transform: scale(1.07);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.search-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.search-result:hover .search-title {
  color: var(--accent-color);
}

/* Mobil uyumluluk */
@media (max-width: 480px) {
  .search-thumb {
    width: 70px;
    height: 50px;
    margin-right: 14px;
  }
  .search-title {
    font-size: 15px;
  }
  .search-result {
    padding: 12px 14px;
    border-radius: 14px;
  }
}




/* Arama kutusunun temizlenmesi */

#clearSearchBtn {
  position: absolute;
  top: 50%;
  right: 125px; /* Masaüstü için uygun değer */
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  padding: 0 5px;
  color: #888;
  z-index: 2; /* Input'un altına kaymaması için */
}

#clearSearchBtn:hover {
  color: red;
}

/* Mobil ekranlar için uyarlama */
@media (max-width: 600px) {
  #clearSearchBtn {
    right: 80px;         /* Mobilde daha küçük boşluk */
    font-size: 1.5rem;   /* Dokunmatik için biraz büyük */
  }
}

  
  /* Arama kutusunun içine sığması için biraz boşluk */
  .search-input {
    padding-right: 30px;
  }
  
  .search-form.hidden {
  display: none !important;
}

 /* Arama yapıldıktan sonra filtreyi temizle butonlarının rengi */
 
form button {
  background-color: #f44336; /* Kırmızı ton */
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #d32f2f;
}

form {
  margin-top: 15px; /* Butonun üstüne boşluk */
}

/* ------------------------------------- */

	.share-container {
  position: relative;
  display: inline-block;
  float: right;
  margin: 10px 10px 10px 0;
}

.share-toggle {
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.share-icons {
  position: absolute;
  top: 110%; /* Butonun hemen altında */
  right: 0;
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 180px; /* Yeterli genişlik */
  justify-content: space-around;
}

/* İkon ve yanındaki metin için stil */
.share-icons a {
  font-size: 20px;
  color: #444;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.share-icons a .share-text {
  font-size: 14px;
  color: #333;
  display: none; /* Metin gizli başta */
}

/* Hover olunca ikonlar görünür ve metinler çıkar */
.share-container:hover .share-icons {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover ile ikonların yanındaki metinler görünür */
.share-icons a:hover {
  color: #0d6efd;
}

.share-icons a:hover .share-text {
  display: inline;
}
