/* ==============================================
   Sophia Belle Music — Global Styles
   Palette sourced from wwwroot/img/header.png
     Blush bg   : #fef0ee
     Dusty rose : #c75a72
     Rose light : #e8849a
     Near-black : #1a0d0f
     Warm grey  : #9a8585
   ============================================== */

:root {
    --sbm-dark:        #1a0d0f;
    --sbm-dark-card:   #261316;
    --sbm-dark-border: #3a2025;
    --sbm-rose:        #c75a72;
    --sbm-rose-light:  #e8849a;
    --sbm-rose-pale:   #f2c4cc;
    --sbm-blush:       #fef0ee;
    --sbm-white:       #fef8f8;
    --sbm-muted:       #9a8585;
    --sbm-body-text:   #c9b4b6;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Lato', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--sbm-dark);
    color: var(--sbm-white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--sbm-white);
}

a { color: var(--sbm-rose-light); text-decoration: none; }
a:hover { color: var(--sbm-rose-pale); }

/* ?? Navbar ??????????????????????????????????? */
.sbm-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sbm-rose);
    margin-right: 0.6rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.sbm-navbar {
    background: rgba(26, 13, 15, 0.97) !important;
    border-bottom: 1px solid var(--sbm-dark-border);
    padding: 0.9rem 0;
    backdrop-filter: blur(6px);
}

.sbm-brand { font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: 0.02em; }
.brand-sophia { color: var(--sbm-white); }
.brand-music  { color: var(--sbm-rose-light); margin-left: 0.25rem; }

.sbm-navbar .nav-link {
    color: var(--sbm-body-text) !important;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1rem !important;
    transition: color 0.2s;
}
.sbm-navbar .nav-link:hover,
.sbm-navbar .nav-link.active { color: var(--sbm-rose-light) !important; }

.sbm-nav-socials { display: flex; align-items: center; gap: 1rem; }
.sbm-nav-socials a { color: var(--sbm-muted); font-size: 0.9rem; transition: color 0.2s; }
.sbm-nav-socials a:hover { color: var(--sbm-rose-light); }

/* ?? Buttons ??????????????????????????????????? */
.sbm-btn-primary {
    background: var(--sbm-rose);
    color: var(--sbm-white) !important;
    border: 2px solid var(--sbm-rose);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.65rem 2rem;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: inline-block;
}
.sbm-btn-primary:hover {
    background: var(--sbm-rose-light);
    border-color: var(--sbm-rose-light);
    color: var(--sbm-dark) !important;
}

.sbm-btn-outline {
    background: transparent;
    color: var(--sbm-white) !important;
    border: 2px solid var(--sbm-white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.65rem 2rem;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    display: inline-block;
}
.sbm-btn-outline:hover { background: var(--sbm-white); color: var(--sbm-dark) !important; }

.sbm-btn-outline-sm {
    background: transparent;
    color: var(--sbm-rose-light) !important;
    border: 1px solid var(--sbm-rose);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    display: inline-block;
}
.sbm-btn-outline-sm:hover { background: var(--sbm-rose); color: var(--sbm-white) !important; }

/* ?? Header image banner ??????????????????????? */
.sbm-header-image { width: 100%; background: var(--sbm-blush); line-height: 0; }
.sbm-header-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ?? Hero CTA strip ???????????????????????????? */
.sbm-hero {
    position: relative;
    padding: 5rem 1rem 4.5rem;
    background: linear-gradient(180deg, #2a1015 0%, var(--sbm-dark) 100%);
    overflow: hidden;
    text-align: center;
}
.sbm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(199,90,114,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.sbm-hero-content { position: relative; z-index: 2; }

.sbm-hero-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sbm-rose-light);
    margin-bottom: 1rem;
}
.sbm-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--sbm-white);
    margin: 0;
}
.sbm-hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--sbm-body-text);
    margin-top: 1rem;
}
.sbm-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.sbm-hero-socials { display: flex; justify-content: center; gap: 1.5rem; }
.sbm-hero-socials a { color: var(--sbm-muted); font-size: 1.1rem; transition: color 0.2s, transform 0.2s; }
.sbm-hero-socials a:hover { color: var(--sbm-rose-light); transform: translateY(-2px); }

/* ?? Page hero (inner pages) ??????????????????? */
.sbm-page-hero {
    position: relative;
    text-align: center;
    background: var(--sbm-blush);
    line-height: 0;        /* removes gap below the inline image */
    overflow: hidden;
}
.sbm-page-hero-header-img {
    display: block;
    width: 100%;
    height: auto;          /* natural aspect ratio — no cropping */
    object-fit: contain;
}
.sbm-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,13,15,0.45) 0%, rgba(26,13,15,0.72) 100%);
}
.sbm-page-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    line-height: 1.4;
}
.sbm-page-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--sbm-white);
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ?? Sections ?????????????????????????????????? */
.sbm-section { padding: 5rem 0; }

.sbm-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sbm-rose-light);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.4;
}
.sbm-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.sbm-body-text { color: var(--sbm-body-text); font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.sbm-divider { border-color: var(--sbm-dark-border); margin: 2rem 0; }

/* ?? About teaser ?????????????????????????????? */
.sbm-about-teaser { background: #200f12; }
.sbm-artist-photo-wrap { display: inline-block; }

/* Artist photo frame */
.sbm-photo-frame {
    display: inline-block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 3px solid var(--sbm-rose);
    box-shadow: 0 8px 32px rgba(199,90,114,0.35), 0 2px 8px rgba(0,0,0,0.5);
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}
.sbm-photo-frame-lg { max-width: 380px; }
.sbm-artist-photo { display: block; width: 100%; height: auto; object-fit: cover; }

.sbm-artist-photo-placeholder {
    width: 320px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--sbm-dark-card);
    border: 1px solid var(--sbm-dark-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sbm-muted);
    border-radius: 4px;
    margin: 0 auto;
}
.sbm-artist-photo-large { width: 380px; aspect-ratio: 2 / 3; }

/* ?? Track cards ??????????????????????????????? */
.sbm-music-section { background: var(--sbm-dark); }
.sbm-track-card {
    background: var(--sbm-dark-card);
    border: 1px solid var(--sbm-dark-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.sbm-track-card:hover { border-color: var(--sbm-rose); transform: translateY(-4px); }
.sbm-track-cover {
    background: linear-gradient(135deg, #2a1015, #3d1820);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbm-rose-light);
}
.sbm-track-info { padding: 1.25rem; }
.sbm-track-title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.25rem; }
.sbm-track-meta { font-size: 0.8rem; color: var(--sbm-muted); margin-bottom: 0; }
.sbm-track-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.sbm-stream-link { color: var(--sbm-muted); font-size: 1.1rem; transition: color 0.2s; }
.sbm-stream-link:hover { color: var(--sbm-rose-light); }

/* ?? Album art / tracklist ????????????????????? */
.sbm-album-art {
    background: linear-gradient(135deg, #2a1015, #3d1820);
    border: 1px solid var(--sbm-dark-border);
    border-radius: 4px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sbm-rose-light);
    min-height: 160px;
}
.sbm-stream-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sbm-stream-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--sbm-dark-border);
    border-radius: 2px;
    color: var(--sbm-body-text) !important;
    font-size: 0.8rem;
    transition: border-color 0.2s, color 0.2s;
}
.sbm-stream-badge:hover { border-color: var(--sbm-rose); color: var(--sbm-rose-light) !important; }

.sbm-tracklist { margin-top: 0.5rem; }
.sbm-tracklist-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sbm-dark-border);
    font-size: 0.9rem;
}
.sbm-tracklist-row:last-child { border-bottom: none; }
.sbm-track-num { width: 2rem; color: var(--sbm-muted); flex-shrink: 0; }
.sbm-track-name { flex: 1; }
.sbm-track-duration { color: var(--sbm-muted); font-size: 0.85rem; }

/* ?? Shows ????????????????????????????????????? */
.sbm-shows-section { background: #200f12; }
.sbm-shows-list { max-width: 800px; margin: 0 auto; }
.sbm-show-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--sbm-dark-border);
}
.sbm-show-row:last-child { border-bottom: none; }
.sbm-show-date { display: flex; flex-direction: column; align-items: center; min-width: 56px; text-align: center; }
.sbm-show-month { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sbm-rose-light); }
.sbm-show-day { font-family: var(--font-serif); font-size: 2rem; line-height: 1; color: var(--sbm-white); }
.sbm-show-year { font-size: 0.7rem; color: var(--sbm-muted); }
.sbm-show-details { flex: 1; }
.sbm-show-venue { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 0.15rem; }
.sbm-show-location { font-size: 0.85rem; color: var(--sbm-muted); margin: 0; }
.sbm-show-notes { font-size: 0.8rem; color: var(--sbm-rose-light); margin: 0.25rem 0 0; font-style: italic; }

/* ?? Stay connected ???????????????????????????? */
.sbm-connect-section {
    background: linear-gradient(160deg, var(--sbm-dark) 0%, #2a1015 50%, var(--sbm-dark) 100%);
}
.sbm-connect-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.sbm-connect-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--sbm-muted) !important;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, transform 0.2s;
}
.sbm-connect-social-link i { font-size: 1.5rem; }
.sbm-connect-social-link:hover { color: var(--sbm-rose-light) !important; transform: translateY(-3px); }

/* ?? Stats ????????????????????????????????????? */
.sbm-stats-section { background: var(--sbm-dark-card); padding: 3rem 0; }
.sbm-stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.sbm-stat-number { font-family: var(--font-serif); font-size: 3rem; color: var(--sbm-rose-light); line-height: 1; }
.sbm-stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sbm-muted); }

/* ?? Tags ?????????????????????????????????????? */
.sbm-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--sbm-dark-border);
    border-radius: 2px;
    font-size: 0.8rem;
    color: var(--sbm-body-text);
}

/* ?? Contact ??????????????????????????????????? */
.sbm-contact-form-wrap {
    background: var(--sbm-dark-card);
    border: 1px solid var(--sbm-dark-border);
    border-radius: 4px;
    padding: 2.5rem;
}
.sbm-contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.sbm-contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.sbm-contact-item i { color: var(--sbm-rose-light); font-size: 1.1rem; margin-top: 0.2rem; min-width: 1.25rem; }
.sbm-contact-item strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sbm-muted); }
.sbm-contact-item p { margin: 0.2rem 0 0; font-size: 0.95rem; }
.sbm-contact-item a { color: var(--sbm-body-text) !important; }
.sbm-contact-item a:hover { color: var(--sbm-rose-light) !important; }

.sbm-social-icon-lg {
    width: 42px;
    height: 42px;
    border: 1px solid var(--sbm-dark-border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbm-muted) !important;
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s;
}
.sbm-social-icon-lg:hover { border-color: var(--sbm-rose); color: var(--sbm-rose-light) !important; }

.sbm-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sbm-muted);
    margin-bottom: 0.4rem;
}
.sbm-input {
    background: var(--sbm-dark) !important;
    border: 1px solid var(--sbm-dark-border) !important;
    color: var(--sbm-white) !important;
    border-radius: 2px !important;
    transition: border-color 0.2s !important;
}
.sbm-input:focus {
    border-color: var(--sbm-rose) !important;
    box-shadow: 0 0 0 3px rgba(199,90,114,0.15) !important;
    outline: none !important;
}
.sbm-input option { background: var(--sbm-dark); }
.sbm-form-success { color: var(--sbm-rose-light); }
.sbm-form-success i { color: var(--sbm-rose-light); }

/* ?? Footer ???????????????????????????????????? */
.sbm-footer { background: #120810; border-top: 1px solid var(--sbm-dark-border); }
.sbm-footer-brand { font-family: var(--font-serif); font-size: 1.1rem; color: var(--sbm-white); }
.sbm-footer-socials { display: flex; justify-content: center; gap: 1.25rem; }
.sbm-footer-socials a { color: var(--sbm-muted); font-size: 1rem; transition: color 0.2s; }
.sbm-footer-socials a:hover { color: var(--sbm-rose-light); }
.sbm-footer-copy { color: var(--sbm-muted); font-size: 0.8rem; }

/* ?? Press kit ????????????????????????????????? */
.sbm-press-kit { border-top: 1px solid var(--sbm-dark-border); padding-top: 1.5rem; }

/* ?? Booking panels (placeholder columns) ?????? */
.sbm-booking-panel {
    height: 100%;
    border: 1px solid var(--sbm-dark-border);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    background: var(--sbm-dark-card);
}
.sbm-booking-panel-placeholder { opacity: 0.6; }
.sbm-booking-panel-icon {
    font-size: 2rem;
    color: var(--sbm-rose);
    margin-bottom: 1rem;
}
.sbm-booking-panel-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.sbm-placeholder-lines { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.sbm-placeholder-lines span {
    display: block;
    height: 10px;
    border-radius: 2px;
    background: var(--sbm-dark-border);
}
.sbm-placeholder-lines span:nth-child(1) { width: 90%; }
.sbm-placeholder-lines span:nth-child(2) { width: 75%; }
.sbm-placeholder-lines span:nth-child(3) { width: 85%; }
.sbm-placeholder-lines span:nth-child(4) { width: 60%; }

/* ?? Payment widget ???????????????????????????? */
.sbm-payment-widget {
    background: var(--sbm-dark-card);
    border: 1px solid var(--sbm-dark-border);
    border-radius: 4px;
    overflow: hidden;
}

.sbm-payment-widget-header {
    background: var(--sbm-rose);
    color: var(--sbm-white);
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.sbm-payment-form {
    padding: 1.75rem 1.5rem;
    transition: opacity 0.3s;
}
.sbm-pf-loading { opacity: 0.6; pointer-events: none; }

.sbm-pf-group { margin-bottom: 1.1rem; }

.sbm-pf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sbm-pf-currency {
    position: absolute;
    left: 0.75rem;
    color: var(--sbm-muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.sbm-pf-amount-input { padding-left: 1.75rem !important; }

/* PayPal Hosted Field containers — must have explicit height
   so the SDK iframes have room to render. */
.sbm-hosted-field {
    background: var(--sbm-dark) !important;
    border: 1px solid var(--sbm-dark-border);
    border-radius: 2px;
    height: 44px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.sbm-hosted-field:focus-within { border-color: var(--sbm-rose); }
.sbm-hosted-field iframe { width: 100% !important; height: 100% !important; border: none; }

.sbm-hf-loading { animation: sbm-pulse 1.4s ease-in-out infinite; }
@keyframes sbm-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}
.sbm-hf-placeholder {
    font-size: 0.78rem;
    color: var(--sbm-muted);
    user-select: none;
}

.sbm-pay-btn {
    font-size: 0.9rem;
    padding: 0.8rem;
    letter-spacing: 0.12em;
}
.sbm-pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.sbm-payment-error {
    background: rgba(232, 112, 112, 0.12);
    border: 1px solid rgba(232, 112, 112, 0.4);
    border-radius: 2px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: #e87070;
}

.sbm-payment-success {
    padding: 1.75rem 1.5rem;
    color: var(--sbm-rose-light);
}
.sbm-payment-success i { color: var(--sbm-rose-light); }
.sbm-payment-success code {
    background: var(--sbm-dark);
    padding: 0.1rem 0.45rem;
    border-radius: 2px;
    font-size: 0.78rem;
    color: var(--sbm-rose-pale);
    word-break: break-all;
}

.sbm-payment-disclaimer {
    font-size: 0.75rem;
    color: var(--sbm-muted);
    text-align: center;
    margin-bottom: 0;
}

/* ?? Misc ?????????????????????????????????????? */
.sbm-muted-icon { color: var(--sbm-dark-border); display: block; }

/* ?? Blazor / validation ??????????????????????? */
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e87070; font-size: 0.8rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0.6rem 1.25rem 0.7rem;
    background: #b32121;
    color: white;
    z-index: 9999;
    text-align: center;
}
#blazor-error-ui .reload { color: #ffefef; text-decoration: underline; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ?? Responsive ???????????????????????????????? */
@media (max-width: 767px) {
    .sbm-show-row { flex-wrap: wrap; }
    .sbm-show-action { width: 100%; }
    .sbm-contact-form-wrap { padding: 1.5rem; }
    .sbm-hero-title { font-size: 3rem; }
}
