/* FFoA Townhall Interactive Live Streaming Styles */

#ffoa-townhall-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#ffoa-townhall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e3a8a;
}

#ffoa-townhall-header h2 {
    color: #1e3a8a;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

#viewer-count {
    background: #1e3a8a;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.ffoa-control-panel {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.ffoa-control-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ffoa-control-group:last-child {
    margin-bottom: 0;
}

/* Button Styles - Base only, using custom site classes */
.ffoa-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ffoa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ffoa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ffoa-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.ffoa-btn-icon {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ffoa-btn-icon:hover {
    background: rgba(0,0,0,0.7);
}

.ffoa-btn-icon.muted {
    background: #dc2626;
}

/* Stage Requests */
.ffoa-stage-requests {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ffoa-stage-requests h3 {
    margin: 0 0 15px 0;
    color: #92400e;
    font-size: 18px;
}

.stage-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #fbbf24;
}

.stage-request-item:last-child {
    margin-bottom: 0;
}

.request-info {
    flex: 1;
}

.request-actions {
    display: flex;
    gap: 8px;
}

/* Video Container */
#video-container {
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

#local-video {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    border: 2px solid #1e3a8a;
}

.video-controls {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.remote-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding: 10px;
    height: 100%;
}

.remote-video {
    background: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 200px;
}

.video-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Chat Container */
#chat-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    border-bottom: 1px solid #e2e8f0;
}

.chat-message {
    margin-bottom: 8px;
    padding: 6px 0;
    word-wrap: break-word;
}

.chat-message strong {
    color: #1e3a8a;
}

#chat-input-container {
    padding: 15px;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

#chat-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

#chat-input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Status Messages */
#status-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.ffoa-status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ffoa-status-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.ffoa-status-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.ffoa-status-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Confirmation Modal */
.ffoa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ffoa-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ffoa-modal-content h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 20px;
}

.ffoa-modal-content p {
    margin: 0 0 25px 0;
    color: #6b7280;
    font-size: 16px;
}

.ffoa-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #ffoa-townhall-container {
        padding: 15px;
    }
    
    #ffoa-townhall-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ffoa-control-group {
        flex-direction: column;
    }
    
    #local-video {
        width: 120px;
        height: 90px;
    }
    
    .remote-video-grid {
        grid-template-columns: 1fr;
    }
    
    .stage-request-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .request-actions {
        justify-content: center;
    }
    
    #status-messages {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .ffoa-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    #chat-container {
        height: 250px;
    }
    
    .ffoa-modal-content {
        padding: 20px;
    }
}