/* ===== PÁGINA DE VÍDEOS ===== */

/* Seção de Busca e Filtros */
.videos-search-section {
  background: #09101c;
  padding: 60px 0 40px 0;
  border-bottom: none;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.videos-search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,70,6,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,70,6,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,70,6,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,70,6,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,70,6,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.videos-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.videos-page-title {
  color: #fff;
  font-family: 'Boldonse', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 40px 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.videos-page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff4606;
  border-radius: 2px;
}

/* Barra de busca */
.search-container {
  margin-bottom: 40px;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 55px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: #666;
}

.search-input:focus {
  outline: none;
  border-color: #ff4606;
  box-shadow: 0 0 0 3px rgba(255, 70, 6, 0.2), 0 8px 32px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.search-clear-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-clear-btn:hover {
  background: #f5f5f5;
  color: #333;
}

/* Filtros */
.filters-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-title {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #ff4606;
  color: #ff4606;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
  background: #ff4606;
  border-color: #ff4606;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 70, 6, 0.3);
}

/* Resultados da busca */
.search-results {
  text-align: center;
  margin-bottom: 20px;
}

.search-results-text {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Seção de Cards de Vídeos */
.videos-cards-section {
  background-color: #fff;
  padding: 40px 0 60px 0;
}

.videos-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

/* Card de vídeo */
.video-card {
  background: #fff;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 2px 20px 0 rgba(9, 16, 28, 0.04);
  border-radius: 0px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px 0 rgba(9, 16, 28, 0.08);
}

.video-card-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0px;
}

.video-card-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-card:hover .video-card-image {
  transform: scale(1.05);
}

.video-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
  border-radius: 3px;
  border: 1px solid #000;
}

.video-badge-blue,
.video-badge-pink,
.video-badge-green,
.video-badge-purple,
.video-badge-orange,
.video-badge-teal,
.video-badge-red {
  background: #a4e5ff;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.video-card-content {
  padding: 12px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.video-card-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.55;
  transition: text-decoration 0.3s ease;
}

.video-card-title:hover {
  text-decoration: underline;
}

.video-card-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #000;
  margin-bottom: 8px;
  font-style: italic;
}

.author-name {
  text-decoration: underline;
}

.video-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.video-duration {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.video-views {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #666;
}

/* Estados de filtro */
.video-card.hidden {
  display: none;
}

/* Responsividade */
@media (max-width: 1024px) {
  .videos-grid {
    gap: 1rem;
  }
}

@media (max-width: 980px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .videos-search-section {
    padding: 40px 0 30px 0;
    margin-top: 60px;
  }

  .videos-page-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .filters-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .filter-buttons {
    justify-content: center;
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .video-card-content {
    padding: 12px;
  }

  .video-card-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .videos-search-container {
    padding: 0 16px;
  }

  .videos-cards-container {
    padding: 0 16px;
  }

  .videos-page-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .search-input {
    padding: 14px 18px 14px 50px;
    font-size: 14px;
  }

  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-card-content {
    padding: 12px;
  }

  .video-card-title {
    font-size: 0.875rem;
  }

  .video-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ===== ESTADOS DE CARREGAMENTO ===== */

.loading-state,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #666;
  grid-column: 1 / -1;
}

.loading-state i,
.error-state i,
.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #007bff;
}

.error-state i {
  color: #dc3545;
}

.empty-state i {
  color: #6c757d;
}

.loading-state i.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-state span,
.error-state span,
.empty-state span {
  font-size: 1.1rem;
  font-weight: 500;
}
