/* Video Tutorials Page Styles */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-bg);
  margin: 0;
  padding: 0;
}

/* Header Styles */
.tutorials-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
}

.back-btn {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.back-btn:hover {
  color: white;
  opacity: 0.8;
}

/* Main Content */
.tutorials-main {
  padding: 0;
}

/* Hero Section */
.tutorials-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.tutorials-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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #f0f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.stat-item i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-image i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Tutorials Content */
.tutorials-content {
  padding: 2rem 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header h2 i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Cards */
.category-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.category-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.category-card:hover .category-action {
  color: var(--primary-dark);
}

/* Featured Playlist */
.featured-playlist {
  margin: 4rem 0;
}

.playlist-container {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.video-player {
  position: relative;
  background: #000;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
}

#main-video {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  display: none;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 400px;
  background: #f1f5f9;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.featured-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  transition: background 0.3s ease;
}

.video-placeholder:hover .play-button-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.play-button-overlay i {
  font-size: 4rem;
  color: #ff0000;
  margin-bottom: 1rem;
  background: white;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.play-button-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

.playlist-sidebar {
  background: var(--light-bg);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  height: 100%;
}

.playlist-sidebar h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.playlist-videos {
  max-height: 400px;
  overflow-y: auto;
}

/* Tutorial Cards */
.tutorial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tutorial-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  background: #f1f5f9;
}

.tutorial-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: #f1f5f9;
}

.tutorial-thumbnail img:not([src]), 
.tutorial-thumbnail img[src=""] {
  display: none;
}

.tutorial-card:hover .tutorial-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tutorial-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  color: white;
  font-size: 3rem;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-info {
  padding: 1.5rem;
}

.tutorial-info h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tutorial-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.tutorial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.duration {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.level {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
}

.level.beginner {
  background: #dcfce7;
  color: #166534;
}

.level.intermediate {
  background: #fef3c7;
  color: #92400e;
}

.level.advanced {
  background: #fee2e2;
  color: #991b1b;
}

/* Footer */
.tutorials-footer {
  background: var(--text-primary);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.tutorials-footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.tutorials-footer p {
  opacity: 0.8;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .category-card {
    padding: 1.5rem;
  }
  
  .category-icon {
    font-size: 2.5rem;
  }
  
  .playlist-container {
    padding: 1rem;
  }
  
  .tutorial-info {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .tutorials-hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-image i {
    font-size: 5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .tutorial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.playlist-videos::-webkit-scrollbar {
  width: 6px;
}

.playlist-videos::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 3px;
}

.playlist-videos::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.playlist-videos::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
} 