/* ── PANEL STAGE ──────────────────────────────── */

.panels-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 8px 20px 28px;
  flex: 1;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 172px);
  grid-template-rows: repeat(2, 172px);
  gap: 14px;
}

/* ── PANEL ALAP ───────────────────────────────── */
.panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* Beúszó animáció kezdeti állapot */
  opacity: 0;
  transform: translateY(24px);
  transition:
    background    0.22s ease,
    border-color  0.22s ease,
    transform     0.18s ease,
    box-shadow    0.22s ease,
    opacity       0.4s ease;
}

/* Betöltés után látható állapot */
.panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PIROS KERET EFFEKT ────────────────────────── */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}

/* ── HOVER ─────────────────────────────────────── */
.panel:hover {
  background: var(--glass-hover);
  border-color: var(--border-red);
  transform: translateY(-5px) scale(1.04);
  box-shadow:
    0 14px 36px rgba(0,0,0,0.5),
    0 0 24px rgba(200,16,46,0.18);
}

.panel:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ── KATTINTÁS (ripple) ────────────────────────── */
.panel__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200,16,46,0.35);
  transform: scale(0);
  animation: rippleOut 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* ── IKON ──────────────────────────────────────── */
.panel__ico {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(200,16,46,0.3));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.panel:hover .panel__ico {
  transform: scale(1.2) translateY(-3px);
  filter: drop-shadow(0 0 14px rgba(200,16,46,0.7));
}

/* ── FELIRAT ───────────────────────────────────── */
.panel__name {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  padding: 0 12px;
  transition: color 0.15s;
}

/* ── MEGNYITÁS FELIRAT ─────────────────────────── */
.panel__cta {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}

.panel:hover .panel__cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── ÉLŐJELZŐ BADGE (Gyorsszolgálat) ──────────── */
.panel__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46,204,113,0.5);
  animation: badgePulse 2.2s infinite;
}

@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* ── RESZPONZÍV ────────────────────────────────── */
@media (max-width: 600px) {
  .panels-grid {
    grid-template-columns: repeat(2, 148px);
    grid-template-rows: repeat(3, 148px);
    gap: 10px;
  }

  .panel__ico { font-size: 32px; }
  .panel__name { font-size: 13px; }
}

@media (max-width: 360px) {
  .panels-grid {
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: repeat(3, 130px);
    gap: 8px;
  }
}
