/* ==========================================================================
   Livewire - extras: header nav, native audio player, section pages.
   Loaded after main.css. Safe to keep your own tweaks in main.css.
   ========================================================================== */

/* ---------- Header layout: [logo]  [nav links]  [Join Us] ---------- */
.header-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.nav-links { gap: 1.25rem; }
.nav-links a { padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a[aria-current] { border-bottom-color: var(--pulse); }
.site-nav .btn { white-space: nowrap; }

/* ---------- Mobile / tablet: nav collapses into the menu button ---------- */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem 20px 1.5rem; background: var(--midnight); border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: .25rem; }
  .nav-links a { display: block; padding: .6rem 0; }
  .site-nav .btn { align-self: flex-start; }

}

/* ---------- Native audio player on artist pages ---------- */
.music-audio { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.music-audio audio { width: 100%; margin-top: .5rem; }
.music-item .music-audio + .music-buy { margin-top: .5rem; }

/* ---------- Section landing pages ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.category-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; }
.category-card h3 { margin-bottom: .25rem; }
.category-card p { margin: 0; color: var(--ink-soft); }
.notify-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--midnight); color: var(--white); }
.notify-card h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.notify-card p { margin: 0; color: rgba(255,255,255,.75); }

/* ---- Header: log in button + signed-in menu (global, every page) ---- */
.nav-auth { display: flex; align-items: center; gap: .75rem; }
.nav-login { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.1rem; border-radius: 999px; background: #fff; color: #000; font: 700 .92rem var(--font-body); text-decoration: none; line-height: 1.2; border: 2px solid #fff; transition: transform .15s ease, box-shadow .15s ease; }
.nav-login:hover { color: #000; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,255,255,.18); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font: 600 .92rem var(--font-body); white-space: nowrap; user-select: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: rgba(255,255,255,.16); }
.user-menu .dot { width: .6rem; height: .6rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); flex: none; }
.user-menu .label { color: rgba(255,255,255,.65); font-weight: 500; }
.user-menu .caret { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; transition: transform .15s ease; }
.user-menu[open] .caret { transform: rotate(-135deg) translateY(-2px); }
.user-menu-list { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 190px; margin: 0; padding: .4rem; list-style: none; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 14px 38px rgba(9,13,21,.28); z-index: 60; }
.user-menu-list a, .user-menu-list button { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: .6rem .75rem; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 .95rem var(--font-body); text-decoration: none; text-align: left; cursor: pointer; }
.user-menu-list a:hover, .user-menu-list button:hover { background: var(--grey-100); color: var(--ink); }
.user-menu-list .sep { height: 1px; margin: .35rem .25rem; background: var(--line); }
.user-menu-list form { margin: 0; }
.badge { display: inline-block; min-width: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--pulse); color: #fff; font-size: .75rem; line-height: 1.25rem; text-align: center; }
.user-menu summary .badge { margin-left: .1rem; }

@media (max-width: 820px) {
  .nav-auth { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .75rem; }
  .nav-login { width: auto; }
  .user-menu summary { justify-content: flex-end; }
  .user-menu-list { position: static; margin-top: .4rem; box-shadow: none; text-align: left; }
}

/* Flash message */
.flash-wrap { padding-top: 1rem; }
.flash { margin: 0; padding: .75rem 1rem; border-radius: var(--radius); background: #ecfdf3; border: 1px solid #a7e3bf; color: #14532d; font-weight: 600; }

/* Venue profile: hours and links */
.aside-link { color: var(--electric); text-decoration: none; font-weight: 600; }
.aside-link:hover { text-decoration: underline; }
.hours { list-style: none; margin: .5rem 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.hours li:last-child { border-bottom: 0; }
.hours li.is-closed { color: var(--ink-soft); }

/* Unread badge: honour the hidden attribute (the .badge display rule would otherwise win) */
.badge[hidden] { display: none; }
