/* ==========================================================================
   Shared header + footer for every public event page
   (resources/views/partials/site-header.blade.php, site-footer.blade.php).
   Self-contained: own class names (sh-), own font, colours from the event theme.
   ========================================================================== */

.sh-header, .sh-footer {
    --sh-primary: var(--theme-primary, #1e3a8a);
    --sh-dark: var(--theme-dark, #0f1e45);
    --sh-accent: var(--theme-accent, #c8294c);
    --sh-soft: var(--theme-soft, #eef1f8);
    --sh-text: #1a1f36;
    --sh-muted: #64748b;
    --sh-border: #e5e9f2;
    font-family: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}
.sh-header *, .sh-footer * { box-sizing: border-box; }
.sh-container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.sh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---------- Header ---------- */
.sh-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--sh-border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .2s ease; }
.sh-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 30, 69, .08); }
.sh-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.sh-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; max-width: 320px; margin-right: 8px; text-decoration: none !important; color: var(--sh-text); }
.sh-brand__logo { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--sh-border); padding: 4px; }
.sh-brand__copy { display: grid; min-width: 0; line-height: 1.2; }
.sh-brand__copy strong { font-size: 1.02rem; font-weight: 800; color: var(--sh-dark); letter-spacing: -.01em; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-brand__copy small { font-size: .78rem; color: var(--sh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.sh-menu { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; justify-content: flex-end; }
.sh-nav { display: flex; align-items: center; gap: 2px; }
.sh-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent;
    color: #334155 !important; font: inherit; font-size: .95rem; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s; }
.sh-link:hover { background: var(--sh-soft); color: var(--sh-primary) !important; }
.sh-link.is-active { background: var(--sh-soft); color: var(--sh-primary) !important; }
.sh-link .fa-chevron-down { font-size: .65rem; transition: transform .2s; }

.sh-more { position: relative; }
.sh-more::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.sh-more__menu { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 200px; padding: 6px; background: #fff; border: 1px solid var(--sh-border); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 30, 69, .14); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 5; }
.sh-more:hover .sh-more__menu, .sh-more:focus-within .sh-more__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-more:hover .fa-chevron-down, .sh-more:focus-within .fa-chevron-down { transform: rotate(180deg); }
.sh-more__link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #334155 !important; font-weight: 600; font-size: .93rem; text-decoration: none !important; }
.sh-more__link i { width: 16px; text-align: center; color: var(--sh-muted); }
.sh-more__link:hover, .sh-more__link.is-active { background: var(--sh-soft); color: var(--sh-primary) !important; }
.sh-more__link:hover i, .sh-more__link.is-active i { color: var(--sh-primary); }

.sh-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sh-icon-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 40px; height: 40px; border-radius: 10px; color: var(--sh-muted) !important; text-decoration: none !important; }
.sh-icon-link:hover { background: var(--sh-soft); color: var(--sh-primary) !important; }
.sh-mobile-label { display: none; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; margin-left: 6px; border-radius: 12px; background: var(--sh-primary); color: #fff !important;
    font-weight: 700; font-size: .95rem; white-space: nowrap; text-decoration: none !important; box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb, 30, 58, 138), .28); transition: transform .15s, filter .15s; }
.sh-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.sh-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--sh-border); border-radius: 12px; background: #fff; color: var(--sh-dark); font-size: 1.1rem; cursor: pointer; }

@media (max-width: 1380px) {
    .sh-brand__copy small { display: none; }
}
@media (max-width: 1240px) {
    .sh-link { padding: 8px 10px; }
    .sh-menu { gap: 10px; }
}
@media (max-width: 1060px) {
    .sh-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .sh-brand { max-width: calc(100% - 64px); }
    .sh-brand__copy small { display: block; }
    .sh-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 18px;
        background: #fff; border-bottom: 1px solid var(--sh-border); box-shadow: 0 18px 30px rgba(15, 30, 69, .1); max-height: calc(100vh - 76px); overflow-y: auto; }
    .sh-menu.is-open { display: flex; }
    .sh-nav { flex-direction: column; align-items: stretch; }
    .sh-link { padding: 12px 14px; }
    .sh-more > .sh-link { display: none; }
    .sh-more__menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; box-shadow: none; min-width: 0; }
    .sh-more__link { padding: 12px 14px; font-size: .95rem; }
    .sh-more__link i { display: none; }
    .sh-actions { flex-wrap: wrap; border-top: 1px solid var(--sh-border); padding-top: 12px; }
    .sh-icon-link { width: auto; height: auto; padding: 12px 14px; }
    .sh-mobile-label { display: inline; font-weight: 600; color: #334155; }
    .sh-btn { flex: 1 1 100%; margin: 6px 0 0; padding: 14px; }
}

/* ---------- Footer ---------- */
.sh-footer { background: var(--sh-dark); color: rgba(255, 255, 255, .72); margin-top: 0; }
.sh-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.sh-footer a:hover { color: #fff; }
.sh-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 48px; }
.sh-brand--light .sh-brand__copy strong { color: #fff; }
.sh-brand--light .sh-brand__copy small { color: rgba(255, 255, 255, .6); display: block; white-space: normal; }
.sh-brand--light .sh-brand__logo { border-color: rgba(255, 255, 255, .15); }
.sh-footer__brand p { margin: 18px 0 0; font-size: .93rem; line-height: 1.7; max-width: 380px; }
.sh-social { display: flex; gap: 8px; margin-top: 20px; }
.sh-social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s; }
.sh-social a:hover { background: var(--sh-accent); border-color: transparent; }
.sh-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-size: .93rem; }
.sh-footer__col h3 { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-family: inherit; }
.sh-footer__col i { width: 16px; margin-right: 6px; color: rgba(255, 255, 255, .45); text-align: center; }
.sh-footer__col span { line-height: 1.5; }
.sh-btn--footer { margin: 8px 0 0; background: var(--sh-accent); box-shadow: none; }
.sh-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.sh-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; flex-wrap: wrap; padding: 18px 0; font-size: .85rem; }
.sh-footer__bottom p { margin: 0; }
.sh-footer__bottom a { color: #fff; font-weight: 600; }

@media (max-width: 960px) {
    .sh-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 48px 0 36px; }
    .sh-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .sh-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
    .sh-more > .sh-link { display: flex; pointer-events: none; padding-bottom: 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sh-muted) !important; background: transparent !important; }
    .sh-more > .sh-link .fa-chevron-down { display: none; }
    .sh-more__menu { padding-left: 10px; }
}
