/* ===================================
   TELEHOME - VIDEO SECTION STYLES
   Seção de vídeo de demonstração
   =================================== */

.video-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.video-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 110, 66, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

.video-container {
  position: relative;
  z-index: 1;
}

.video-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.video-header h2 {
  color: var(--accent);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 24px rgba(0, 212, 170, 0.25);
  letter-spacing: -0.02em;
}

.video-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* Video Player */
.video-player {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 212, 170, 0.25),
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(0, 212, 170, 0.08);
  animation: fadeIn 0.8s ease-out;
}

.video-caption {
  margin: 0;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(15, 40, 24, 0.5) 100%);
  border-top: 1px solid rgba(0, 212, 170, 0.15);
  line-height: 1.5;
}

.video-caption code {
  font-size: 0.8em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent-light);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050d08;
  border-radius: var(--radius-lg);
}

/* Video Placeholder */
.video-placeholder {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(45, 110, 66, 0.2));
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--accent);
  overflow: hidden;
}

.video-placeholder-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.video-play-button {
  width: 100px;
  height: 100px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
  animation: pulse-play 2s ease-in-out infinite;
}

.video-play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 212, 170, 0.5);
}

.video-play-button::after {
  content: '▶';
  font-size: 40px;
  color: var(--primary-dark);
  margin-left: 4px;
}

.video-placeholder-text {
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.video-placeholder-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-sm);
}

/* Video Features */
.video-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
}

.video-feature {
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.video-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.video-feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.video-feature h4 {
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

.video-feature p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Video Controls */
.video-controls {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  margin-top: var(--spacing-2xl);
  flex-wrap: wrap;
}

.video-control-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.video-control-btn:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.video-control-btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* Video Timeline */
.video-timeline {
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item {
  margin-bottom: var(--spacing-xl);
  padding-left: var(--spacing-2xl);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--primary-dark);
}

.timeline-time {
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.timeline-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsivo */
@media (max-width: 768px) {
  .video-section {
    padding: var(--spacing-2xl) 0;
  }

  .video-header h2 {
    font-size: var(--font-size-2xl);
  }

  .video-features {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .video-control-btn {
    flex: 1;
    min-width: 150px;
  }

  .video-controls {
    flex-direction: column;
  }
}

/* Animações */
@keyframes pulse-play {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
  }
  50% {
    box-shadow: 0 10px 50px rgba(0, 212, 170, 0.6);
  }
}

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