/* Steam-Design für Frontend */
.gaming-hub-container {
    font-family: "Motiva Sans", Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
}

.steam-panel {
    background: linear-gradient(to bottom, rgba(27, 40, 56, 0.98) 0%, rgba(23, 26, 33, 0.98) 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.steam-panel:hover {
    border-color: rgba(102, 192, 244, 0.5);
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(102, 192, 244, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-header {
    background: linear-gradient(to right, rgba(102, 192, 244, 0.15) 0%, rgba(102, 192, 244, 0.05) 100%);
    border-bottom: 1px solid rgba(102, 192, 244, 0.3);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header svg {
    width: 24px;
    height: 24px;
    color: #7289da;
    filter: drop-shadow(0 0 8px rgba(114, 137, 218, 0.5));
}

.panel-header .ts-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(37, 128, 195, 0.5));
}

.panel-header h3 {
    color: #c7d5e0;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 
        0 0 8px #43b581,
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.panel-content {
    padding: 20px;
}

.server-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 192, 244, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #8f98a0;
    font-size: 14px;
    font-weight: 500;
}

.info-row .value {
    color: #c7d5e0;
    font-size: 14px;
    font-weight: 600;
}

.online-count {
    color: #43b581;
    text-shadow: 0 0 5px rgba(67, 181, 129, 0.5);
}

.channels-list {
    margin-bottom: 20px;
}

.channels-list h4 {
    color: #8f98a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    margin: 6px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.channel-item:hover {
    background: rgba(102, 192, 244, 0.1);
    border-left: 3px solid #66c0f4;
    padding-left: 9px;
}

.channel-icon {
    color: #8f98a0;
    font-size: 16px;
    font-weight: bold;
    min-width: 20px;
}

.channel-name {
    color: #c7d5e0;
    font-size: 14px;
    flex-grow: 1;
}

.user-count {
    color: #8f98a0;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
    margin-left: 15px;
    padding: 3px 10px; /* Badge etwas größer machen */
    letter-spacing: 0.5px;
    border-radius: 10px;
}

.channel-item.voice .channel-icon {
    color: #7289da;
}

.channel-item.ts-channel.sub {
    margin-left: 20px;
}

.chat-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 20px;
}

.chat-section h4 {
    color: #66c0f4;
    font-size: 14px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-chat-form input,
.discord-chat-form textarea {
    width: 100%;
    background: rgba(27, 40, 56, 0.8);
    border: 1px solid rgba(102, 192, 244, 0.3);
    border-radius: 3px;
    color: #c7d5e0;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.discord-chat-form input:focus,
.discord-chat-form textarea:focus {
    outline: none;
    border-color: #66c0f4;
    background: rgba(27, 40, 56, 1);
    box-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

.discord-chat-form textarea {
    resize: vertical;
    min-height: 80px;
}

.discord-chat-form button {
    width: 100%;
    background: linear-gradient(to bottom, #5c7e10 0%, #4e6a0e 100%);
    border: 1px solid #4e6a0e;
    border-radius: 3px;
    color: #d2e885;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discord-chat-form button:hover {
    background: linear-gradient(to bottom, #678a1d 0%, #5c7e10 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.discord-chat-form button:active {
    transform: translateY(0);
}

.join-button-container {
    text-align: center;
}

.join-button {
    display: inline-block;
    background: linear-gradient(135deg, #5c7e10 0%, #678a1d 100%);
    border: 1px solid #4e6a0e;
    border-radius: 3px;
    color: #d2e885;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.join-button:hover::before {
    left: 100%;
}

.join-button:hover {
    background: linear-gradient(135deg, #678a1d 0%, #7a9c25 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(103, 138, 29, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.join-button:active {
    transform: translateY(-1px);
}

/* Theme Variationen */
.theme-blue .panel-header {
    background: linear-gradient(to right, rgba(102, 192, 244, 0.15) 0%, rgba(102, 192, 244, 0.05) 100%);
}

.theme-green .panel-header {
    background: linear-gradient(to right, rgba(103, 138, 29, 0.15) 0%, rgba(103, 138, 29, 0.05) 100%);
}

.theme-purple .panel-header {
    background: linear-gradient(to right, rgba(114, 137, 218, 0.15) 0%, rgba(114, 137, 218, 0.05) 100%);
}

.theme-red .panel-header {
    background: linear-gradient(to right, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
}

/* Discord spezifisch */
.discord-panel .panel-header svg {
    color: #7289da;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gaming-hub-container {
        margin: 10px;
    }
    
    .steam-panel {
        border-radius: 2px;
    }
    
    .panel-header {
        padding: 12px 15px;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .join-button {
        width: 100%;
        padding: 15px;
    }
}

/* Online Users Section */
.online-users-section {
    margin-bottom: 20px;
}

.online-users-section h4 {
    color: #66c0f4;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 0 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px #43b581;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.user-badge {
    background: linear-gradient(135deg, #5c7e10 0%, #4e6a0e 100%);
    color: #d2e885;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.users-list {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: 3px;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.users-list::-webkit-scrollbar {
    width: 8px;
}

.users-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #5c7e10 0%, #4e6a0e 100%);
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #678a1d 0%, #5c7e10 100%);
}

.user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 8px 0;
    background: rgba(27, 40, 56, 0.6);
    border-radius: 3px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-item:hover {
    background: rgba(102, 192, 244, 0.1);
    border-left-color: #66c0f4;
    transform: translateX(3px);
}
/* Suche diesen Block und ersetze ihn komplett */
.user-avatar {
    width: 24px;
    height: 24px;
    background-color: #2a475e !important; /* Steam-Blau statt Grün! */
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: #66c0f4; /* Farbe des Buchstabens */
    font-size: 11px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1b2838;
    background: #43b581;
    box-shadow: 0 0 6px rgba(67, 181, 129, 0.8);
}

.user-status-indicator.idle {
    background: #faa61a;
    box-shadow: 0 0 6px rgba(250, 166, 26, 0.8);
}

.user-status-indicator.dnd {
    background: #f04747;
    box-shadow: 0 0 6px rgba(240, 71, 71, 0.8);
}

.user-status-indicator.offline {
    background: #747f8d;
    box-shadow: none;
}

.user-info {
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    color: #c7d5e0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-channel {
    color: #8f98a0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.user-channel-icon {
    font-size: 10px;
}

.user-voice-indicators {
    display: flex;
    gap: 6px;
    align-items: center;
}

.voice-indicator {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    font-size: 12px;
}

.voice-indicator.muted {
    color: #f04747;
}

.voice-indicator.deafened {
    color: #8f98a0;
}

.voice-users-list {
    margin-top: 18px;
    margin-left: 45px;
    display: none;
}

.channel-item.has-users .voice-users-list {
    display: block;
}

.voice-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    margin: 5px 0;
    font-size: 13px;
    color: #c7d5e0;
}

.voice-user-item .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.loading-state {
    text-align: center;
    padding: 30px 20px;
    color: #8f98a0;
}

.steam-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(102, 192, 244, 0.2);
    border-top-color: #66c0f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(102, 192, 244, 0.3);
    border-top-color: #66c0f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #8f98a0;
    font-size: 14px;
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Channel mit Usern Highlight */
.channel-item.has-users {
    background: rgba(102, 192, 244, 0.08);
    border-left: 3px solid #66c0f4;
}

.channel-item.has-users .user-count {
    background: #5c7e10;
    color: #d2e885;
    font-weight: 600;
}

/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-item {
    animation: fadeIn 0.3s ease-out;
}

/* User Item Hover Effekt */
.user-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #66c0f4 0%, #5c7e10 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.user-item:hover::before {
    opacity: 1;
}
.empty-state {
    animation: pulse-border 3s infinite ease-in-out;
}

@keyframes pulse-border {
    0% { border-color: rgba(102,192,244,0.1); }
    50% { border-color: rgba(102,192,244,0.4); }
    100% { border-color: rgba(102,192,244,0.1); }
}