/* GO Contribute — front-end form + dashboard styling */

.go-contribute,
.go-my-articles {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1f232b;
}

.go-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}
.go-notice--ok    { background: #e6f4ea; color: #1b5e20; border: 1px solid #a5d6a7; }
.go-notice--error { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }

.go-contribute-form .go-field,
.go-contribute-form .go-seo {
    display: block;
    margin: 18px 0;
    padding: 0;
    border: 0;
}
.go-contribute-form fieldset.go-field,
.go-contribute-form fieldset.go-seo {
    border: 1px solid #e6e6e6;
    padding: 16px;
    border-radius: 8px;
    background: #fafafa;
}
.go-contribute-form legend {
    font-weight: 600;
    padding: 0 6px;
}
.go-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.go-field-label .muted,
.muted { color: #6b7280; font-weight: 400; font-size: 0.9em; }
.go-field-label .req { color: #b71c1c; }

.go-contribute-form input[type="text"],
.go-contribute-form input[type="url"],
.go-contribute-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #cbd0d6;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
}
.go-contribute-form textarea { resize: vertical; }

.go-radios label,
.go-checkbox {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 6px;
}
.go-term-picker {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}

.go-subfield { display: block; margin: 12px 0; }

.go-counter {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: right;
}
.go-counter.is-muted { color: #9ca3af; }
.go-counter.is-ok    { color: #1b5e20; }
.go-counter.is-warn  { color: #8a4b00; }
.go-counter.is-error { color: #b71c1c; }

.go-hint {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #fffdf4;
    border-left: 3px solid #f8b400;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.go-feat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: #fff;
    border: 1px dashed #cbd0d6;
    border-radius: 6px;
}
.go-feat-preview img { max-width: 320px; height: auto; border-radius: 4px; }
.go-feat-preview:empty::before {
    content: "No image chosen.";
    color: #6b7280;
    font-style: italic;
}
.go-feat-status {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
    max-width: 100%;
    line-height: 1.4;
}
.go-feat-status.is-ok    { display: block; background: #e6f4ea; color: #1b5e20; border: 1px solid #a5d6a7; }
.go-feat-status.is-warn  { display: block; background: #fff4e5; color: #8a4b00; border: 1px solid #f0c78a; }
.go-feat-status.is-error { display: block; background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }

.go-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e6e6e6;
}

.go-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.2;
    background: #eef1f4;
    color: #1f232b;
}
.go-btn:hover { filter: brightness(.97); }
.go-btn--primary   { background: #f8b400; color: #1f232b; }
.go-btn--secondary { background: #1f232b; color: #f6f7f7; }
.go-btn--ghost     { background: transparent; color: #1f232b; border: 1px solid #cbd0d6; }
.go-btn--danger    { background: #b71c1c; color: #fff; }
.go-btn--small     { padding: 6px 10px; font-size: 12px; }

.go-contribute-gate {
    max-width: 700px;
    margin: 40px auto;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    text-align: center;
}

/* Dashboard */
.go-my-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}
.go-my-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.go-my-table th,
.go-my-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
    vertical-align: middle;
}
.go-my-table th { background: #fafafa; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }
.go-my-actions-col { width: 220px; }
.go-my-actions { white-space: nowrap; }
.go-inline-form { display: inline; }

.go-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.go-status--publish { background: #e6f4ea; color: #1b5e20; }
.go-status--draft   { background: #fff4e5; color: #b26a00; }
.go-status--pending { background: #eef1f4; color: #4b5563; }
.go-status--private { background: #eef1f4; color: #4b5563; }
.go-status--future  { background: #e3f2fd; color: #0d47a1; }

@media (max-width: 700px) {
    .go-my-actions-col, .go-my-table th:nth-child(4), .go-my-table td:nth-child(4) { display: none; }
}

/* ---------- Copy AI prompt buttons ---------- */
.go-contribute .go-ai-tip {
    margin: 16px 0 8px;
    padding: 10px 14px;
    background: #fff8db;
    border: 1px solid #f2d769;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a3b00;
    line-height: 1.45;
}
.go-contribute .go-ai-tip em { font-style: normal; font-weight: 700; }
.go-contribute .go-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.go-contribute .go-prompt-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.go-contribute .go-prompt-btn.is-copied {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}
.go-contribute .go-prompt-btn.is-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #7f1d1d;
}
.go-contribute .go-prompt-btn__icon { font-size: 0.85rem; line-height: 1; }
.go-contribute .go-prompt-btn__status:not(:empty) {
    margin-left: 4px;
    font-weight: 500;
    font-size: 0.72rem;
}
.go-contribute .go-prompt-btn__status:empty { display: none; }

/* WP media modal — theme overrides "Upload Files" / "Media Library" tabs to white-on-white.
   Force admin-style contrast. Scoped to .media-modal so nothing outside the modal is touched. */
.media-modal .media-router .media-menu-item,
.media-modal .media-frame-menu-heading,
.media-modal .media-frame-title h1 {
    color: #1e293b !important;
}
.media-modal .media-router .media-menu-item.active,
.media-modal .media-router .media-menu-item:focus,
.media-modal .media-router .media-menu-item:hover {
    color: #0f172a !important;
}
.media-modal .media-router .media-menu-item {
    background: transparent !important;
}
.media-modal .media-router .media-menu-item.active {
    background: #fff !important;
    box-shadow: 0 -1px 0 #ddd inset !important;
}
