/* Video Guides Page Premium Styles */

.vg-hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-8) 0;
  background: radial-gradient(circle at top right, var(--color-bg-alt), var(--color-bg) 70%);
  text-align: center;
  overflow: hidden;
}

.vg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 0, 0, 0.1);
  color: #FF0000;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
}

.vg-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-heading);
}

.vg-hero__subtitle {
  font-size: var(--fs-lg);
  max-width: none;
  width: 100%;
  text-align: center;
  margin: 0 auto var(--space-8);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.vg-hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.vg-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FF0000;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.vg-yt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
  color: #FFFFFF;
}

.vg-yt-btn svg {
  width: 24px;
  height: 24px;
}

.vg-yt-btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: none;
}

.vg-yt-btn--outline:hover {
  border-color: #FF0000;
  color: #FF0000;
  background: rgba(255,0,0,0.05);
  box-shadow: none;
}

.vg-hero__demo-btn {
  border-radius: var(--radius-full);
}

.vg-hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  max-width: 600px;
  margin: 0 auto;
}

.vg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vg-stat__num {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}

.vg-stat__label {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vg-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-divider);
}

/* Section Headers */
.vg-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.vg-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.vg-section-header h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
  color: var(--color-heading);
}

.vg-section-desc {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin: 0 auto;
  line-height: var(--lh-relaxed);
}

/* Grids */
.vg-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.vg-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Cards */
.vg-featured-card, .vg-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.vg-featured-card:hover, .vg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: var(--color-border);
}

.vg-featured-card__thumb-link, .vg-card__thumb-link {
  display: block;
  position: relative;
  outline: none;
  border-radius: 20px 20px 0 0;
}

.vg-featured-card__thumb-link:focus-visible, .vg-card__thumb-link:focus-visible {
  box-shadow: inset 0 0 0 4px var(--color-accent);
}

.vg-featured-card__thumb-wrapper, .vg-card__thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.vg-featured-card__thumb, .vg-card__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.9;
}

.vg-featured-card:hover .vg-featured-card__thumb,
.vg-card:hover .vg-card__thumb {
  transform: scale(1.05);
  opacity: 1;
}

.vg-featured-card__play-overlay, .vg-card__play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.vg-featured-card:hover .vg-featured-card__play-overlay,
.vg-card:hover .vg-card__play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.vg-featured-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.vg-badge--popular {
  background: rgba(255, 0, 0, 0.9);
}

.vg-badge--latest {
  background: rgba(0, 100, 255, 0.9);
}

.vg-badge--new {
  background: rgba(0, 180, 100, 0.9);
}

.vg-featured-card__content, .vg-card__content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vg-featured-card__meta, .vg-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.vg-meta-views, .vg-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vg-featured-card__title, .vg-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
}

.vg-card__title {
  font-size: var(--fs-lg);
}

.vg-featured-card__title a, .vg-card__title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.vg-featured-card__title a:hover, .vg-card__title a:hover {
  color: var(--color-accent);
}

.vg-featured-card__desc, .vg-card__desc {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-card__desc {
  font-size: var(--fs-sm);
  -webkit-line-clamp: 2;
}

.vg-watch-btn, .vg-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-decoration: none;
  padding: 10px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  margin-top: auto;
}

.vg-watch-btn:hover, .vg-card__btn:hover {
  background: var(--color-divider);
}

.vg-card__btn {
  width: 100%;
  justify-content: center;
}

/* Channel CTA inside Latest section */
.vg-channel-cta {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-bg-alt);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  border: 1px solid var(--color-divider);
}

.vg-channel-cta__content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.vg-channel-cta__icon {
  color: #FF0000;
  flex-shrink: 0;
}

.vg-channel-cta__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
  color: var(--color-heading);
}

.vg-channel-cta__subtitle {
  color: var(--color-text-secondary);
  font-size: var(--fs-base);
  max-width: 50ch;
}

/* Demo CTA Section */
.vg-demo-cta-section {
  padding-bottom: var(--space-16);
}

.vg-demo-cta {
  background: var(--color-heading);
  color: #fff;
  padding: var(--space-12);
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.vg-demo-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  color: #fff;
}

.vg-demo-cta p {
  font-size: var(--fs-lg);
  opacity: 0.8;
  max-width: 50ch;
  line-height: var(--lh-relaxed);
}

/* Skeleton Loading */
.vg-skeleton {
  background: var(--color-surface);
  border-radius: 20px;
  padding: var(--space-6);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}

.vg-skeleton__thumb {
  width: 100%;
  padding-top: 56.25%;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  animation: pulse 1.5s infinite ease-in-out;
}

.vg-skeleton__text {
  height: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  animation: pulse 1.5s infinite ease-in-out;
}

.vg-skeleton__text--short {
  width: 60%;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Animations */
.vg-animate-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vg-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .vg-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vg-hero__stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  .vg-stat-divider {
    width: 100%;
    height: 1px;
  }
  .vg-channel-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }
  .vg-channel-cta__content {
    flex-direction: column;
  }
  .vg-demo-cta {
    padding: var(--space-8) var(--space-4);
  }
}
