/* Discord Viewer (Views/discord_viewer.php), Aufbau wie teamspeak_viewer.css */

.carousel-indicators {
    display: none !important;
}

.landing-wrapper {
    height: 0px !important;
    min-height: 0px !important;
    margin-bottom: 25px !important;
}

.home-wrapper {
    display: none;
}

/* Abstand zur Kopfzeile und Breite wie beim Teamspeak Viewer (dort in style.css/responsive.css) */
.header-abstand-discord-viewer {
    margin-top: 165px;
}

.container-discord-viewer {
    padding-left: 30px;
    padding-right: 30px;
}

@media (min-width: 1300px) {
    .container-discord-viewer {
        max-width: 1315px;
    }
}

/* Info-Kasten oben */
.container-discord-viewer .table td {
    color: #fff;
}

.container-discord-viewer .table tr {
    border-bottom: 1px solid #47483a;
}

.container-discord-viewer .table-text {
    padding: 10px 12px !important;
    font-size: 14px;
}

.dc-error {
    color: #e0a0a0;
}

.dc-join {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--template-color, #faffa9);
    color: #131313 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.dc-join:hover,
.dc-join:focus-visible {
    background: #fff;
    outline: none;
}

.dc-join-hint {
    display: block;
    margin-top: 6px;
    color: #9a9a9a;
    font-size: 12px;
}

/* ---------- Viewer ---------- */
.container-discord-viewer .dc-viewer {
    padding: 12px !important;
    font-size: 14px;
    color: #fff;
}

.container-discord-viewer .dc-table {
    margin-bottom: 0;
}

.dc-heading {
    margin: 16px 0 4px;
    color: #9a9a9a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dc-tree {
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
}

.dc-tree li {
    margin: 0;
    padding: 0;
}

.dc-tree li::before {
    content: none;
}

.dc-users {
    padding-left: 22px;
}

.dc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    color: #fff;
}

.dc-server {
    font-weight: 700;
}

.dc-server i,
.dc-channel i {
    width: 16px;
    color: var(--template-color, #faffa9);
    text-align: center;
}

.dc-channel.is-empty {
    color: #9a9a9a;
}

.dc-channel.is-empty i {
    color: #6a6a6a;
}

.dc-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-name small {
    display: block;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.3;
}

.dc-count {
    flex: 0 0 auto;
    padding: 0 7px;
    border-radius: 9px;
    background: #2a2a2a;
    color: #bdbdbd;
    font-size: 12px;
}

.dc-user {
    padding: 3px 0;
    border-top: 1px solid #222;
}

/* Profilbild mit Statuspunkt unten rechts */
.dc-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.dc-avatar img,
.dc-initial {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.dc-initial {
    background: #2f2f2f;
    color: #ddd;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.dc-avatar::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #1d1d1d;
    border-radius: 50%;
    background: #43b581;
}

.dc-status-idle::after {
    background: #faa61a;
}

.dc-status-dnd::after {
    background: #f04747;
}

.dc-flags {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    color: #f04747;
    font-size: 13px;
}

.dc-empty {
    padding: 6px 0 0 8px;
    color: #9a9a9a;
}

@media (max-width: 1299px) {
    .container-discord-viewer {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 991px) {
    .header-abstand-discord-viewer {
        margin-top: 125px;
    }
}

@media (max-width: 767px) {
    .container-discord-viewer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .dc-viewer {
        font-size: 13px;
    }

    .dc-users {
        padding-left: 14px;
    }
}
