/*
 * DownloadNext v6.1.1 — Button/Nav Cleanup
 * Zweck: Doppelte interne Modulnavigation ausblenden und Button-Stil angleichen.
 * Keine Logikänderung, keine DB-Änderung.
 */

:root{
    --dn-clean-bg: var(--dsc-surface-2, rgba(28,20,13,.96));
    --dn-clean-bg-hover: var(--dsc-surface, rgba(42,30,18,.98));
    --dn-clean-border: var(--dsc-border, rgba(255,153,0,.30));
    --dn-clean-border-strong: var(--dsc-border-strong, rgba(255,184,76,.56));
    --dn-clean-text: var(--dsc-text, #f7e5c7);
    --dn-clean-muted: var(--dsc-muted, #c7ad86);
    --dn-clean-accent: var(--dsc-accent, #ff9900);
    --dn-clean-radius: var(--dsc-radius-sm, 12px);
}

/* Alte doppelte Modulnavigation ausblenden; neue Hero-Tabs in der Shell nicht verstecken. */
.downloadnext-module-nav:not(.stossachse-hero-tabs){
    display:none !important;
}

/* Hero-Aktionsbuttons waren auf vielen Seiten Duplikate der zentralen Modulnavigation. */
.downloadnext-hero-actions,
.downloadnext-header-actions,
.downloadnext-owner-tools{
    display:none !important;
}

/* Buttons: einheitliche dunkle Bronze-Basis statt gemischter Orange/Rot/Altstile. */
.downloadnext-button,
.downloadnext-button-ghost,
.downloadnext-mini-button,
.downloadnext-mini-button-primary,
.downloadnext-filter-reset,
.downloadnext-readmore,
.downloadnext-nav-pill,
.downloadnext-report-tabs a,
.downloadnext-admin-actions a,
.downloadnext-admin-actions button,
.downloadnext-inline-form button,
.downloadnext-card-actions a,
.downloadnext-card-actions button,
.downloadnext-form-actions a,
.downloadnext-form-actions button,
.downloadnext-filters button,
.downloadnext-form button,
.downloadnext-edit-form button,
.downloadnext-v6-form button,
.downloadnext-review-form button,
.downloadnext-report-form button,
.downloadnext-collection-actions a,
.downloadnext-collection-actions button,
.downloadnext-collection-toggle button,
.downloadnext-release-actions a,
.downloadnext-release-actions button,
a.downloadnext-button,
button.downloadnext-button,
a.downloadnext-mini-button,
button.downloadnext-mini-button{
    appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-height:38px !important;
    width:auto !important;
    max-width:100% !important;
    padding:9px 14px !important;
    border-radius:var(--dn-clean-radius) !important;
    border:1px solid var(--dn-clean-border) !important;
    background:linear-gradient(180deg, rgba(42,30,18,.96), rgba(12,10,8,.98)) !important;
    color:var(--dn-clean-text) !important;
    font-weight:800 !important;
    line-height:1.15 !important;
    text-decoration:none !important;
    box-shadow:0 10px 24px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.04) !important;
    cursor:pointer !important;
    white-space:normal !important;
    text-align:center !important;
}

.downloadnext-button:hover,
.downloadnext-button-ghost:hover,
.downloadnext-mini-button:hover,
.downloadnext-filter-reset:hover,
.downloadnext-readmore:hover,
.downloadnext-admin-actions a:hover,
.downloadnext-admin-actions button:hover,
.downloadnext-inline-form button:hover,
.downloadnext-card-actions a:hover,
.downloadnext-card-actions button:hover,
.downloadnext-form-actions a:hover,
.downloadnext-form-actions button:hover,
.downloadnext-filters button:hover,
.downloadnext-form button:hover,
.downloadnext-edit-form button:hover,
.downloadnext-v6-form button:hover,
.downloadnext-review-form button:hover,
.downloadnext-report-form button:hover{
    border-color:var(--dn-clean-border-strong) !important;
    background:linear-gradient(180deg, rgba(58,40,22,.98), rgba(18,14,10,.98)) !important;
    color:#fff4df !important;
    filter:none !important;
    transform:translateY(-1px);
}

/* Gefährliche Aktionen dürfen farblich warnen, aber bleiben formal identisch. */
.downloadnext-danger,
.downloadnext-admin-actions .downloadnext-danger,
.downloadnext-admin-actions button[name="delete"],
.downloadnext-admin-actions button[value="delete"],
.downloadnext-inline-form button[value="delete"]{
    border-color:rgba(255,90,90,.42) !important;
    color:#ffd2c9 !important;
    background:linear-gradient(180deg, rgba(58,24,20,.96), rgba(18,9,8,.98)) !important;
}

/* Cards und Aktionsbereiche sauberer einfangen. */
.downloadnext-grid,
.downloadnext-v6-grid,
.downloadnext-admin-grid,
.downloadnext-collection-grid,
.downloadnext-history-list,
.downloadnext-related-grid{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

.downloadnext-card,
.downloadnext-release,
.downloadnext-filter-panel,
.downloadnext-admin-list,
.downloadnext-v6-box,
.downloadnext-v6-form-panel{
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
}

.downloadnext-card-actions,
.downloadnext-admin-actions,
.downloadnext-form-actions,
.downloadnext-release-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    align-items:center !important;
}

.downloadnext-card-actions form,
.downloadnext-admin-actions form,
.downloadnext-form-actions form,
.downloadnext-release-actions form{
    margin:0 !important;
}

.downloadnext-filters{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr)) !important;
    gap:10px !important;
    align-items:center !important;
}
.downloadnext-filters button,
.downloadnext-filter-reset{
    min-height:42px !important;
}

/* Badges/Chips auf denselben Bronze-Rhythmus bringen. */
.downloadnext-badge,
.downloadnext-tag,
.downloadnext-meta span,
.downloadnext-community-chip,
.downloadnext-status,
.downloadnext-mini-badge{
    border-color:var(--dn-clean-border) !important;
    background:rgba(27,19,12,.88) !important;
    color:#f3d39d !important;
}
