/* SoundMuse — minimal custom styles (Tailwind CDN handles most) */

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Google Sign-In button (official material styling) */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  border-radius: 20px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
  display: inline-flex;
  align-items: center;
}
.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}
.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}
.gsi-material-button .gsi-material-button-contents {
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.gsi-material-button .gsi-material-button-state {
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #001d35;
  opacity: 12%;
}
.gsi-material-button:not(:disabled):hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}
.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #001d35;
  opacity: 8%;
}

/* Fraunces editorial font */
.font-fraunces {
    font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
    font-feature-settings: 'opsz' 24, 'ss01';
    letter-spacing: -0.01em;
}

/* WaveSurfer container */
.waveform-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Language switcher — wrapper-pattern with CSS triangle chevron because
   macOS browsers leak the native chevron through `appearance: none`.
   Same pattern as the marketing site for visual consistency. */
.lang-switch-wrap {
    position: relative;
    display: inline-block;
}
.lang-switch-wrap::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 50%;
    margin-top: -2px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
}
.lang-switch {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 4px 22px 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-indent: 0.01px;
    text-overflow: '';
    transition: border-color 0.15s, color 0.15s;
}
.lang-switch:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}
.lang-switch:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.5);
}
.lang-switch option {
    background: #0a0a0a;
    color: #f3f4f6;
}
