/* Extended styles for UI variant 7 */
.ui-style-7 {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --bg-light: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card,
.video-item {
  animation: fadeIn 0.5s ease-out;
}

/* Enhanced hover effects */
.video-card:hover h3,
.video-item:hover h3 {
  color: var(--primary-color);
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Scroll to top button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 999;
  font-size: 24px;
  border: none;
}

#backToTop:hover {
  background: #2980b9;
  transform: translateY(-5px);
}

#backToTop.show {
  display: flex;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  #backToTop {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Card grid improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Enhanced typography */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  max-width: 70ch;
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .nav-links,
  #backToTop {
    display: none;
  }

  body {
    background: #fff;
  }

  .video-card,
  .video-item {
    break-inside: avoid;
  }
}
