/* ═══════════════════════════════════════════════
   Maayaa Cultural Wall — Frontend Styles
   Submission form · My submissions widget
   ═══════════════════════════════════════════════ */

:root {
    --mcw-gold:      #C9A961;
    --mcw-gold-lt:   #E8C97A;
    --mcw-gold-dim:  rgba(201,169,97,0.25);
    --mcw-ink:       #0C0B09;
    --mcw-surface:   #1a1815;
    --mcw-border:    rgba(201,169,97,0.2);
    --mcw-parchment: #F4EFE6;
    --mcw-muted:     rgba(244,239,230,0.45);
}

/* ── Login prompt ──────────────────────────────── */
.mcw-login-prompt {
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, #1a1815, #0f0e0c);
    border: 1px solid var(--mcw-border);
}
.mcw-login-icon { font-size: 36px; color: var(--mcw-gold); margin-bottom: 1rem; }
.mcw-login-prompt h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--mcw-parchment);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.mcw-login-prompt p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-style: italic;
    color: var(--mcw-muted);
    margin-bottom: 1.5rem;
}

/* ── Submit wrap ───────────────────────────────── */
.mcw-submit-wrap {
    background: linear-gradient(160deg, #1e1c18 0%, #141210 100%);
    border: 1px solid var(--mcw-border);
    padding: 2.5rem;
    max-width: 800px;
    position: relative;
}
.mcw-submit-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mcw-gold), var(--mcw-gold-lt), var(--mcw-gold), transparent);
    opacity: 0.7;
}

/* Greeting */
.mcw-submit-greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--mcw-border);
}
.mcw-submit-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--mcw-gold-dim);
    object-fit: cover;
}
.mcw-submit-name {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: var(--mcw-parchment);
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}
.mcw-submit-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-style: italic;
    color: var(--mcw-muted);
}

/* ── Form fields ───────────────────────────────── */
.mcw-form { display: flex; flex-direction: column; gap: 1.4rem; }

.mcw-field { display: flex; flex-direction: column; gap: 0.5rem; }

.mcw-field label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mcw-gold);
    font-family: 'DM Sans', sans-serif;
}
.mcw-field label span { color: #e74c3c; }
.mcw-field label small { text-transform: none; letter-spacing: 0; font-size: 10px; color: var(--mcw-muted); }

.mcw-field input[type="text"],
.mcw-field textarea,
.mcw-field select {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,97,0.18);
    color: var(--mcw-parchment);
    padding: 0.75rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    transition: border-color 0.25s, background 0.25s;
    border-radius: 0;
    outline: none;
    width: 100%;
}
.mcw-field input::placeholder,
.mcw-field textarea::placeholder { color: rgba(244,239,230,0.2); font-style: italic; }
.mcw-field input:focus,
.mcw-field textarea:focus,
.mcw-field select:focus {
    border-color: var(--mcw-gold);
    background: rgba(201,169,97,0.05);
}
.mcw-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A961' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-color: rgba(255,255,255,0.04); }
.mcw-field select option { background: #1a1815; color: var(--mcw-parchment); }
.mcw-field textarea { resize: vertical; min-height: 100px; }

.mcw-field-error { font-size: 12px; color: #e74c3c; font-style: italic; display: none; }
.mcw-field-error.visible { display: block; }

.mcw-char-count { font-size: 11px; color: var(--mcw-muted); text-align: right; }

/* ── Grid ──────────────────────────────────────── */
.mcw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }

/* ── Image upload ──────────────────────────────── */
.mcw-upload-zone {
    border: 1.5px dashed rgba(201,169,97,0.25);
    background: rgba(201,169,97,0.03);
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s, background 0.25s;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mcw-upload-zone:hover,
.mcw-upload-zone.drag-over {
    border-color: var(--mcw-gold);
    background: rgba(201,169,97,0.07);
}
.mcw-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem;
    text-align: center;
    pointer-events: none;
}
.mcw-upload-icon svg {
    width: 36px; height: 36px;
    stroke: rgba(201,169,97,0.4);
    fill: none;
    stroke-width: 1.5;
}
.mcw-upload-text strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: rgba(244,239,230,0.6);
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}
.mcw-upload-text span {
    font-size: 11px;
    color: var(--mcw-muted);
    font-style: italic;
}
.mcw-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.mcw-upload-preview {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* ── Form footer ───────────────────────────────── */
.mcw-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.mcw-form-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-style: italic;
    color: var(--mcw-muted);
    max-width: 360px;
    line-height: 1.5;
}

/* ── Button ────────────────────────────────────── */
.mcw-btn-gold {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--mcw-gold), #a8883d);
    color: #0f0e0c;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.mcw-btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--mcw-gold-lt), var(--mcw-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,169,97,0.25);
}
.mcw-btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Form message ──────────────────────────────── */
.mcw-form-msg {
    padding: 1rem 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-style: italic;
    border-left: 3px solid;
}
.mcw-form-msg.success { background: rgba(30,100,60,0.15); border-color: #2ecc71; color: #a8f0c0; }
.mcw-form-msg.error   { background: rgba(192,57,43,0.12); border-color: #e74c3c; color: #f0a8a8; }

/* ── My submissions ────────────────────────────── */
.mcw-my-list { display: flex; flex-direction: column; gap: 10px; }
.mcw-my-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--mcw-border);
}
.mcw-my-item img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; }
.mcw-my-item-body { flex: 1; min-width: 0; }
.mcw-my-item-title { font-family: 'Cinzel', serif; font-size: 13px; color: var(--mcw-parchment); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcw-my-item-date  { font-size: 11px; color: var(--mcw-muted); }
.mcw-status { display: inline-block; font-size: 10px; font-family: 'DM Sans', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; margin-bottom: 3px; }
.mcw-status-publish { background: rgba(46,204,113,0.1); color: #2ecc71; border: 1px solid rgba(46,204,113,0.2); }
.mcw-status-pending { background: rgba(243,156,18,0.1); color: #f39c12; border: 1px solid rgba(243,156,18,0.2); }
.mcw-status-draft   { background: rgba(255,255,255,0.05); color: var(--mcw-muted); border: 1px solid rgba(255,255,255,0.08); }

.mcw-empty { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--mcw-muted); }

@media (max-width: 640px) {
    .mcw-submit-wrap { padding: 1.5rem; }
    .mcw-form-grid   { grid-template-columns: 1fr; }
    .mcw-form-footer { flex-direction: column; align-items: flex-start; }
}
