/* --- Core Layout --- */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111;
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
    line-height: 1.75;
}

header {
    text-align: center;
    padding: 0.9em 0 0.75em;
    background-color: #f8f8f8;
    position: relative;
}

header h1 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.35em;
    margin: 0;
    color: #111;
}

.branding {
    display: inline-flex;
    gap: 0.3rem;
}

.branding span {
    display: inline-block;
}

.branding-link {
    text-decoration: none;
    color: inherit;
}
/* 
header h1.branding {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

header h1.branding span {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0;
    position: relative;
    padding: 0 0.1rem;
}

header h1.branding span:not(:last-child)::after {
    content: '•';
    margin: 0 1.35rem;
    display: inline-block;
    font-size: 0.5em;
    color: #cfc7bc;
    letter-spacing: 0;
} */

.header-actions {
    position: absolute;
    top: 1em;
    right: 0.5em;
    display: inline-flex;
    align-items: center;
    z-index: 10;
}

.header-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3f3c39;
    background: #f8f8f8;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    touch-action: manipulation;
    appearance: none;
    -webkit-appearance: none;
}

.header-actions.is-open .header-profile,
.header-profile:hover,
.header-profile:focus-visible {
    background: #dedbd4;
    border-color: #d0cbc2;
    outline: none;
}

.header-actions.is-open .header-profile-caret::after {
    content: attr(data-caret-open);
}

.header-profile-caret::after {
    content: attr(data-caret-closed);
}


.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #d3cec4;
}

.header-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Merriweather', serif;
    font-size: 0.72rem;
    color: #3f3c39;
    text-transform: uppercase;
}

.header-profile-name {
    white-space: nowrap;
    /* font-size: 1rem; */
}

.header-profile-caret {
    font-size: 0.8rem;
    line-height: 1;
    display: inline-block;
}

.header-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    background: #fbf9f5;
    border: 1px solid #dcd6cb;
    box-shadow: 0 18px 32px rgba(24, 22, 20, 0.12);
    min-width: 190px;
    padding: 0.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 15;
    pointer-events: none;
}

.header-actions.is-open .header-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-menu-link {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3f3c39;
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.header-menu-link:hover,
.header-menu-link:focus-visible {
    background: #dedbd4;
    color: #1f1e1c;
    outline: none;
}

@media (max-width: 720px) {
    header {
        /* padding-bottom: 1.4em; */
    }

    .header-actions {
        /* position: static; */
        /* margin: 0.7rem auto 0; */
        /* flex-direction: column; */
        /* align-items: center; */
        /* gap: 0.6rem; */
    }

    .header-menu {
        /* position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border-radius: 6px;
        transform: translateY(0); */
    }

    .header-actions.is-open .header-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex;
    }

    .header-actions:not(.is-open) .header-menu {
        display: none;
    }

    .header-profile {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 520px) {
    header h1 {
        /* font-size: 1.6rem;
        letter-spacing: 0.28em; */
    }
}
main {
    max-width: 900px;
    margin: 1.8em auto 3em;
    padding: 0 1em;
}

footer {
    text-align: center;
    padding: 1.5em 0;
    background-color: #f8f8f8;
    color: #666;
    font-size: 0.85rem;
}

footer .footer-disclaimer {
    max-width: 640px;
    margin: 0.75em auto 0;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a948c;
    line-height: 1.6;
}

footer .footer-disclaimer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(154, 148, 140, 0.6);
}

footer .footer-link--social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    padding-bottom: 0.05em;
    border-bottom: none;
}

footer .footer-instagram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.38rem;
    height: 0.38rem;
}

footer .footer-instagram-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

footer .footer-disclaimer a:hover,
footer .footer-disclaimer a:focus-visible {
    color: #4b4844;
    border-color: #4b4844;
}

footer .footer-link--social:hover,
footer .footer-link--social:focus-visible {
    border-bottom: none;
}

/* --- Headings --- */
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    color: #111;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.1rem;
    margin-top: 1em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


.intro-text {
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.05rem;
    color: #333;
    max-width: 42em;
    margin: 2em auto;
    line-height: 1.75;
    text-align: center;
    letter-spacing: 0.3px;
    padding: 0 1em;
}




/* --- Albums --- */
.album {
    margin-bottom: 3em;
}

.album-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    margin-bottom: 1em;
}

.album-header img {
    width: 120px;
    height: auto;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.album-info .album-title {
    font-size: 1.5rem;
    margin-bottom: 0.25em;
}

.release-date {
    font-size: 0.9rem;
    color: #666;
}

/* --- Tracks & Notes --- */
.track {
    margin-bottom: 2em;
}

.notes {
    margin: 0.5em 0 1em 1em;
    padding-left: 1em;
    border-left: 2px solid #e0e0e0;
}

.note {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.75em;
}

/* --- Add Note Form --- */
.add-note-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-top: 1em;
    max-width: 600px;
}

.add-note-form textarea {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    background-color: #fdfdfd;
    box-shadow: inset 0 0 5px #eee;
    resize: vertical;
    min-height: 120px;
}

.add-note-form button {
    align-self: flex-start;
    margin-top: 0.5em;
    padding: 0.5em 1em;
    font-size: 0.95rem;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.add-note-form button:hover {
    background-color: #eaeaea;
}

/* --- Dashboard Header / Track Selector --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
}

.track-selector {
    margin-bottom: 2em;
}

#track-search,
#track-dropdown {
    width: 70%;
    max-width: 400px;
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
    margin-bottom: 0.5em;
}

/* --- Login Page --- */
.login-container {
    max-width: 400px;
    margin: 5em auto;
    padding: 2em;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.login-container h2 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    margin-bottom: 1em;
    font-size: 1.8rem;
}

.login-container p {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5em;
}

.login-form input[type="email"],
.login-form button {
    width: 100%;
    padding: 0.75em;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1em;
}

.login-form button {
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 500;
}

.login-form button:hover {
    background-color: #eaeaea;
}





/* ========== Invite Table Status Coloring ========== */
.invite-table tr[class^="status-"] {
    transition: background-color 0.3s ease;
}

/* Pending (awaiting verification) */
.status-pending {
    background-color: #fffceb; /* pale yellow */
}

/* Email sent but not yet verified */
.status-email_sent {
    background-color: #647a8e; /* soft blue */
}

/* Verified (successful) */
.status-verified {
    background-color: #87c47d; /* light green */
}

/* Used or expired */
.status-used,
.status-expired {
    background-color: #c63434; /* light red/pink */
}

/* Optional: table aesthetics */
.invite-table {
    border-collapse: collapse;
    width: 100%;
    font-family: sans-serif;
}

.invite-table th {
    background-color: #f4f4f4;
    text-align: left;
}

.invite-table td, .invite-table th {
    padding: 8px 12px;
}
.invite-table tr.status-deleted {
    background: rgba(138, 59, 45, 0.08);
    color: #5c2921;
}

.invite-table tr.status-deleted td {
    border-top: 1px solid rgba(138, 59, 45, 0.25);
}

.status-shell {
    max-width: 540px;
    margin: 5rem auto;
    padding: 0 1.5rem 3rem;
    text-align: center;
    font-family: "Georgia", "Times New Roman", serif;
    color: #2f2d2a;
}

.status-shell h1 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #484540;
}

.status-shell p {
    /* margin: 0 0 1.5rem; */
    line-height: 1.8;
}

.status-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border: 1px solid #1f1e1c;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    text-decoration: none;
    color: #f8f6f2;
    background: #1f1e1c;
}

.status-link:hover,
.status-link:focus-visible {
    background: #3b3936;
}
