@import url('/default/style.css');

/* FUNDO CÓSMICO */
    body {
      background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
      min-height: 100vh;
      color: var(--text-light);
      position: relative;
      overflow-x: hidden;
    }

    /* BARRA DE PESQUISA */
    .search-container {
      max-width: 600px;
      margin: 100px auto 30px;
      padding: 0 20px;
      position: relative;
    }

    .input-search {
      width: 100%;
      padding: 15px 20px 15px 50px;
      border: 1px solid var(--secondary-color);
      border-radius: 30px;
      background: rgba(0, 79, 110, 0.7);
      color: white;
      font-size: 1rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
    }

    .input-search:focus {
      outline: none;
      border-color: var(--highlight-color);
      box-shadow: 0 0 20px rgba(192, 128, 129, 0.5);
    }

    .search-container::before {
      content: "🔍";
      position: absolute;
      left: 35px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.2rem;
      color: var(--secondary-color);
      z-index: 2;
    }

    /* GRADE DE PERSONAGENS */
    .character-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }

    /* CARDS DE PERSONAGEM */
   /* Adicione ao personagens.css */
.character-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.character-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.character-card:hover::before {
  opacity: 1;
}

.character-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 30px rgba(212, 160, 23, 0.4);
}

.character-name {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

    .character-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-bottom: 2px solid var(--highlight-color);
    }

    .character-info {
      padding: 15px;
    }

    .character-name {
      color: var(--highlight-color);
      margin-bottom: 8px;
      font-size: 1.3rem;
    }

    .character-meta {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }

    .character-meta span {
      background: rgba(0, 0, 0, 0.2);
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 0.8rem;
    }

    /* EFEITOS CÓSMICOS */
    .cosmic-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      pointer-events: none;
    }

    .star {
      position: absolute;
      background: white;
      border-radius: 50%;
      animation: twinkle 5s infinite alternate;
    }

    @keyframes twinkle {
      0%, 100% { opacity: 0.3; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.2); }
    }

    /* RESPONSIVIDADE */
    @media (max-width: 768px) {
      .character-grid {
        grid-template-columns: 1fr;
        padding: 10px;
      }
      
      .search-container {
        margin-top: 80px;
      }
    }

    .no-results {
  grid-column: 1 / -1; /* Ocupa todas as colunas do grid */
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px; /* Altura mínima para melhor visualização */
  background: rgba(0, 79, 110, 0.3);
  border-radius: 12px;
  border: 1px dashed var(--secondary-color);
  margin: 20px;
}

.no-results::before {
  content: "✖";
  font-size: 2.5rem;
  color: var(--highlight-color);
  margin-bottom: 15px;
  display: block;
}