/* Custom CSS overrides for robertmelton.com */

/* Fix logo text wrapping on mobile - prevent vertical stacking */
.logo {
  white-space: nowrap;
  overflow: visible;
}

/* Ensure header logo container doesn't force wrapping */
.header__logo {
  overflow: visible;
}

/* Make sure the logo link doesn't force narrow width on mobile */
.header__logo a {
  white-space: nowrap;
}

/* Mobile responsive layout - stack elements vertically on small screens */
@media (max-width: 768px) {
  /* Stack header elements vertically */
  .header__inner {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  /* Make logo full width on mobile */
  .header__logo {
    width: 100%;
    justify-content: flex-start;
  }

  /* Remove the decorative line after logo on mobile */
  .header__logo::after {
    display: none;
  }

  /* Make search full width on mobile */
  #search {
    width: 100%;
    min-width: unset !important;
    margin-right: 0 !important;
  }

  /* Ensure search input takes full width */
  .pagefind-ui__search-input {
    width: 100% !important;
  }

  /* Make search results dropdown full width on mobile */
  .pagefind-ui__drawer {
    min-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Audio player: stack elements vertically on mobile */
  .audio-player > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .audio-player > div:first-child > div {
    max-width: 100% !important;
    width: 100% !important;
  }

  .audio-player button {
    width: 100%;
  }
}
