/* ======================================================
   AM INTERACTIVE — MOBILE AUDIENCE INTERFACE STYLES
   Ultra-clean, Mobile-First, Touch-Optimized
   ====================================================== */

.audience-app {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 16px 40px;
    position: relative;
    z-index: 1;
}

/* Audience Header */
.audience-header {
    padding: 24px 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audience-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audience-brand {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.audience-event-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

/* Module Switcher Tabs */
.audience-nav {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 20px;
    position: sticky;
    top: 12px;
    z-index: 20;
    backdrop-filter: var(--glass-blur);
}

.audience-nav-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.audience-nav-tab.active {
    background: var(--bg-card);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.live-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-rose);
    box-shadow: 0 0 8px var(--accent-rose);
    animation: pulse 1.5s infinite;
}

/* Tab Panels */
.audience-panel {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: fadeIn 0.2s ease-out;
}

.audience-panel.active {
    display: flex;
}

/* Card Styling */
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow-md);
}

.audience-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audience-card-title {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Live Poll Section */
.poll-question-text {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.option-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.25);
    background: var(--bg-card-hover);
}

.option-btn:active:not(:disabled) {
    transform: scale(0.97);
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
}

.option-btn.selected {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.option-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-btn.selected .option-indicator {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.option-btn.selected .option-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

/* Post-Vote Confirmation */
.vote-success-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vote-success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-emerald);
    color: #08090e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: var(--glow-emerald);
}

.vote-success-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
}

.vote-success-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Q&A Form */
.qa-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: #ffffff;
    font-size: 1rem;
    resize: none;
    line-height: 1.45;
}

.qa-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.qa-name-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: #ffffff;
    font-size: 0.9375rem;
}

/* Audience Questions Feed */
.audience-q-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audience-q-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audience-q-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.audience-q-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-upvote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 10px 18px;
    min-width: 68px;
    min-height: 44px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.15s ease;
    z-index: 10;
    position: relative;
}

.btn-upvote * {
    pointer-events: none;
}

.btn-upvote:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-upvote:active {
    transform: scale(0.92);
}

.btn-upvote.voted {
    background: rgba(6, 182, 212, 0.22);
    border-color: var(--accent-cyan);
    color: #22d3ee;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

/* Mobile Audience Poll Results Bars */
.audience-result-item {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.audience-result-item.winner-option {
    border-color: rgba(245, 158, 11, 0.7);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.audience-result-track {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--accent-primary-glow), rgba(59, 130, 246, 0.2));
    border-radius: var(--radius-md);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

.audience-result-item.winner-option .audience-result-track {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.4), rgba(251, 191, 36, 0.15));
}

.audience-result-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.audience-result-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.qa-filter-group .filter-pill {
    transition: all 0.2s ease;
}

.qa-filter-group .filter-pill:active {
    transform: scale(0.93);
}

.qa-filter-group .filter-pill.active {
    background: var(--accent-primary-glow) !important;
    border-color: var(--accent-primary) !important;
    color: #ffffff !important;
}

