/* ═══════════════════════════════════════════
   Videolar – ASAŞ (Videos page)
   Frame 137: 3 rows × 2 cards, play button, pagination
═══════════════════════════════════════════ */

@import url('breadcrumb.css');

:root { --asas-gutter: 48px; }
@media (max-width: 1199.98px) { :root { --asas-gutter: 32px; } }
@media (max-width: 991.98px) { :root { --asas-gutter: 24px; } }
@media (max-width: 767.98px) { :root { --asas-gutter: 16px; } }

.videos-section {
  width: 100%;
  max-width: 1410px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--asas-gutter, 48px);
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 46px;
}
@media (max-width: 767.98px) {
  .videos-section { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
}

.videos-rows {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.videos-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 60px;
  width: 100%;
  flex-wrap: wrap;
}

/* Kart: Figma 625×582 (sabit yükseklik tasarımda; web’de alt metin uzunluğuna göre hafif uzayabilir) */
.video-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 6px;
  flex: 1 1 calc(50% - 30px);
  min-width: 280px;
  max-width: 625px;
  background: #FFFFFF;
}

.video-card-head {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 61.19%; /* ~413:675 görsel oranı (genişlikle ölçeklenir) */
  overflow: hidden;
  background: #f0f0f0;
  display: block;
  text-decoration: none;
}

.video-card-head img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #D1000F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  pointer-events: none;
  flex-shrink: 0;
}

.video-play svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}

.video-card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 0;
  gap: 15px;
  width: 100%;
}

.video-card-meta {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 15px;
  width: 100%;
}

.video-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: #000000;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.video-card-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.video-date {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #828282;
}

.video-share {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #828282;
  transition: color 0.2s ease;
}
.video-share:hover {
  color: #D1000F;
}
.video-share .video-share-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

/* Pagination – haberler ile aynı stil */
.video-pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  gap: 20px;
  width: 100%;
  border-top: 1px solid #EAECF0;
  flex-wrap: wrap;
}
.video-pagination-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.video-pagination a,
.video-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
  text-decoration: none;
  border-radius: 8px;
}
.video-pagination a:hover {
  background: #f5f5f5;
}
.video-pagination .active {
  background: rgba(209, 0, 15, 0.2);
  color: #D1000F;
}
.video-pagination .arrow {
  width: 20px;
  height: 20px;
  color: #667085;
}

@media (max-width: 991.98px) {
  .videos-row { gap: 32px; justify-content: center; }
  .video-card { flex: 1 1 100%; max-width: 625px; }
}
@media (max-width: 767.98px) {
  .videos-rows { gap: 32px; }
  .videos-row { gap: 24px; }
  .video-card-title { font-size: 20px; line-height: 28px; }
}

/* Video modal (Type4 liste — iframe) */
.video-modal[hidden] { display: none !important; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 90vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.video-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.28); }
.video-modal-iframe-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.video-modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
