/* Estilos específicos para a página Explorar */

/* Estilos para a seção de Tendências */
.trending-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff0000, #ff3a7f);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 77, 141, 0.3);
  animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.trending-title {
  color: #ff0000;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ff0000, #ff3a7f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trending-badge {
  background: linear-gradient(135deg, #ff0000, #ff3a7f);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 77, 141, 0.3);
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-width: fit-content;
}

.trending-container {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.05), rgba(255, 58, 127, 0.05));
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 77, 141, 0.1);
  position: relative;
  overflow: hidden;
}

.trending-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0000, #ff3a7f, #ff0000);
  background-size: 200% 100%;
  animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .trending-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trending-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #ff0000;
}

.trending-loading .spinner-border {
  color: #ff0000;
  width: 3rem;
  height: 3rem;
}

.trending-card {
  background: linear-gradient(135deg, #1e1e1e, #252525);
  border-radius: 24px;
  padding: 0;
  border: 1px solid rgba(255, 77, 141, 0.15);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.trending-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 77, 141, 0.2);
  border-color: rgba(255, 77, 141, 0.3);
}

.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ff3a7f);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trending-card:hover::before {
  opacity: 1;
}

.trending-card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 77, 141, 0.12);
}

.trending-card-body {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.trending-card-footer {
  padding: 16px 24px;
  background: rgba(255, 77, 141, 0.08);
  border-top: 1px solid rgba(255, 77, 141, 0.12);
  margin-top: auto;
}

.trending-user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trending-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trending-follow-btn {
  background: linear-gradient(135deg, #ff0000, #ff3a7f);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-follow-btn:hover {
  background: linear-gradient(135deg, #ff3a7f, #ff0000);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.4);
}

.trending-follow-btn.following {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.trending-rank {
  display: flex;
  align-items: center;
}

.trending-position {
  background: linear-gradient(135deg, #ff4d8d, #ff3a7f);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.trending-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-right: 12px;
  border: 2px solid rgba(255, 77, 141, 0.2);
}

.trending-user-name {
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  font-size: 0.95rem;
}

.trending-user-handle {
  color: #888;
  font-size: 0.8rem;
  margin: 0;
}

.trending-content-preview {
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0;
  position: relative;
  background: #000;
}

.trending-content-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trending-card:hover .trending-content-preview img {
  transform: scale(1.05);
}

.trending-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.trending-description {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
  color: #888;
  flex-shrink: 0;
  min-width: fit-content;
}

.trending-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-view-btn {
  background: linear-gradient(135deg, #dc3545, #dc3545);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(255, 77, 141, 0.3);
  text-decoration: none;
}

.trending-view-btn:hover {
  background: linear-gradient(135deg, #dc3545, #dc3545);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.5);
  letter-spacing: 0.8px;
}

.trending-view-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.4);
}

/* Responsividade para seção de tendências */
@media (max-width: 768px) {
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }
  
  .trending-stats {
    align-self: flex-end;
    font-size: 0.75rem;
    gap: 10px;
  }
  
  .trending-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Estilo para a barra de busca */
.search-container .input-group {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #2a2a2a;
  transition: all 0.3s ease;
}

.search-container .input-group:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.search-container .input-group-text,
.search-container .form-control {
  background-color: #2a2a2a;
  border-color: #333;
  color: #fff;
  font-size: 1.05rem;
  padding: 12px 15px;
}

.search-container .form-control:focus {
  box-shadow: none;
  border-color: #ff0000;
  background-color: #2a2a2a;
}

.search-container .form-control::placeholder {
  color: #aaa;
  font-style: italic;
}

.btn-search {
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 0 25px 25px 0;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background-color: #ff4d8d;
  color: white;
  transform: translateX(2px);
}

/* Botões de filtro estilo pílula */
.btn-pill {
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-pill:hover {
  background-color: rgba(255, 77, 141, 0.15);
  color: #ff0000;
  transform: translateY(-2px);
}

.btn-pill.active {
  background-color: rgba(255, 77, 141, 0.2);
  color: #ff4d8d;
  font-weight: 600;
}

.content-explorer-posts{
  max-width: 700px;
  margin: 0 auto;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  /* Botões pill - ajustes para mobile */
  .btn-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    margin: 2px;
  }
  
  /* Container dos botões de filtro */
  .d-flex.flex-wrap.gap-2 {
    justify-content: center;
    gap: 8px !important;
  }
  
  /* Barra de busca em mobile */
  .search-container .input-group {
    margin-bottom: 15px;
  }
  
  .search-container .form-control {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  
  .btn-search {
    padding: 0 15px;
  }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
  /* Botões pill ainda menores */
  .btn-pill {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin: 1px;
  }
  
  /* Barra de busca em telas muito pequenas */
  .search-container .form-control {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  
  .btn-search {
    padding: 0 12px;
    font-size: 0.85rem;
  }
  
  /* Container dos filtros */
  .d-flex.flex-wrap.gap-2 {
    gap: 4px !important;
  }
}