/* Expandable ID Slide-Down Panel
   ------------------------------------------------
   By default, it's collapsed (max-height: 0) and
   pushes content down in normal flow when open.
   Based on LittleLink Extended sensitive-content module.
*/

/* 1) Container */
.id-container {
  margin: 0;
}

/* 2) The slide-down panel starts collapsed */
.id-panel {
  margin-top: -1rem;
  margin-bottom: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border: none;
  border-radius: 0.5rem;
}

/* 3) When open, show border and expand */
.id-panel.open {
  max-height: 300px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
}

/* 4) The panel's content area */
.id-panel__content {
  position: relative;
  background-color: #fff;
  color: #000;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
}

.hover-text {
  color: white;
}

/* Basic spacing inside the panel */
.id-panel__content p {
  margin: 0.5rem 0;
}

/* ID value display */
.id-panel__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  margin: 0.75rem 0;
  user-select: all;
}

/* Copy button - uses standard button styling */
.id-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #2457F5;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: filter 0.2s ease;
  margin-top: 0.5rem;
}

.id-copy:hover {
  filter: brightness(90%);
}

/* Copied state */
.id-copy.copied {
  background-color: #4CAF50;
}

/* ------------------------------------
   Dark theme support (forced .theme-dark)
   ------------------------------------ */
:root.theme-dark .id-panel__content {
  background-color: #121212;
  color: #ffffff;
}

:root.theme-dark .id-panel.open {
  border-color: #444;
}

:root.theme-dark .id-panel__value {
  color: #7983F5;
}

/* ------------------------------------
   Auto theme support (.theme-auto):
   Light by default, switch on system dark
   ------------------------------------ */
:root.theme-auto .id-panel__content {
  background-color: #fff;
  color: #000;
}

@media (prefers-color-scheme: dark) {
  :root.theme-auto .id-panel__content {
    background-color: #121212;
    color: #ffffff;
  }
  :root.theme-auto .id-panel.open {
    border-color: #444;
  }
  :root.theme-auto .id-panel__value {
    color: #7983F5;
  }
}
