/* Video Center Styles - CBA Auto Parts */

/* Hero Section */
.video-hero {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a6f 50%, #1a2b4a 100%);
  padding: 100px 0 80px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.video-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  background-size: 60px 60px;
  opacity: 0.5;
}

.video-hero .container {
  position: relative;
  z-index: 1;
}

.video-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 20px;
}

.video-hero h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.video-hero h1 strong {
  font-weight: 600;
}

.video-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter Section */
.video-filter-section {
  background: #f8f9fa;
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.video-filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.video-filter-tab {
  padding: 10px 24px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-filter-tab:hover {
  border-color: #1a2b4a;
  color: #1a2b4a;
}

.video-filter-tab.active {
  background: #1a2b4a;
  color: #fff;
  border-color: #1a2b4a;
}

/* Video Grid Section */
.video-grid-section {
  padding: 60px 0 80px;
  background: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Video Card */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #1a2b4a;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(201, 162, 39, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 4px;
}

.video-card:hover .video-play-btn {
  background: #c9a227;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.video-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 43, 74, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-meta svg {
  width: 14px;
  height: 14px;
}

/* Loading & Empty States */
.video-loading {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #1a2b4a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-empty {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}

.video-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #1a2b4a;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-modal-player {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.video-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-info {
  padding: 20px 24px;
  color: #fff;
}

.video-modal-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.video-modal-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* CTA Section */
.video-cta-section {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a6f 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.video-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.video-cta-content h2 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 16px;
}

.video-cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.6;
}

.video-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #c9a227;
  color: #1a2b4a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #b8941f;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
  background: #f3f4f6;
  color: #1a2b4a;
}

.nav-dropdown-menu a.active {
  color: #1a2b4a;
  background: #f3f4f6;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .video-hero {
    padding: 80px 0 60px;
  }
  
  .video-hero h1 {
    font-size: 32px;
  }
  
  .video-hero-subtitle {
    font-size: 16px;
  }
  
  .video-filter-tabs {
    gap: 6px;
  }
  
  .video-filter-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .video-modal-content {
    margin: 0 -20px;
    border-radius: 0;
  }
  
  .video-modal-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .video-cta-content h2 {
    font-size: 24px;
  }
  
  .video-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .nav-dropdown-menu {
    display: none;
  }
}
