/* Wiki article — Edit History tab (aligned with profile Contributions) */

.wiki-edits-history {
    width: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Toolbar — same as .contrib-toolbar */
.wiki-edits-toolbar {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #cbd1e2;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4vw;
    margin-bottom: 0.8vw;
}

.wiki-edits-count {
    margin: 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.35;
}

.wiki-edits-count strong {
    color: #4f6ef7;
    font-weight: 700;
}

/* Sort — same as .contrib-sort-btn */
.wiki-edits-sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #cbd1e2;
    background: transparent;
    font-size: 0.75vw;
    font-weight: 600;
    color: #667085;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.wiki-edits-sort-btn:hover {
    background: rgba(79, 110, 247, 0.06);
}

.wiki-edits-sort-icon,
.wiki-edits-sort-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .wiki-edits-sort-btn {
        font-size: 13px;
    }
}

/* List card — same as .contrib-list-card */
.wiki-edits-list-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #cbd1e2;
    overflow: hidden;
}

.wiki-edits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Row — same as .contrib-row (center text with icon) */
.wiki-edits-row {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef0f3;
    transition: all 0.2s;
}

.wiki-edits-row:last-child {
    border-bottom: none;
}

.wiki-edits-row:hover {
    background: rgba(79, 110, 247, 0.02);
}

/* Icon box — .contrib-row-icon size; glyph slightly smaller than default 18px */
.wiki-edits-row-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 110, 247, 0.1);
    color: #4f6ef7;
}

.wiki-edits-row-icon .lucide-icon,
.wiki-edits-row-icon svg {
    width: 15px;
    height: 15px;
}

/* Body — same idea as .contrib-row-body */
.wiki-edits-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* One line: same base size for username, “edited…”, date */
.wiki-edits-row-line {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #111318;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2vw;
    min-width: 0;
}

/* User link — like .contrib-link (contributions), @ prefix in markup */
.wiki-edits-user-link {
    font-size: 14px;
    font-weight: 600;
    color: #4f6ef7;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.wiki-edits-user-link:hover {
    text-decoration: underline;
    color: #3d5ed9;
}

.wiki-edits-action {
    font-size: 14px;
    color: #667085;
    font-weight: 400;
    flex-shrink: 0;
}

.wiki-edits-time {
    font-size: 14px;
    font-weight: 400;
    color: #111318;
}

.wiki-edits-time--unknown {
    font-size: 14px;
    color: #667085;
    font-style: italic;
    font-weight: 400;
}

.wiki-edits-user-fallback {
    font-size: 14px;
    font-weight: 700;
    color: #111318;
    flex-shrink: 0;
}

/* Empty — compact card matching list border style */
.wiki-edits-empty-card {
    text-align: center;
    padding: 24px 14px;
    background: #fff;
    border: 1px solid #cbd1e2;
    border-radius: 8px;
    color: #667085;
}

.wiki-edits-empty-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    opacity: 0.5;
    color: #4f6ef7;
}

.wiki-edits-empty-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #667085;
}

@media (max-width: 640px) {
    .wiki-edits-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wiki-edits-sort-btn {
        justify-content: center;
    }
}
