/*
 * MMMC Frontend Framework v0.1.0
 * Prototype foundation only.
 * Brand refinement belongs here, never in Core or Domain.
 */
.mmmc-shell,
.mmmc-release {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px;
}

.mmmc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.mmmc-card,
.mmmc-panel,
.mmmc-section {
    padding: 24px;
    border: 1px solid currentColor;
    border-radius: 14px;
}

.mmmc-release-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 48px;
    align-items: center;
}

.mmmc-release-art img {
    width: 100%;
    height: auto;
    display: block;
}

.mmmc-eyebrow {
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mmmc-button {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
}

.mmmc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

@media (max-width: 760px) {
    .mmmc-release-hero {
        grid-template-columns: 1fr;
    }
}


/* MMMC-004 — Discover collection presentation */
.mmmc-discover-card { overflow: hidden; padding: 0; }
.mmmc-card-media { display: block; }
.mmmc-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.mmmc-card-body { padding: 20px; }
.mmmc-card-body h2 { margin-top: 0; }
.mmmc-card-body h2 a { color: inherit; text-decoration: none; }
.mmmc-card-artist { font-weight: 600; }
.mmmc-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mmmc-empty-state { margin-top: 24px; }


/* MMMC-005 — creator-controlled Release lifecycle */
.mmmc-notice { margin-bottom: 24px; }
.mmmc-publish-form { margin-top: 20px; }

/* MMMC-005.2 — lifecycle feedback polish */
.mmmc-publish-button.is-publishing {
    position: relative;
    padding-left: 42px;
    cursor: wait;
    opacity: .82;
}

.mmmc-publish-button.is-publishing::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mmmc-spin .8s linear infinite;
}

.mmmc-publish-button:disabled {
    pointer-events: none;
}

@keyframes mmmc-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .mmmc-publish-button.is-publishing::before {
        animation: none;
    }
}

/* MMMC-005.3 — creator Release management */
.mmmc-manage-release,
.mmmc-manage-edit {
    margin-top: 28px;
}

.mmmc-manage-release form {
    margin: 0;
}

.mmmc-edit-release-form {
    display: grid;
    gap: 16px;
}

.mmmc-edit-release-form label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.mmmc-edit-release-form input[type="text"],
.mmmc-edit-release-form input[type="url"],
.mmmc-edit-release-form input[type="file"],
.mmmc-edit-release-form select,
.mmmc-edit-release-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 8px;
    font: inherit;
    background: transparent;
    color: inherit;
}

.mmmc-field-note,
.mmmc-management-note {
    font-weight: 400;
    opacity: .78;
}

.mmmc-button-danger {
    border-style: dashed;
}


/* MMMC-005.4 — focused Edit mode and non-destructive artwork replacement */
.mmmc-edit-artwork {
    display: grid;
    gap: 10px;
}

.mmmc-edit-artwork-label {
    font-weight: 600;
}

.mmmc-current-artwork img {
    display: block;
    width: min(180px, 100%);
    height: auto;
    border-radius: 8px;
}


/* MMMC-006 — Collective participation */
.mmmc-support-state {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.mmmc-support-state p { margin: 0; }


/* MMMC-007 — self-service Free Member acquisition */
.mmmc-join-shell {
    max-width: 760px;
}
.mmmc-join-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}
.mmmc-join-form label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}
.mmmc-join-form input[type="text"],
.mmmc-join-form input[type="email"],
.mmmc-join-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid currentColor;
    border-radius: 8px;
    font: inherit;
    background: transparent;
    color: inherit;
}
.mmmc-join-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mmmc-join-consent {
    grid-template-columns: auto 1fr !important;
    align-items: start;
    font-weight: 400 !important;
}
.mmmc-notice-error {
    border-style: dashed;
}
@media (max-width: 620px) {
    .mmmc-join-name-grid {
        grid-template-columns: 1fr;
    }
}


/* MMMC-009 — returning-member access */
.mmmc-access-shell {
    max-width: 760px;
}
.mmmc-access-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}
.mmmc-access-form label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}
.mmmc-access-form input[type="text"],
.mmmc-access-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid currentColor;
    border-radius: 8px;
    font: inherit;
    background: transparent;
    color: inherit;
}
.mmmc-access-remember {
    grid-template-columns: auto 1fr !important;
    align-items: start;
    font-weight: 400 !important;
}


/* MMMC-011A — authoritative navigation presentation
   Logic/state is unchanged from the validated MMMC-011 contract. */
.mmmc-primary-navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmmc-primary-navigation > li {
    display: block;
    margin: 0;
    padding: 0;
}

.mmmc-primary-navigation > li > a {
    display: block;
    white-space: nowrap;
    text-decoration: none;
}

/* Let the theme's mobile navigation container remain compact and readable. */
@media (max-width: 921px) {
    .mmmc-primary-navigation {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    .mmmc-primary-navigation > li > a {
        padding: 10px 0;
    }
}


/* MMMC-012 — Artist presence */
.mmmc-card-artist a,
.mmmc-artist a {
    color: inherit;
    font-weight: 600;
}
.mmmc-artist-profile > p {
    max-width: 760px;
}
.mmmc-artist-releases {
    margin-top: 32px;
}


/* MMMC-012A — Release artist-link affordance */
.mmmc-release-copy .mmmc-artist a {
    color: #006fd6;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.mmmc-release-copy .mmmc-artist a::after {
    content: "  View artist →";
    font-size: 0.86em;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.35em;
}
.mmmc-release-copy .mmmc-artist a:hover,
.mmmc-release-copy .mmmc-artist a:focus {
    text-decoration-thickness: 2px;
}


/* MMMC-007 — DOMAIN v0.2 Release consumer alignment */
.mmmc-release-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(0,0,0,.04), rgba(0,0,0,.12));
    overflow: hidden;
}
.mmmc-release-placeholder-mark {
    font-size: clamp(1.45rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: .08em;
}
.mmmc-release-placeholder-type {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
}
.mmmc-current-artwork .mmmc-release-placeholder {
    width: min(180px, 100%);
}
.mmmc-card-media .mmmc-release-placeholder,
.mmmc-home-feature-art .mmmc-release-placeholder {
    border-radius: 0;
}
.mmmc-home-mini-release .mmmc-release-placeholder {
    width: 72px;
    min-width: 72px;
}
.mmmc-release-edition {
    font-weight: 600;
    opacity: .82;
}

/* MMMC-008 — DOMAIN R3 canonical plural destinations consumer */
.mmmc-destination-list { display: grid; gap: 12px; margin: 18px 0; }
.mmmc-destination-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid rgba(0,0,0,.16); border-radius: 10px; }
.mmmc-destination-copy { display: grid; gap: 4px; min-width: 0; }
.mmmc-destination-copy a { overflow-wrap: anywhere; }
.mmmc-destination-primary { width: fit-content; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mmmc-destination-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.mmmc-destination-controls form { margin: 0; }
.mmmc-add-destination-form { display: grid; gap: 12px; margin-top: 18px; }
.mmmc-add-destination-form label { display: grid; gap: 7px; font-weight: 600; }
.mmmc-add-destination-form input[type="url"] { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid currentColor; border-radius: 8px; font: inherit; }
@media (max-width: 640px) { .mmmc-destination-row { align-items: stretch; flex-direction: column; } }
