/* YouTube Channel Modern Design */

.youtube-channel-modern {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.youtube-channel-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 0, 0, 0.1) 0%, 
    rgba(255, 100, 0, 0.1) 25%, 
    rgba(0, 100, 255, 0.1) 50%, 
    rgba(100, 0, 255, 0.1) 75%, 
    rgba(255, 0, 100, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.youtube-channel-modern:hover::before {
  opacity: 1;
}

.youtube-channel-modern:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.youtube-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.youtube-logo-container {
  position: relative;
  margin-right: 16px;
  flex-shrink: 0;
}

.huncoding-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.huncoding-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.youtube-icon-modern {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
  animation: youtube-pulse 2s infinite;
}

.youtube-icon-modern i {
  color: white;
  font-size: 12px;
}

@keyframes youtube-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.6);
  }
}

.youtube-info {
  flex: 1;
  min-width: 0;
}

.youtube-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.youtube-description {
  color: #a0a0a0;
  font-size: 13px;
  margin: 0;
  line-height: 1.3;
}

.youtube-subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #ff0000 0%, #e60000 50%, #cc0000 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
  overflow: hidden;
}

.youtube-subscribe-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.youtube-subscribe-btn:hover::before {
  left: 100%;
}

.youtube-subscribe-btn:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #ff0000 50%, #e60000 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
}

.youtube-subscribe-btn:active {
  transform: translateY(0);
}

.youtube-subscribe-btn i {
  margin-right: 8px;
  font-size: 16px;
}

/* Dark mode adjustments */
[data-mode="dark"] .youtube-channel-modern {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

[data-mode="dark"] .youtube-title {
  color: #ffffff;
}

[data-mode="dark"] .youtube-description {
  color: #b0b0b0;
}

/* Light mode adjustments */
[data-mode="light"] .youtube-channel-modern {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-mode="light"] .youtube-title {
  color: #212529;
}

[data-mode="light"] .youtube-description {
  color: #6c757d;
}

[data-mode="light"] .huncoding-logo {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .youtube-channel-modern {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .huncoding-logo {
    width: 40px;
    height: 40px;
  }
  
  .youtube-icon-modern {
    width: 20px;
    height: 20px;
    bottom: -3px;
    right: -3px;
  }
  
  .youtube-icon-modern i {
    font-size: 10px;
  }
  
  .youtube-title {
    font-size: 14px;
  }
  
  .youtube-description {
    font-size: 12px;
  }
  
  .youtube-subscribe-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}