import { css } from 'lit';
export default css `
  :host {
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    box-shadow: var(--md-sys-elevation-0);
    overflow: hidden;
    border: none;
    margin: 0;
    padding: 0;

    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;

    /* Animation for popover opening/closing */
    transform: scaleY(0) translateY(-8px);
    transform-origin: top;
    opacity: 0;
    transition:
      transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
      overlay 200ms allow-discrete,
      display 200ms allow-discrete;

    font-family: var(--md-sys-typescale-body-medium-font);
    font-weight: var(--md-sys-typescale-body-medium-weight);
    font-size: var(--md-sys-typescale-body-medium-size);
    letter-spacing: var(--md-sys-typescale-body-medium-tracking);
    line-height: var(--md-sys-typescale-body-medium-height);

    --code-background-color: var(--md-sys-color-surface-container-low);
    --code-color: var(--md-sys-color-on-surface);
    --api-font-code-family: 'Roboto Mono, Consolas, Menlo, monospace';
  }

  /* Popover open state */
  :host(:popover-open) {
    display: flex;
    box-shadow: var(--md-sys-elevation-3);
    transform: scaleY(1) translateY(0);
    opacity: 1;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 12px 16px 24px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
    transition:
      border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 transparent;
  }

  /* Add subtle shadow when content is scrolled */
  :host([data-scrolled]) .header {
    border-bottom-color: var(--md-sys-color-outline, rgba(0, 0, 0, 0.3));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .header:active {
    cursor: grabbing;
  }

  .header:hover {
    background-color: var(--md-sys-color-surface-container-highest, rgba(0, 0, 0, 0.05));
  }

  .title {
    font-family: var(--md-sys-typescale-title-medium-font);
    font-weight: var(--md-sys-typescale-title-medium-weight);
    font-size: var(--md-sys-typescale-title-medium-size);
    letter-spacing: var(--md-sys-typescale-title-medium-tracking);
    line-height: var(--md-sys-typescale-title-medium-height);
  }

  .content-wrapper {
    overflow-y: auto;
    flex-grow: 1;
    position: relative;
    cursor: grab;
    /* CSS custom properties for scroll state */
    --scroll-top: 0;
    --scroll-bottom: 0;
  }

  /* Scroll shadows - show when content is scrolled */
  .content-wrapper::before,
  .content-wrapper::after {
    content: '';
    position: sticky;
    left: 0;
    right: 0;
    height: 12px;
    display: block;
    pointer-events: none;
    z-index: 1;
    transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Top scroll shadow */
  .content-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, var(--md-sys-color-surface-container-highest) 0%, transparent 100%);
    opacity: var(--scroll-top, 0);
  }

  /* Bottom scroll shadow */
  .content-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, var(--md-sys-color-surface-container-highest) 0%, transparent 100%);
    opacity: var(--scroll-bottom, 0);
    margin-top: -12px; /* Overlap with content */
  }

  .content {
    padding: 20px;
    cursor: default;
    user-select: text;
  }

  /* Only style our custom section headers (not markdown content) */
  .content > h3:not([slot='markdown-html'] *) {
    font-family: var(--md-sys-typescale-headline-small-font);
    font-weight: var(--md-sys-typescale-headline-small-weight);
    font-size: var(--md-sys-typescale-headline-small-size);
    letter-spacing: var(--md-sys-typescale-headline-small-tracking);
    line-height: var(--md-sys-typescale-headline-small-height);
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--md-sys-color-on-surface);
  }

  /* Style the Links section specifically */
  .links {
    margin-top: 20px;
  }

  .links ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
  }

  .links li {
    margin-bottom: 4px;
  }

  .links li a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .links li a:hover {
    text-decoration: underline;
  }

  /* Smooth content animation */
  .header,
  .content-wrapper {
    transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1) 50ms;
  }

  :host(:not([opened])) .header,
  :host(:not([opened])) .content-wrapper {
    opacity: 0;
    transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  [slot='markdown-html'] pre {
    border-radius: var(--md-sys-shape-corner-medium);
  }

  .content [slot='markdown-html'] code,
  .content [slot='markdown-html'] pre {
    word-break: break-word;
  }
`;
//# sourceMappingURL=help_panel.styles.js.map