/* Ticker - Participant View Styles (Agora-inspired) */

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

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-message: #1e1e1e;
    --text-primary: #f1f1f1;
    --text-secondary: #aaaaaa;
    --text-muted: #717171;
    --border-color: #303030;
    --accent-urgent: #cc0000;
    --accent-yellow: #ffcc00;
    --accent-green: #4caf50;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-secondary);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    background: var(--bg-message);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn:hover {
    background: var(--border-color);
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timer-value {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    min-width: 80px;
}

/* Feed Container */
.feed-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.message-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message Card */
.message {
    background: var(--bg-message);
    border-radius: 4px;
    padding: 12px 16px;
    border-left: 3px solid var(--border-color);
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.urgent {
    border-left-color: var(--accent-urgent);
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.message-timestamp {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.message-agency {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.message-priority {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 2px;
}

.priority-urgent {
    background: var(--accent-urgent);
    color: white;
}

.priority-regular {
    background: var(--border-color);
    color: var(--text-secondary);
}

.message-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-headline {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.message-body {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Jump to Latest Button */
.jump-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #ffffff;
    color: #0f0f0f;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    z-index: 100;
}

.jump-btn:hover {
    background: #e0e0e0;
}

.jump-btn.hidden {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 8px 12px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .feed-container {
        padding: 10px;
    }
    
    .message {
        padding: 10px 12px;
    }
    
    .message-headline {
        font-size: 0.9rem;
    }
    
    .message-body {
        font-size: 0.8rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
