/*
  ============================================================
  GRF ONBOARDING WIDGET — OVERLAY STÍLUSOK
  ============================================================
  Ez a CSS fájl a widget overlay-hez tartozó stílusokat
  tartalmazza. Az app stílusok a styles.css-ben vannak.

  FONTOS: Minden selector "grf-" prefixszel van ellátva,
  hogy ne ütközzön a meglévő oldal CSS-ével.
  ============================================================
*/

/* ── Trigger gomb ── */
.grf-trigger-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5abf35;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(90,191,53,0.4);
  transition: all 0.2s ease;
}
.grf-trigger-btn:hover {
  background: #3d9e1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(90,191,53,0.5);
}
.grf-trigger-btn.grf-hidden {
  display: none;
}
.grf-trigger-icon {
  font-size: 1.1rem;
}

/* ── Overlay háttér ── */
.grf-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  right: -500px;
}
.grf-overlay.grf-open {
  opacity: 1;
  pointer-events: all;
  right: 0px;
}

/* ── Panel ── */
.grf-panel {
  position: relative;
  width: 480px;
  max-width: 100vw;
  height: 100%;
/*  background: var(--bg, #f5f7f4);*/
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
/*  box-shadow: -4px 0 32px rgba(0,0,0,0.15);*/
}
.grf-overlay.grf-open .grf-panel {
  transform: translateX(0);
}

/* ── Panel bezáró gomb ── */
.grf-panel-close {
  position: absolute;
  top: 70px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.8);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.grf-panel-close:hover {
  background: rgba(255,255,255,0.35);
}

/* ── Az intro és chat screen töltsék ki a panelt ── */
.grf-panel #intro-screen {
  flex: 1;
  overflow-y: auto;
  padding: 24px 18px;
  margin-top: 60px;
  box-sizing: border-box;
    background: var(--bg, #f5f7f4);
}
.grf-panel #chat-screen {
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface, #fff);
  margin-top: 60px;
    background: var(--bg, #f5f7f4);
}
.grf-panel #quiz-screen {
  flex: 1;
}
.grf-panel #congrats-screen {
  flex: 1;
}

/* ── Reszponzivitás mobilon ── */
@media (max-width: 520px) {
  .grf-panel {
    width: 100vw;
  }
  .grf-trigger-btn {
    bottom: 16px;
    right: 16px;
  }
}
