/* ── Full-page create topic ──────────────────────────────── */
.mpc-wrap { max-width: 900px; margin: 0 auto; padding: 30px 15px 60px; }
.mpc-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.35); font-size: 0.82rem;
    text-decoration: none; transition: color 0.15s;
    margin-bottom: 18px;
}
.mpc-back:hover { color: #f5c518; }
.mpc-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: rgba(255,255,255,0.35);
    margin: 0 0 24px;
}

/* ── Auth gate ────────────────────────────────────────────── */
#mpc-auth-gate {
    text-align: center; padding: 60px 20px;
    color: rgba(255,255,255,0.45); font-size: 0.9rem;
}
#mpc-auth-gate button {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f5c518; color: #111; border: none; border-radius: 999px;
    padding: 8px 24px; font-family: "Josefin Sans", sans-serif;
    font-size: 0.84rem; font-weight: 700; cursor: pointer;
    margin-top: 16px; transition: opacity 0.15s;
}
#mpc-auth-gate button:hover { opacity: 0.85; }

/* ── Guidelines accordion ─────────────────────────────────── */
.mpc-guidelines {
    background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.25);
    border-radius: 8px; margin-bottom: 24px; font-size: 0.78rem;
    color: rgba(255,255,255,0.55); line-height: 1.55;
}
.mpc-guidelines summary {
    padding: 10px 14px; cursor: pointer; color: rgba(245,197,24,0.85);
    font-weight: 700; font-size: 0.78rem; list-style: none;
    display: flex; align-items: center; gap: 5px;
}
.mpc-guidelines summary::-webkit-details-marker { display: none; }
.mpc-guidelines .mpc-chevron {
    margin-left: auto; font-size: 0.65rem; opacity: 0.5;
    transition: transform 0.2s;
}
.mpc-guidelines[open] .mpc-chevron { transform: rotate(180deg); }
.mpc-guidelines-body { padding: 0 14px 10px; }

/* ── Form fields ──────────────────────────────────────────── */
.mpc-field { margin-bottom: 20px; }
.mpc-field label {
    display: block; font-size: 0.82rem; color: rgba(255,255,255,0.55);
    font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px;
}
.mpc-optional { color: rgba(255,255,255,0.3); font-weight: 400; }
.mpc-field input[type="text"] {
    width: 100%; background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
    padding: 10px 14px; color: #fff; font-size: 0.9rem; outline: none;
    font-family: inherit; transition: border-color 0.15s;
}
.mpc-field input[type="text"]:focus { border-color: rgba(245,197,24,0.5); }
.mpc-char-count {
    display: block; text-align: right; font-size: 0.7rem;
    color: rgba(255,255,255,0.25); margin-top: 4px;
}

/* ── Write / Preview tabs ─────────────────────────────────── */
.mpc-tabs {
    display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0;
}
.mpc-tab {
    background: none; border: none; border-bottom: 2px solid transparent;
    padding: 8px 18px; color: rgba(255,255,255,0.4); font-size: 0.82rem;
    font-weight: 600; font-family: "Josefin Sans", sans-serif;
    cursor: pointer; transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.5px;
}
.mpc-tab:hover { color: rgba(255,255,255,0.7); }
.mpc-tab.active { color: #f5c518; border-bottom-color: #f5c518; }

/* ── Formatting toolbar ───────────────────────────────────── */
.mpc-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1); border-top: none;
}
.mpc-toolbar button {
    background: none; border: none; color: rgba(255,255,255,0.45);
    width: 30px; height: 30px; border-radius: 4px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.82rem; transition: background 0.12s, color 0.12s;
}
.mpc-toolbar button:hover { background: rgba(255,255,255,0.08); color: #f5c518; }
.mpc-tb-sep {
    width: 1px; height: 18px; background: rgba(255,255,255,0.12);
    margin: 0 4px; flex-shrink: 0;
}

/* ── Color picker dropdown ────────────────────────────────── */
.mpc-color-dropdown { position: relative; display: inline-flex; }
.mpc-color-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #1e1e1e; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; padding: 4px; z-index: 100; min-width: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.mpc-color-dropdown.open .mpc-color-menu { display: block; }
.mpc-color-menu button {
    width: 100%; text-align: left; padding: 4px 10px;
    font-size: 0.78rem; font-weight: 600; border-radius: 3px;
}

/* ── Textarea ─────────────────────────────────────────────── */
#mpc-body {
    width: 100%; background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18); border-top: none;
    border-radius: 0 0 8px 8px; padding: 12px 14px;
    color: #fff; font-size: 0.88rem; outline: none;
    font-family: inherit; resize: vertical; line-height: 1.6;
    transition: border-color 0.15s;
}
#mpc-body:focus { border-color: rgba(245,197,24,0.5); }

/* ── Preview pane ─────────────────────────────────────────── */
.mpc-preview-area {
    min-height: 250px; padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.6;
}

/* ── Cheatsheet ───────────────────────────────────────────── */
.mpc-cheatsheet {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; margin-bottom: 24px;
    font-size: 0.78rem; color: rgba(255,255,255,0.45);
}
.mpc-cheatsheet summary {
    padding: 10px 14px; cursor: pointer; list-style: none;
    display: flex; align-items: center; gap: 6px;
}
.mpc-cheatsheet summary::-webkit-details-marker { display: none; }
.mpc-cheatsheet-body {
    padding: 0 14px 12px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}
.mpc-cs-row { display: flex; gap: 8px; align-items: baseline; }
.mpc-cs-row code {
    font-size: 0.74rem; background: rgba(255,255,255,0.06);
    padding: 1px 5px; border-radius: 3px; color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

/* ── Photo drop zone ──────────────────────────────────────── */
.mpc-drop-zone {
    border: 2px dashed rgba(255,255,255,0.18); border-radius: 8px;
    padding: 24px; text-align: center; cursor: pointer;
    transition: border-color 0.15s; color: rgba(255,255,255,0.35);
    font-size: 0.84rem;
}
.mpc-drop-zone:hover { border-color: rgba(245,197,24,0.4); }
.mpc-drop-zone i { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.mpc-photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ── Episode results ──────────────────────────────────────── */
#mpc-ep-results {
    background: #222; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; margin-top: 4px; overflow: hidden;
    max-height: 200px; overflow-y: auto;
}

/* ── Error message ────────────────────────────────────────── */
#mpc-error {
    color: #e74c3c; font-size: 0.82rem; margin-bottom: 12px;
    padding: 8px 12px; background: rgba(231,76,60,0.1); border-radius: 6px;
}

/* ── Actions bar ──────────────────────────────────────────── */
.mpc-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 16px; margin-top: 24px;
}
.mpc-cancel {
    color: rgba(255,255,255,0.35); text-decoration: none;
    font-size: 0.84rem; font-family: "Josefin Sans", sans-serif;
    transition: color 0.15s;
}
.mpc-cancel:hover { color: rgba(255,255,255,0.6); }
.mpc-submit {
    display: inline-flex; align-items: center; gap: 7px;
    background: #f5c518; color: #111; border: none; border-radius: 999px;
    padding: 9px 24px; font-family: "Josefin Sans", sans-serif;
    font-size: 0.84rem; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; transition: opacity 0.15s;
}
.mpc-submit:hover { opacity: 0.85; }
.mpc-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .mpc-cheatsheet-body { grid-template-columns: 1fr; }
    .mpc-toolbar { gap: 1px; padding: 4px 6px; }
    .mpc-toolbar button { width: 28px; height: 28px; font-size: 0.78rem; }
}
