/* website/theater.css - Theater-Specific Styles */

/* ============================================
   THEATER PREVIEW (Homepage)
   ============================================ */
.theater-preview {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.theater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.theater-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.status-badge.live {
    background: var(--secondary);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.replay {
    background: var(--primary);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.theater-preview-feed {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
}

/* Terminal Preview Styles - Classic Theme */
.theater-preview-terminal {
    background: #1e1e1e;
    border-radius: var(--radius);
    padding: 1.5rem;
    max-height: 400px;
    overflow: hidden;
    border: 2px solid #404040;
    font-family: 'Courier New', monospace;
    position: relative;
}

.terminal-scroll {
    height: 370px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.terminal-content {
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: #007acc;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   THEATER MAIN (Full Page)
   ============================================ */
.theater-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0;
    text-align: center;
}

.theater-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.theater-status-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-badge-large {
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.status-badge-large.live {
    background: var(--secondary);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.status-badge-large.replay {
    background: var(--primary);
    color: white;
}

.status-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.theater-main {
    padding: 3rem 0;
}

.theater-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.theater-feed-container {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

.theater-feed {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--border);
}

/* ============================================
   ACTIVITY ITEMS
   ============================================ */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    transition: background var(--transition);
    border-left: 3px solid var(--primary);
}

.activity-item:hover {
    background: var(--bg-secondary);
}

.activity-item.loading {
    border-left-color: var(--text-secondary);
}

.activity-agent {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    min-width: 160px;
}

.activity-description {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.5;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ============================================
   THEATER INFO
   ============================================ */
.theater-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.theater-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.theater-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.live-inline, .replay-inline {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.live-inline {
    background: var(--secondary);
    color: white;
}

.replay-inline {
    background: var(--primary);
    color: white;
}

/* ============================================
   APPS PAGE
   ============================================ */
.apps-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0;
    text-align: center;
}

.apps-section {
    padding: 3rem 0;
}

.apps-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
    color: var(--text-primary);
}

.filter-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.app-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.app-card.loading {
    opacity: 0.6;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.app-version, .app-downloads {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0;
    text-align: center;
}

.dashboard-section {
    padding: 3rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.dashboard-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.dashboard-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.dashboard-content {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    min-height: 100px;
}

.enhanced-app-item, .request-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.request-form input, .request-form select, .request-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* ============================================
   ADMIN
   ============================================ */
.admin-section {
    padding: 3rem 0;
}

.admin-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.admin-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-form {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.admin-form input, .admin-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.admin-form h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.request-card {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.request-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.button-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
}

.button-small.primary {
    background: var(--primary);
    color: white;
}

.button-small.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter {
    background: var(--bg-secondary);
    padding: 5rem 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.newsletter-message {
    margin-top: 1rem;
    font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .theater-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-agent {
        min-width: auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
