/* style.css */
body {
  margin: 0;
  background-color: #121212;
  font-family: sans-serif;
  user-select: none;
}

.fixed-container {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  align-items: flex-start;
  padding: 0;
  max-block-size: calc(100vh - 20px);
  max-inline-size: calc(100vw - 20px);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  visibility: hidden;
}

.fixed-container.visible {
  opacity: 1;
  visibility: visible;
}

.support-button {
  display: flex;
  overflow: hidden;
  flex-direction: row-reverse;
  align-items: center;

  /* Alinhamento agora é sempre 'flex-end' para consistência */
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(var(--v-theme-primary), 1),
    rgba(var(--v-theme-primary-darken-1, var(--v-theme-secondary)), 1)
  );
  block-size: 26px;
  color: rgba(var(--v-theme-on-primary), 1);
  cursor: grab;
  inline-size: 26px;
  padding-block: 0;
  padding-inline: 14px;
  transition: inline-size 0.4s ease, border-radius 0.4s ease;
  white-space: nowrap;
}

.support-button.grabbing {
  cursor: grabbing;
}

.support-button .material-symbols-outlined {
  font-size: 24px;
  min-inline-size: 24px;
}

.button-text {
  font-size: 16px;
  font-weight: bold;
  margin-inline-end: 0;
  max-inline-size: 0;
  opacity: 0;
  transition: max-inline-size 0.4s ease 0.1s, opacity 0.3s ease 0.1s,
    margin-inline-end 0.4s ease;
}

/* ESTADO ATIVO (QUANDO CLICADO) */
.fixed-container.active .support-button {
  border-radius: 40px;
  inline-size: 120px;
}

.fixed-container.active .button-text {
  margin-inline-end: 10px;
  max-inline-size: 90px;
  opacity: 1;
}

/* MENU DE OPÇÕES */
.options-menu {
  display: none;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(var(--v-theme-surface, #2a2a2e));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 40%);
  inline-size: 340px;
  margin-inline-end: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.fixed-container.active .options-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.options-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.options-menu ul li a {
  display: block;
  border-radius: 5px;
  color: var(--v-theme-on-surface-variant, #e0e0e0);
  font-size: 15px;
  padding-block: 12px;
  padding-inline: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.options-menu ul li a:hover {
  background-color: rgba(var(--v-theme-on-surface), 0.08);
}

/* Limitações para não sair da tela quando expandido */
.fixed-container.active {
  max-block-size: calc(100vh - 20px);
  max-inline-size: calc(100vw - 20px);
}

/* Ajusta o menu quando próximo das bordas */
.fixed-container.active.near-left {
  flex-direction: row-reverse;
}

.fixed-container.active.near-left .options-menu {
  margin-inline: 15px 0;
}

.fixed-container.active.near-top .options-menu {
  transform: translateY(0);
}

.fixed-container.active.near-bottom .options-menu {
  margin-block-end: 10px;
  transform: translateY(-90%);
}
