
/* ====================================
   🐝 BeeAi Final Layout CSS – STEP 2 (vizuális fixek 2.2)
   ==================================== */

:root {
  --main-max-width: 1300px;
  --header-height: 64px;
  --footer-height: 38px;
  --command-height: 60px;
  --radius: 12px;
  --font: 'Poppins', sans-serif;
  --font-size-normal: 0.75rem;
  --font-size-small: 0.55rem;
  --shadow: 0 4px 12px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  max-width: var(--main-max-width);
  height: var(--header-height);
  background: var(--bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 10;
}

  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}

  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

  color: black;
  text-decoration: none;
  font-weight: 600;
}

  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-height: 75vh; /* 💡 kulcs: ne fusson túl */
  overflow-y: auto;  /* 💡 kulcs: ha túl magas, görgethető legyen */
  z-index: 20;
  padding: 0.5rem;
  font-size: var(--font-size-small);
  line-height: 1.4;
  overflow-y: auto;
  scrollbar-width: thin;
}

  display: none !important;
}

  width: 6px;
}
}
  border-radius: 6px;
}


/* ===== MAIN ZÓNA ===== */
main {
  width: 100%;
  max-width: var(--main-max-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: auto;
  position: relative;
  padding: 0 1rem;
  padding-bottom: calc(var(--command-height) + var(--footer-height));
}

/* === VISUAL ZÓNA === */
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

  margin-top: 0.5rem;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-height: 32vh;
  padding-bottom: 1rem;
  z-index: 
  overflow-y: auto;
}

  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
  background: transparent;
}

img.visualization-image,
img[src*="beeai"],
  width: 270px;
  height: 180px;
  object-fit: **cover**;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
}

/* ===== Tip Bar ===== */
  width: 100%;
  max-width: 1000px;
  margin: 16px auto;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  position: relative;
  margin-top: 8px;
  margin-bottom: 12px;
}

  display: none;
}

  margin-right: 24px;
  display: inline-block;
  white-space: nowrap;
}

  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 60s linear infinite;
  font-family: 'Poppins', sans-serif;
  font-size: var(--font-size-small);
  position: absolute;
  top: 0;
  left: 100%;
  height: 24px;
  line-height: 24px;
  will-change: transform;
  animation-play-state: running;
  cursor: pointer;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  max-width: var(--main-max-width);
  height: var(--footer-height);
  background: var(--bg);
  text-align: center;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  z-index: 5;
}

/* ====== MEDIA QUERIES ====== */

    font-size: 1.2rem;
  }
}


    font-size: 20px;
  }

    font-size: 0.9rem;
  }


    font-size: 0.9rem;
  }

  .menu-section h3 {
    font-size: 0.75rem;
  }

    font-size: var(--font-size-small);
    padding: 5px 8px;
  }
    font-size: 13px;
    padding: 8px 12px;
  }
}


/* ===== UTILITY CLASSES ===== */
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* ===== MODAL ===== */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

  display: none !important;
}

  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 26px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.2s ease;
}

  background: rgba(0, 0, 0, 0.85);
}

/* ===== CHATBOX POZÍCIÓK ===== */

  width: 90%;
  max-width: 700px;
  margin: 0.5rem auto;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.5rem;
  max-height: 25vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

  position: fixed;
  bottom: var(--footer-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 100;
}


  max-width: 90%;
  word-wrap: break-word;
  display: flex;
}

  justify-content: flex-start;

}

  justify-content: flex-end;
  align-self: flex-end;
}

  font-size: 0.75rem; /* vagy amit szeretnél */
}

  max-width: 700px;
  font-size: var(--font-size-normal);
  line-height: 1.4;
  word-wrap: break-word;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

  text-align: left;
}

  padding: 0.5rem 1rem;
  border-radius: 8px;
  max-width: 70%;
  text-align: left;
}

  display: flex;
  justify-content: flex-start;  /* balra zárt */
  margin: 0.5rem 0;
  animation: fadePulse 1.5s ease-in-out infinite;
}

  padding: 10px 14px;
  border-radius: 18px;
  display: inline-block;
  font-size: 0.95rem;
  max-width: 80%;
  line-height: 1.4;
}

@keyframes fadePulse {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}

input,
button {
  font-size: var(--font-size-small);
}

  flex: 1;
  min-width: 240px;
  max-width: 600px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: var(--font-size-normal);
  outline: none;
  transition: box-shadow 0.2s ease;
}

}

  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

}

  font-size: 1.4rem;
}

  margin: 4px 4px 0 0;
  padding: 6px 12px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
}

/* === TOOLTIP === */
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0.9;
  pointer-events: none;
}

/* ===== TOOLTIP STÍLUS ===== */

  position: relative;
}

  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* Az elem fölé helyezzük */
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  pointer-events: none;
}

/* Kis háromszög alul */
  content: "";
  position: absolute;
  bottom: 160%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  z-index: 9998;
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
  pointer-events: none;
}

/* Fade + slide animáció */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== THINKING MEGJELENÉS ===== */

  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: var(--font-size-small);
  max-width: 60%;
  margin: 0.25rem auto 0.75rem;
  line-height: 1.3;
}

  font-weight: 500;
  font-style: italic;
  font-size: 0.85rem;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* ===== MENÜ FORMÁZÁSA ===== */

  font-weight: bold;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.25rem;
  padding: 4px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  cursor: pointer;
  user-select: none;
}

  display: none;
  padding-left: 0.5rem;
  margin-top: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

  display: block;
  max-height: 500px; 
  opacity: 1;
}

  display: inline-block;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.menu-section h3 {
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0.5rem 0 0.25rem;
  padding: 4px 8px;
}

  list-style: none;
  padding-left: 0;
  margin: 0;
}

  padding: 6px 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}


  min-width: 20px;
  text-align: center;
}

  transition: background 0.2s ease;
}
.menu-section h3 {
  font-weight: bold;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.25rem;
  padding: 4px 8px;
  position: sticky; /* 💡 ha akarod: ragadjon fentebb scrollnál */
  top: 0;
  z-index: 1;
}

/* ===== DETAILS-TABLE FORMÁZÁSA ===== */

  font-size: var(--font-size-small);
  margin: 12px auto 0 auto; /* kicsi térköz fentről, középre igazítás */
  max-width: none;
  width: 270px;
  height: 180px;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  overflow-y: auto;
}

  font-weight: bold;
  padding-right: 0.5rem;
}

}

  padding: 2px 6px;
  font-size: var(--font-size-small);
  vertical-align: top;
  max-width: 100%;
  overflow-wrap: break-word;
}

}

  border-bottom: none;
}

  font-weight: 600;
  width: 50%;
}

}

  display: none;
}

  max-height: 32vh;
  overflow-y: auto;
  margin-top: 8px;
  padding: 10px;
}

  max-width: 600px;
  margin: 1rem auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== VIP OVERLAY FORMÁZÁSA ===== */

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 215, 0, 0.06); /* halvány arany */
  pointer-events: none;
  z-index: 1;
}

/* ===== GOMB AKTIVÁLÁS EFFEKT ===== */

  animation: shakeOnce 0.4s ease;
  transition: filter 0.6s ease;
  filter: brightness(1.05);
}

@keyframes shakeOnce {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-2px); }
  50%  { transform: translateX(2px); }
  75%  { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

  opacity: 0.3;
  cursor: default;
}

/* ===== MSG STYLE ===== */

  font-size: var(--font-size-normal);
  font-weight: 500;
  margin: 10px auto;
  text-align: center;
}