/* ==========================================================================
   UK Industries - Video Gallery Styles
   Modular stylesheet for landscape video cards with modal player & details
   ========================================================================== */

:root {
  --video-accent: #dc2626;
  --video-accent-hover: #b91c1c;
  --video-accent-light: #fef2f2;
  --video-text-dark: #0f172a;
  --video-text-muted: #64748b;
  --video-border: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.video-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--video-border);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.video-badge-tag {
  display: inline-block;
  background-color: var(--video-accent-light);
  border: 1px solid #fee2e2;
  color: var(--video-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.video-header h1 {
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--video-text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.video-header p {
  color: var(--video-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Video Gallery Section & Cards (16:9 Landscape Layout)
   -------------------------------------------------------------------------- */
.video-section {
  padding: 4.5rem 0;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--video-border);
}

.video-card {
  background-color: #ffffff;
  border: 1px solid var(--video-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

/* 16:9 Landscape Thumbnail Frame */
.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0f172a;
}

.video-landscape-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-landscape-thumb {
  transform: scale(1.05);
}

/* Video Duration Badge */
.video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Hover Play Button Overlay */
.video-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.video-card:hover .video-thumb-overlay {
  background: rgba(15, 23, 42, 0.5);
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--video-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  padding-left: 3px; /* visual center for play triangle */
  transform: scale(0.9);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.video-card:hover .video-play-btn {
  transform: scale(1.08);
  background-color: var(--video-accent);
  color: #ffffff;
}

/* Video Card Body Details */
.video-card-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--video-accent);
  letter-spacing: 0.8px;
  margin-bottom: 0.35rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--video-text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.video-card-desc {
  font-size: 0.88rem;
  color: var(--video-text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Modal Video Player & Details
   -------------------------------------------------------------------------- */
.video-modal-dialog {
  max-width: 920px;
}

.video-modal-content {
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  position: relative;
}

/* Floating Cross / Close Button */
.modal-close-custom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1065;
  padding: 0;
  line-height: 1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.modal-close-custom:hover {
  background: var(--video-accent);
  border-color: var(--video-accent);
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive iframe container for embedded videos */
.video-iframe-responsive {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-details {
  padding: 1.75rem 2rem;
  background-color: #ffffff;
}

.video-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--video-border);
}

.video-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.video-modal-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.video-tech-specs {
  background-color: #f8fafc;
  border: 1px solid var(--video-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.video-tech-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.video-tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #475569;
}

.video-tech-list li i {
  color: var(--video-accent);
  margin-right: 0.4rem;
}

/* --------------------------------------------------------------------------
   Pagination Styling
   -------------------------------------------------------------------------- */
.pagination-custom {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.pagination-custom .page-link {
  color: var(--video-text-dark);
  border: 1px solid var(--video-border);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination-custom .page-link:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: var(--video-accent);
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--video-accent);
  border-color: var(--video-accent);
  color: #ffffff;
}

