/* ==========================================================================
   InfiArtt — Knowledge Base: halaman sederhana (contribute.php, history.php)
   Dimuat setelah tokens.css dan ui.css (alias --kb-* ada di tokens.css).
   ========================================================================== */

body {
    margin: 0; padding: 0;
    background-color: var(--kb-bg);
    color: var(--kb-text);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.kb-header {
    background: var(--kb-sidebar);
    border-bottom: 1px solid var(--kb-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kb-title { font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; color: var(--color-text); text-decoration: none; }
.kb-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}
.kb-form-card {
    background: var(--kb-sidebar);
    border: 1px solid var(--kb-border);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
}
h1 { margin-top: 0; font-size: 2rem; font-weight: 800; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.form-text { color: var(--kb-text-dim); font-size: 0.85rem; margin-bottom: 0.5rem; }
.form-control, .form-select {
    width: 100%;
    background: var(--color-surface-raised);
    border: 2px solid var(--color-border-hover);
    color: var(--kb-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}
.form-control:focus, .form-select:focus {
    outline: var(--focus-outline);
    box-shadow: var(--focus-halo);
}
.btn-primary {
    background: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.section-title {
    border-bottom: 1px solid var(--kb-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-size: 1.25rem;
    color: var(--kb-accent);
}
.kb-step-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.kb-step-badge {
    flex-shrink: 0;
    background: var(--color-surface-2);
    color: var(--color-text);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
}
.row { display: flex; gap: 1.5rem; }
.col { flex: 1; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.kb-notice { margin-bottom: 2rem; }

/* Baris status terbit di bawah formulir */
.kb-publish-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px dashed var(--color-border-hover);
    border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Riwayat revisi (history.php)
   -------------------------------------------------------------------------- */
.kb-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
}
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.history-item:last-child {
    margin-bottom: 0;
}

.kb-small-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border-hover);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.kb-small-btn:hover {
    background: var(--color-surface-2);
}
.kb-small-btn--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-primary-foreground);
}
.kb-small-btn--primary:hover {
    background: var(--color-primary-dark);
}
