/* =======================================================
   TS3 Server Viewer - Dark Design CSS
======================================================= */

/* -----------------------------
   Gesamtcontainer
----------------------------- */
.ts3ssv {
    width: 100%;
    max-width: 1300px; /* optional: max-Breite */
    margin: 0 auto;
    font-family: Verdana, sans-serif;
    color: #fff;
    box-sizing: border-box;
}

/* -----------------------------
   Hauptchannel
----------------------------- */
.ts3ssvMainChannel {
    margin-bottom: 20px;
}

.ts3ssvMainChannelHeader {
    font-size: 20px;
    font-weight: bold;
    color: #FAD73C;

    border-left: 3px solid #ebb43d;
    border-right: 1px solid #20222f;
    border-top: 1px solid #20222f;
    border-bottom: 1px solid #20222f;

    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: rgba(40, 40, 50, 0.5);
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3), /* links unten */
                5px 5px 10px rgba(0, 0, 0, 0.3);  /* rechts unten */
}

/* -----------------------------
   Subchannels
----------------------------- */
.ts3ssvSubChannel {
    border-left: 3px solid #6e6e6e;
    border-right: 1px solid #20222f;
    border-top: 1px solid #20222f;
    border-bottom: 1px solid #20222f;
    margin-left: 20px;
    margin-bottom: 10px;
    padding: 5px;
    background-color: rgba(30, 30, 40, 0.3);
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3),
                5px 5px 10px rgba(0, 0, 0, 0.3);
}

.ts3ssvSubChannelHeader {
    font-size: 16px;
    font-weight: bold;
    color: #ced1dd;
    padding: 3px 8px;
}

/* -----------------------------
   User-Container unter Subchannel
----------------------------- */
.ts3ssvUsers {
    margin-left: 40px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Einzelner User */
.ts3ssvUser {
    background-color: rgba(20, 25, 35, 0.2);
    border: 1px solid #20222f;
    padding: 2px 8px 2px 30px;
    position: relative;
    display: inline-block;

    font-size: 17px;
    font-weight: bold;
    color: #ebb43d;
    border-radius: 25px;

    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3),
                5px 5px 10px rgba(0, 0, 0, 0.3);
}

/* Unicode Icon als Avatar */
.ts3ssvUser::before {
    content: "🗣️";
    color: #ebb43d;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* Einzelner User-Block für Items */
.ts3ssvUsers .ts3ssvItem {
    background-color: #101413;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: bold;
    color: #fceb98;
    cursor: default;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

/* Hover-Effekt für User */
.ts3ssvUsers .ts3ssvItem:hover {
    background-color: #0b0b09;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* -----------------------------
   Verhindert Markieren von Text
----------------------------- */
.ts3ssvItem, .ts3ssvSubChannel, .ts3ssvMainChannel {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* -----------------------------
   Icons für Channels/Flags
----------------------------- */
.ts3ssvItem img {
    vertical-align: middle;
    margin-right: 5px;
}

/* -----------------------------
   Leerer Bereich
----------------------------- */
.ts3UserEmpty {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 240px;
    font-size: 18px;
}

/* -----------------------------
   Custom User
----------------------------- */
.ts_user {
    background-color: rgba(20, 25, 35, 0.2);
    border: 1px solid #20222f;
    padding: 2px 8px 2px 30px;
    position: relative;
    display: block;
    width: calc(100% - 10px);
    margin: 5px;

    font-size: 17px;
    font-weight: bold;
    color: #ebb43d;
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.3),
                5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
}

/* Unicode Icon als Avatar */
.ts_user::before {
    content: "🗣️";
    color: #ebb43d;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* -----------------------------
   Responsive Anpassung für Mobile
----------------------------- */
@media (max-width: 768px) {
    .ts3ssvUsers {
        flex-direction: column;
        margin-left: 0;
    }

    .ts3ssvSubChannel {
        margin-left: 0;
    }

    .ts3ssvMainChannel {
        padding: 0;
    }

    .ts3ssvMainChannelHeader {
        font-size: 15px;
        padding: 0 8px;
    }

    .ts3ssvSubChannelHeader {
        font-size: 12px;
        padding: 0 5px;
    }

    .ts3ssvUsers .ts3ssvItem {
        font-size: 12px;
        padding: 0 5px;
    }

    .ts3ssvUser {
        font-size: 12px;
    }
}