/* YUMI Distro Manager — Public Table */

.yumi-distros {
    font-family: inherit;
    margin: 1.5em 0;
    width: 100%;
    box-sizing: border-box;
}

.yumi-distros__toolbar {
    display: flex !important;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Override Astra theme input resets */
.yumi-distros__search,
.yumi-distros__filter {
    all: unset;
    display: block;
    padding: 8px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #111827 !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    appearance: auto;
    -webkit-appearance: auto;
}

.yumi-distros__search {
    flex: 1 1 200px;
    min-width: 0;
    width: auto !important;
    max-width: 100% !important;
}

.yumi-distros__filter {
    flex: 0 0 auto;
    cursor: pointer;
}

.yumi-distros .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
}

#yumi-distros-table-wrap {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
    overflow-x: auto;
    overflow-y: visible;
}

.yumi-distros__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.yumi-distros__table thead {
    background: #1e3a5f;
    color: #fff;
}

.yumi-distros__table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.yumi-col-persist,
.yumi-distros__table th:last-child,
.yumi-distros__table td:last-child {
    width: 90px;
    white-space: nowrap;
    text-align: center;
}

.yumi-distros__table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}

.yumi-distros__table tbody tr:last-child { border-bottom: none; }
.yumi-distros__table tbody tr:hover { background: #f0f6ff; }

.yumi-distros__table td {
    padding: 9px 12px;
    vertical-align: middle;
    color: #374151;
    line-height: 1.4;
    word-break: break-word;
}

.yumi-distros__name { font-weight: 600; color: #1e3a5f; display: block; }
.yumi-distros__official { font-size: 11px; color: #6b7280; display: block; margin-bottom: 4px; }
.yumi-distros__description { font-size: 12px; color: #4b5563; display: block; margin-top: 3px; line-height: 1.4; }
.yumi-distros__links { display: block; margin-top: 5px; }

.yumi-distros__link {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    margin-right: 4px;
    transition: opacity .12s;
}

.yumi-distros__link:hover { opacity: .8; text-decoration: none !important; }
.yumi-distros__link--download { background: #2563eb !important; color: #fff !important; }
.yumi-distros__link--home { background: #f3f4f6 !important; color: #374151 !important; border: 1px solid #d1d5db !important; }

.yumi-distros__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
    white-space: nowrap;
}

.yumi-distros__none { color: #9ca3af; }

.yumi-distros__category-header td {
    background: #f9fafb !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #6b7280 !important;
    padding: 7px 12px !important;
    border-top: 2px solid #e5e7eb !important;
}

.yumi-distros__loading td,
.yumi-distros__empty td { padding: 24px; text-align: center; color: #6b7280; font-style: italic; }
.yumi-distros__count { font-size: 13px; color: #6b7280; margin-top: 8px; }

@media (prefers-color-scheme: dark) {
    #yumi-distros-table-wrap            { border-color: #374151; }
    .yumi-distros__table thead          { background: #111827; }
    .yumi-distros__table tbody tr       { border-color: #1f2937; }
    .yumi-distros__table tbody tr:hover { background: #1f2937; }
    .yumi-distros__table td             { color: #d1d5db; }
    .yumi-distros__name                 { color: #93c5fd; }
    .yumi-distros__description          { color: #9ca3af; }
    .yumi-distros__category-header td  { background: #111827 !important; color: #9ca3af !important; border-color: #374151 !important; }
    .yumi-distros__search,
    .yumi-distros__filter               { background: #1f2937 !important; border-color: #374151 !important; color: #f9fafb !important; }
    .yumi-distros__link--home           { background: #1f2937 !important; color: #d1d5db !important; border-color: #374151 !important; }
}
