/* Video.js Custom Theme for The Honest Ape
-------------------------------------------------- */

/* === BASIC VIDEO.JS OVERRIDES === */
.video-js {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-gray-900, #1a1a1a);
}

/* Control bar styling */
.video-js .vjs-control-bar {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  border-radius: 0 0 12px 12px;
  height: 3.5em;
  padding: 0 0.5em;
}

/* Play button */
.video-js .vjs-big-play-button {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 32px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.video-js .vjs-big-play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
  color: white;
}

/* Progress bar */
.video-js .vjs-progress-control {
  height: 8px;
  margin: 0 1em;
}

.video-js .vjs-progress-holder {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.video-js .vjs-play-progress {
  background: var(--color-primary, #3273dc);
  border-radius: 4px;
}

.video-js .vjs-load-progress {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

/* Volume and time controls */
.video-js .vjs-control {
  color: white;
  transition: color 0.3s ease;
}

.video-js .vjs-control:hover {
  color: var(--color-primary, #3273dc);
}

/* Time display */
.video-js .vjs-time-control {
  font-size: 0.9em;
  font-family: var(--font-mono, 'SF Mono', monospace);
}

/* Fullscreen button */
.video-js .vjs-fullscreen-control {
  order: 9;
}

/* Playback rate menu */
.video-js .vjs-playback-rate .vjs-playback-rate-value {
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 0.8em;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .video-js .vjs-big-play-button {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
  }
  
  .video-js .vjs-control-bar {
    height: 3em;
    font-size: 0.9em;
  }
  
  /* Hide some controls on mobile */
  .video-js .vjs-playback-rate {
    display: none;
  }
}

/* === CUSTOM THEME CLASS === */
.video-js.vjs-custom-theme {
  /* Additional custom styling */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-js.vjs-custom-theme .vjs-control-bar {
  background: linear-gradient(to top, 
    rgba(0,0,0,0.9) 0%, 
    rgba(0,0,0,0.6) 40%, 
    rgba(0,0,0,0.2) 70%, 
    rgba(0,0,0,0) 100%);
}

/* === BULMA INTEGRATION === */
.hero-media-box .video-js {
  width: 100% !important;
  height: 100% !important;
}

.image.is-16by9 .video-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* === LOADING STATE === */
.video-js .vjs-loading-spinner {
  border-color: var(--color-primary, #3273dc) transparent transparent transparent;
}

/* === ERROR STATE === */
.video-js .vjs-error-display {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 12px;
}

/* === ACCESSIBILITY === */
.video-js .vjs-control:focus {
  outline: 2px solid var(--color-primary, #3273dc);
  outline-offset: 2px;
}

/* === CURSOR INTEGRATION === */
.video-js .vjs-control {
  cursor: pointer;
}

.video-js .vjs-big-play-button {
  cursor: pointer;
}

/* Ensure Video.js controls don't interfere with custom cursor */
.video-js .vjs-control-bar * {
  cursor: pointer !important;
}
