/* ==========================================================================
   Faraz Schema — Video Block Premium Styles
   ========================================================================== */

.faraz-schema-video-wrapper,
.faraz-schema-video-block,
.wp-block-faraz-video {
  direction: rtl;
  margin: 2rem 0;
  font-family: 'IRANSansXV', 'Vazirmatn', system-ui, -apple-system, sans-serif;
  width: 100%;
}

.faraz-video-card,
.faraz-schema-video-block,
.faraz-video-embed-container {
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 1rem !important;
  overflow: hidden !important;
  position: relative;
  border: 1px solid #374151 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  background-color: #000000 !important;
  box-sizing: border-box;
  padding-bottom: 0 !important;
  height: auto !important;
}

.faraz-video-iframe-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.faraz-video-iframe,
.faraz-video-embed-container iframe {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border: 0 !important;
}

.faraz-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

.faraz-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.faraz-video-preview:hover .faraz-video-thumb {
  transform: scale(1.05);
}

.faraz-video-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.faraz-video-preview:hover .faraz-video-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.faraz-video-play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.faraz-video-play-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(51, 102, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.faraz-video-preview:hover .faraz-video-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(27, 67, 245, 0.6);
  background-color: #1b43f5;
}

.faraz-video-duration-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  z-index: 15;
}

.faraz-video-overlay-info {
  position: absolute;
  top: 0;
  inset-x: 0;
  height: 6rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 15;
  pointer-events: none;
}

.faraz-video-overlay-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.faraz-video-overlay-subtitle {
  font-size: 13px;
  color: #c3c5d8;
  margin-top: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
