/* ================================
   Speaker Page Styles
   ================================ */

/* Navigation */
.speaker-nav {
  padding: var(--space-lg);
  position: relative;
  z-index: var(--z-above);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.back-link:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(99, 102, 241, 0.1);
}

/* Hero */
.speaker-hero {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg) var(--space-4xl);
  max-width: 800px;
  margin: 0 auto;
}

.speaker-hero__title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-lg);
  animation: fadeInUp var(--duration-slower) var(--ease-out) forwards;
}

.speaker-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.6;
  animation: fadeInUp var(--duration-slower) var(--ease-out) 0.2s forwards;
  opacity: 0;
}

/* Gallery - Masonry Style */
.speaker-gallery {
  padding: 0 var(--space-lg) var(--space-4xl);
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-masonry {
  columns: 4;
  column-gap: var(--space-md);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  animation: fadeInUp var(--duration-slower) var(--ease-out) forwards;
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter var(--duration-normal) var(--ease-out);
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

/* Random rotations for "wild" look */
.gallery-item:nth-child(3n+1) {
  transform: rotate(-1deg);
}

.gallery-item:nth-child(3n+2) {
  transform: rotate(0.5deg);
}

.gallery-item:nth-child(3n) {
  transform: rotate(1deg);
}

.gallery-item:nth-child(3n+1):hover,
.gallery-item:nth-child(3n+2):hover,
.gallery-item:nth-child(3n):hover {
  transform: rotate(0) scale(1.02);
}

/* Placeholder */
.gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl);
  color: var(--color-text-muted);
}

.gallery-placeholder code {
  background: var(--color-bg-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* CTA */
.speaker-cta {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-4xl);
}

.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
}

.cta-box h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.cta-box p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

/* Footer */
.speaker-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.speaker-footer a {
  color: var(--color-text-muted);
}

.speaker-footer a:hover {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1200px) {
  .gallery-masonry {
    columns: 3;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    columns: 2;
  }
  
  .speaker-hero__title {
    font-size: var(--text-4xl);
  }
  
  .speaker-footer {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 1;
  }
}

