/* ═══════════════════════════════════════
   WEBER ENERGY SOLUTIONS - SHARED STYLES
   - Custom Theme-Compliant Scrollbar
   - Smooth Theme Transitions
   - Minimal Custom Portrait Video Player
   - Video Review Card Hover Styles
   ═══════════════════════════════════════ */

/* ── COLOR SCHEME DECLARATIONS ── */
html {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #F9F4EA;
}
::-webkit-scrollbar-thumb {
  background: #C8281E;
  border: 2px solid #F9F4EA;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A01E16;
}
/* Hide scrollbar arrow buttons — they sit at top-right and overlap the accent bar */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none !important;
  background: transparent !important;
  visibility: hidden !important;
  overflow: hidden;
  position: absolute;
}
::-webkit-scrollbar-button:decrement,
::-webkit-scrollbar-button:increment,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:double-button {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  visibility: hidden !important;
}

/* Dark theme overrides */
.dark::-webkit-scrollbar-track,
html.dark::-webkit-scrollbar-track,
.dark ::-webkit-scrollbar-track,
html.dark ::-webkit-scrollbar-track {
  background: #141210 !important;
}
.dark::-webkit-scrollbar-thumb,
html.dark::-webkit-scrollbar-thumb,
.dark ::-webkit-scrollbar-thumb,
html.dark ::-webkit-scrollbar-thumb {
  border-color: #141210 !important;
}

/* Firefox standard scrollbars */
html, * {
  scrollbar-width: thin;
  scrollbar-color: #C8281E #F9F4EA;
}
html.dark, html.dark * {
  scrollbar-color: #C8281E #141210;
}

/* ── TOP RED ACCENT BAR (shared across all pages) ── */
.bg-top-accent {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1001;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--red));
}

/* ── SMOOTH THEME CHANGE CROSS-FADE ── */
.theme-transitioning,
.theme-transitioning body {
  transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.theme-transitioning nav,
.theme-transitioning footer,
.theme-transitioning section,
.theme-transitioning div,
.theme-transitioning a,
.theme-transitioning p,
.theme-transitioning span,
.theme-transitioning h1,
.theme-transitioning h2,
.theme-transitioning h3,
.theme-transitioning h4,
.theme-transitioning li,
.theme-transitioning button,
.theme-transitioning input,
.theme-transitioning select,
.theme-transitioning textarea {
  transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── VIDEO REVIEW CARDS — always red border, hover = bulge ── */
.video-review-card {
  border-color: rgba(200, 40, 30, 0.35) !important;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.25s ease,
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1) !important;
  will-change: transform;
}
.video-review-card:hover {
  transform: scale(1.045) translateY(-4px) !important;
  border-color: rgba(200, 40, 30, 0.75) !important;
  box-shadow: 0 24px 56px rgba(200, 40, 30, 0.18),
              0 8px 24px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(200, 40, 30, 0.22) !important;
}

/* ── MINIMAL PORTRAIT VIDEO PLAYER ── */
.custom-video-player {
  position: relative;
  width: 100%;
  background: #000;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.custom-video-player video {
  width: 100%;
  display: block;
}

/* Big Center Play Button Overlay */
.cvp-play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(200, 40, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.cvp-play-overlay svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}
.cvp-play-overlay:hover {
  transform: scale(1.08);
  background: #A01E16;
}
.custom-video-player.playing .cvp-play-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Bottom Controls Panel */
.cvp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 14px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  z-index: 15;
  pointer-events: none;
}

/* Show controls on hover or touch-active */
.custom-video-player:hover .cvp-controls,
.custom-video-player.touch-active .cvp-controls {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Progress bar styles */
.cvp-progress-container {
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.cvp-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: height 0.15s ease;
}
.cvp-progress-container:hover .cvp-progress-bar {
  height: 5px;
}
.cvp-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #C8281E;
}

/* Control Buttons & Timings */
.cvp-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cvp-left-btns,
.cvp-right-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cvp-controls button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
}
.cvp-controls button:hover {
  color: #D4820A;
  transform: scale(1.08);
}
.cvp-controls button svg {
  width: 20px;
  height: 20px;
}
.cvp-time {
  color: rgba(255, 255, 255, 0.88);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}


