/* ===== Háttér: fekete alap + optimalizált sötétkék fényfoltok ===== */

.background {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: -1;
}

.background::before,
.background::after {
  content: "";
  position: absolute;
  width: 750px;   /* kicsit kisebb, gyorsabb */
  height: 750px;
  background: radial-gradient(circle, rgba(0, 80, 200, 0.28), transparent 70%);
  filter: blur(70px); /* sokkal gyorsabb */
  animation: float 10s infinite alternate ease-in-out;
}

/* első folt */
.background::before {
  top: -200px;
  left: -200px;
}

/* második folt */
.background::after {
  bottom: -200px;
  right: -200px;
  animation-duration: 13s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, -140px) scale(1.1); }
}

/* ===== Alap beállítások ===== */

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: #e5e7eb;
}

/* ===== Fejléc ===== */

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
}

header p {
  margin: 0;
  color: #9ca3af;
}

/* ===== Vissza gomb ===== */

.back-btn {
  display: inline-block;
  margin: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: 0.2s;
}

.back-btn:hover {
  background: rgba(255,255,255,0.12);
}

/* ===== Főoldal: kategória gombok ===== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.card {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 600;

  /* gyorsabb üveg-hatás blur nélkül */
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.03);

  transition: 0.25s;
  font-size: 1.15rem;
}

.card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 25px rgba(99,102,241,0.8), 0 0 40px rgba(37,99,235,0.7);
  border-color: #6366f1;
}

/* ===== Kereső oldal ===== */

.search-box {
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

input {
  width: 80%;
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
}

input::placeholder {
  color: #9ca3af;
}

button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #6366f1;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #4f46e5;
  box-shadow: 0 0 15px rgba(129,140,248,0.9);
}

/* ===== Eredmény doboz ===== */

.result-box {
  margin-top: 2rem;
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ===== Reszponzív ===== */

@media (max-width: 800px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  input {
    width: 100%;
  }
}
.title-box {
  display: inline-block;
  margin: 1rem auto 2rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 15px #3b82f6, 0 0 30px #1e40af;
}

