/**
 * Furnostyles Video Player Component
 * Custom video player styling for brand and portfolio videos
 */

/* ------------------------------------------------------------------ */
/* VIDEO PLAYER CONTAINER                                              */
/* ------------------------------------------------------------------ */

.fns-video-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.fns-video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ------------------------------------------------------------------ */
/* HERO VIDEO BACKGROUND                                              */
/* ------------------------------------------------------------------ */

.fns-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.fns-hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 47, 58, 0.85) 0%, rgba(6, 31, 41, 0.75) 100%);
  z-index: 0;
}

/* ------------------------------------------------------------------ */
/* PORTFOLIO VIDEO CARDS                                              */
/* ------------------------------------------------------------------ */

.fns-portfolio-video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fns-portfolio-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.fns-portfolio-video-card video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.fns-portfolio-video-card .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.fns-portfolio-video-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.fns-portfolio-video-card .play-button {
  width: 64px;
  height: 64px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.fns-portfolio-video-card:hover .play-button {
  transform: scale(1.1);
  background: rgba(212, 175, 55, 1);
}

.fns-portfolio-video-card .video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.fns-portfolio-video-card .video-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.fns-portfolio-video-card .video-info p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}

/* ------------------------------------------------------------------ */
/* VIDEO GRID                                                         */
/* ------------------------------------------------------------------ */

.fns-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

@media (max-width: 768px) {
  .fns-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ------------------------------------------------------------------ */
/* FEATURED VIDEO SECTION                                             */
/* ------------------------------------------------------------------ */

.fns-featured-video {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.fns-featured-video video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* VIDEO MODAL                                                        */
/* ------------------------------------------------------------------ */

.fns-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fns-video-modal.active {
  opacity: 1;
  visibility: visible;
}

.fns-video-modal-content {
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  position: relative;
}

.fns-video-modal-content video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 12px;
}

.fns-video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.fns-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .fns-portfolio-video-card video {
    height: 200px;
  }
  
  .fns-portfolio-video-card .play-button {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .fns-featured-video video {
    max-height: 400px;
  }
}
