/* ===================================================== */
/* WOLFFLIX - ESTILOS PRINCIPAIS                         */
/* ===================================================== */

/* Reset e base */
html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

/* ===================================================== */
/* SLIDESHOW - CARROSSEL DE CONTEÚDO                    */
/* ===================================================== */

.slideshow-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

@media (max-width: 768px) {
  .slideshow-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    height: 200px;
  }
}

.slideshow-images {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.slideshow-image.active {
  opacity: 1;
  z-index: 10;
}

.slideshow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================================== */
/* SEÇÃO - CONTEÚDO                                     */
/* ===================================================== */

section {
  padding: 2rem;
}

@media (max-width: 768px) {
  section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 1rem;
  }
}

section h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

section h2 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

/* Grid de conteúdo */
.grid-content {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .grid-content {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .grid-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .grid-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Card de conteúdo */
.content-card {
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
}

.content-card img {
  width: 100%;
  height: auto;
  display: block;
}

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

.content-card:hover .content-card-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.play-button {
  width: 50px;
  height: 50px;
  background: rgba(229, 9, 20, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.play-button:hover {
  background: rgba(229, 9, 20, 1);
  transform: scale(1.1);
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* ===================================================== */
/* BARRA DE PROGRESSO                                   */
/* ===================================================== */

.progress-bar {
  width: 100%;
  height: 4px;
  background: #404040;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #e50914;
  transition: width 0.3s ease;
}

.progress-text {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #b3b3b3;
}

/* ===================================================== */
/* BOTÕES                                               */
/* ===================================================== */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #e50914;
  color: #ffffff;
}

.btn-primary:hover {
  background: #b20710;
}

.btn-secondary {
  background: #404040;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #505050;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===================================================== */
/* BADGES E TAGS                                        */
/* ===================================================== */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-top10 {
  background: #e50914;
  color: #ffffff;
}

.badge-new {
  background: #404040;
  color: #ffffff;
}

/* ===================================================== */
/* ACESSIBILIDADE                                       */
/* ===================================================== */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #e50914;
  outline-offset: 2px;
}

/* Visibilidade para screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================================== */
/* ANIMAÇÕES ÚTEIS                                      */
/* ===================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-in-out;
}

/* ===================================================== */
/* UTILITÁRIOS                                          */
/* ===================================================== */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #e50914;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
