/* OBS Overlay Styles - Transparent Background */

:root {
    --primary-color: #53fc18;
    --primary-dark: #3dd613;
    --primary-glow: rgba(83, 252, 24, 0.5);
    --border-color: rgba(83, 252, 24, 0.6);
    --box-shadow: rgba(83, 252, 24, 0.2);
}

/* Themes */
[data-theme="blue"] {
    --primary-color: #4a9eff;
    --primary-dark: #2d5a87;
    --primary-glow: rgba(74, 158, 255, 0.5);
    --border-color: rgba(74, 158, 255, 0.6);
    --box-shadow: rgba(74, 158, 255, 0.2);
}

[data-theme="purple"] {
    --primary-color: #9d4eff;
    --primary-dark: #6e2d87;
    --primary-glow: rgba(157, 78, 255, 0.5);
    --border-color: rgba(157, 78, 255, 0.6);
    --box-shadow: rgba(157, 78, 255, 0.2);
}

[data-theme="red"] {
    --primary-color: #ff4e4e;
    --primary-dark: #872d2d;
    --primary-glow: rgba(255, 78, 78, 0.5);
    --border-color: rgba(255, 78, 78, 0.6);
    --box-shadow: rgba(255, 78, 78, 0.2);
}

[data-theme="orange"] {
    --primary-color: #ff9e4e;
    --primary-dark: #875a2d;
    --primary-glow: rgba(255, 158, 78, 0.5);
    --border-color: rgba(255, 158, 78, 0.6);
    --box-shadow: rgba(255, 158, 78, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Default: bottom */
    justify-content: flex-start;
    /* Default: left */
    padding: 20px;
    transition: all 0.3s ease;
}

/* Positions */
body.bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

body.bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

body.top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

body.top-right {
    align-items: flex-start;
    justify-content: flex-end;
}

#overlay-container {
    width: 100%;
    max-width: 500px;
}

#speaker-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 16px;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--box-shadow);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Animation directions based on position */
/* Bottom positions: slide down to hide */
body.bottom-left #speaker-indicator.hidden,
body.bottom-right #speaker-indicator.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

body.bottom-left #speaker-indicator.switching,
body.bottom-right #speaker-indicator.switching {
    transform: translateY(10px);
    opacity: 0;
}

/* Top positions: slide up to hide */
body.top-left #speaker-indicator.hidden,
body.top-right #speaker-indicator.hidden {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}

body.top-left #speaker-indicator.switching,
body.top-right #speaker-indicator.switching {
    transform: translateY(-10px);
    opacity: 0;
}

#speaker-indicator.visible {
    transform: translateY(0);
    opacity: 1;
}

.speaker-avatar {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.speaker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.speaker-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.speaker-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}