/**
 * Frontend CSS für BFS TeamSpeak Viewer
 *
 * @package    BFS\TeamspeakViewer
 * @subpackage Assets
 * @since      1.0.0
 */

/* === BFS TeamSpeak Viewer Styles === */
.bfs-ts-viewer {
    background: #252936;
    color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Saira Condensed', 'Roboto', 'Segoe UI', sans-serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin: 20px 0;
    border: 1px solid #333;
    /* Flexible Höhe - passt sich dem Inhalt an */
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.bfs-ts-viewer__header {
    border-bottom: 2px solid #00bcd4;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bfs-ts-viewer__server-name {
    font-size: 1.8rem; /* Vergrößert von 1.5rem */
    font-weight: bold;
    color: #00bcd4;
    margin: 0;
    font-family: 'Saira Condensed', sans-serif;
}

.bfs-ts-viewer__user-count {
    background: #00bcd4;
    color: #1a1a1a;
    padding: 10px 18px; /* Etwas mehr Padding */
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem; /* Vergrößert von 0.9rem */
    font-family: 'Saira Condensed', sans-serif;
}

.bfs-ts-viewer__channels {
    margin: 15px 0;
}

.bfs-ts-viewer__channel {
    padding: 12px 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.bfs-ts-viewer__channel:hover {
    border-left-color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
    padding-left: 10px;
}

.bfs-ts-viewer__channel--level-0 { padding-left: 0; }
.bfs-ts-viewer__channel--level-1 { padding-left: 20px; }
.bfs-ts-viewer__channel--level-2 { padding-left: 40px; }
.bfs-ts-viewer__channel--level-3 { padding-left: 60px; }

.bfs-ts-viewer__channel-icon {
    color: #00bcd4;
    margin-right: 8px;
    font-size: 1.1rem;
}

.bfs-ts-viewer__channel-name {
    font-weight: 500;
    color: #ffffff;
    font-family: 'Saira Condensed', sans-serif;
    font-size: 1.3rem; /* Vergrößert von 1.1rem */
}

.bfs-ts-viewer__client {
    color: #e0e0e0; /* Noch heller für bessere Lesbarkeit */
    padding: 12px 0 12px 40px; /* Mehr Padding */
    font-size: 1.25rem; /* Vergrößert von 1.1rem */
    border-left: 2px solid #333;
    margin: 4px 0; /* Mehr Abstand */
    transition: all 0.3s ease;
    line-height: 1.5; /* Bessere Zeilenhöhe */
}

.bfs-ts-viewer__client:hover {
    color: #ffffff;
    border-left-color: #00bcd4;
    background: rgba(0, 188, 212, 0.08); /* Stärkerer Hover-Effekt */
    padding-left: 45px; /* Leichte Verschiebung bei Hover */
}

.bfs-ts-viewer__client--away {
    opacity: 0.5;
    font-style: italic;
}

.bfs-ts-viewer__footer {
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-top: 20px;
    text-align: center;
    font-size: 1rem; /* Vergrößert von 0.8rem */
    color: #a0a0a0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.bfs-ts-viewer__uptime {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.bfs-ts-viewer__connect-section {
    margin-top: 10px;
}

.bfs-ts-viewer__connect-button {
    display: inline-block;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #1a1a1a;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: 'Saira Condensed', sans-serif;
    border: 2px solid #00bcd4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.3);
    text-align: center;
    min-width: 220px;
    white-space: nowrap;
}

.bfs-ts-viewer__connect-button:hover {
    background: linear-gradient(135deg, #0097a7, #00bcd4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 188, 212, 0.5);
    text-decoration: none;
}

.bfs-ts-viewer__connect-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 188, 212, 0.3);
}

.bfs-ts-error {
    background: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ff6666;
}

.bfs-ts-viewer__user-count--updated {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === Responsive Breakpoints === */
@media (max-width: 768px) {
    .bfs-ts-viewer {
        padding: 15px;
    }
    
    .bfs-ts-viewer__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bfs-ts-viewer__server-name {
        font-size: 1.2rem;
    }
    
    .bfs-ts-viewer__channel--level-1 { padding-left: 15px; }
    .bfs-ts-viewer__channel--level-2 { padding-left: 30px; }
    .bfs-ts-viewer__channel--level-3 { padding-left: 45px; }
    
    .bfs-ts-viewer__client {
        padding-left: 30px;
        font-size: 1.15rem; /* Vergrößert für Mobile */
    }
    
    .bfs-ts-viewer__client:hover {
        padding-left: 35px; /* Angepasste Hover-Verschiebung auf Mobile */
    }
    
    .bfs-ts-viewer__channel-name {
        font-size: 1.2rem; /* Vergrößert für Mobile */
    }
    
    .bfs-ts-viewer__user-count {
        font-size: 1rem; /* Angepasst für Mobile */
    }
    
    /* Mobile-spezifische Button-Styles */
    .bfs-ts-viewer__connect-button {
        font-size: 1.2rem;
        padding: 14px 28px;
        min-width: 100%;
        display: block;
        margin: 0 auto;
        max-width: 280px;
        background: linear-gradient(135deg, #00bcd4, #0097a7);
        color: #1a1a1a;
        border: 2px solid #00bcd4;
        box-shadow: 0 4px 8px rgba(0, 188, 212, 0.3);
    }
    
    .bfs-ts-viewer__connect-button:hover {
        background: linear-gradient(135deg, #0097a7, #00bcd4);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 188, 212, 0.5);
    }
    
    .bfs-ts-viewer__connect-section {
        width: 100%;
        text-align: center;
    }
}

/* Legacy-Klassen für Abwärtskompatibilität */
.bfs-teamspeak-viewer {
    composes: bfs-ts-viewer;
}