/* Audio Chat Room Styles (Discord-inspired, Dark Mode, Minimal) */

:root {
    --ar-bg: #1e1f22;
    --ar-panel: #2b2d31;
    --ar-panel-hover: #313338;
    --ar-text: #dbdee1;
    --ar-text-muted: #949ba4;
    --ar-primary: #5865f2;
    --ar-primary-hover: #4752c4;
    --ar-danger: #da373c;
    --ar-danger-hover: #a12828;
    --ar-success: #23a559;
    --ar-border: #1e1f22;
    --ar-radius: 8px;
}

body.audio-room-active {
    background-color: var(--ar-bg) !important;
    color: var(--ar-text) !important;
}

.audio-wrapper {
    max-width: 900px;
    margin: 20px auto;
    background: var(--ar-panel);
    border-radius: var(--ar-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    min-height: 70vh;
}

/* Header */
.ar-header {
    padding: 16px 20px;
    background: var(--ar-bg);
    border-bottom: 1px solid var(--ar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ar-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ar-badge {
    background: var(--ar-primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Center Area (Users) */
.ar-body {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    align-content: center;
    background: var(--ar-panel);
}

.ar-user-card {
    background: var(--ar-bg);
    border-radius: 12px;
    padding: 20px;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.ar-user-card[data-is-me="true"] {
    border: 1px solid rgba(255,255,255,0.05);
}

.ar-avatar-wrap {
    position: relative;
    margin-bottom: 12px;
}

.ar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ar-panel);
    border: 3px solid transparent;
    transition: border-color 0.1s;
}

/* Speaking Indicator */
.ar-user-card.is-speaking .ar-avatar {
    border-color: var(--ar-success);
    box-shadow: 0 0 0 3px rgba(35, 165, 89, 0.3);
}

.ar-mute-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--ar-danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--ar-bg);
    display: none;
}

.ar-user-card.is-muted .ar-mute-icon {
    display: flex;
}

.ar-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ar-text);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls */
.ar-controls {
    padding: 20px;
    background: var(--ar-bg);
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid var(--ar-border);
}

.ar-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--ar-panel-hover);
    color: var(--ar-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.ar-btn:hover {
    background: #404249;
}

.ar-btn.active {
    background: var(--ar-primary);
    color: white;
}

.ar-btn.danger {
    background: var(--ar-danger);
    color: white;
}

.ar-btn.danger:hover {
    background: var(--ar-danger-hover);
}

.ar-status-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ar-text-muted);
    padding: 8px;
    background: var(--ar-panel);
}

/* Base styles override for container */
.audio-container {
    max-width: 900px;
    margin: 0 auto;
}
