/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow: hidden;
    height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #000;
    border-bottom: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px #00ff00);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
}

.live-indicator {
    display: flex;
    align-items: center;
    margin-left: 30px;
    flex: 0 0 auto;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

.live-text {
    color: #ff0000;
    font-weight: bold;
    font-size: 14px;
}

.news-ticker {
    flex: 1;
    margin: 0 30px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.ticker-content {
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
    line-height: 20px;
    transition: opacity 0.5s ease-in-out;
}

.viewer-count {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.viewer-dot {
    width: 6px;
    height: 6px;
    background: #0080ff;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* News Panel */
.news-panel {
    width: 350px;
    background: #111;
    border-right: 2px solid #00ff00;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px;
    background: #000;
    border-bottom: 1px solid #00ff00;
    display: flex;
    align-items: center;
}

.panel-icon {
    font-size: 18px;
    margin-right: 10px;
}

.panel-title {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #00ff00;
    letter-spacing: 1px;
}

.news-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.news-item {
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInNews 0.5s ease-out forwards;
}

.news-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-left-color: #00ff00;
    transform: translateX(5px) translateY(0);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

.news-item.critical {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.news-item.critical:hover {
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.news-item.high {
    border-left-color: #ff8800;
    background: rgba(255, 136, 0, 0.1);
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.15);
}

.news-item.high:hover {
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

.news-item.low {
    border-left-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.news-item.charlie-kirk {
    border-left-color: #ff00ff;
    background: rgba(255, 0, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    animation: slideInNews 0.5s ease-out forwards, charlieKirkGlow 2s ease-in-out infinite alternate;
}

.news-item.charlie-kirk:hover {
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.5);
}

.priority-tag {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.priority-tag.critical {
    color: #ff0000;
}

.priority-tag.high {
    color: #ff8800;
}

.priority-tag.low {
    color: #ffffff;
}

.priority-tag.charlie-kirk {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.news-title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #ffffff;
}

.news-timestamp {
    font-size: 11px;
    color: #888;
}

/* Main Panel */
.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    min-height: 0;
}

.live-indicator-small {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #ff0000;
}

.live-dot-small {
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

.main-video {
    flex: 1;
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder {
    text-align: center;
    color: #00ff00;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.placeholder-text {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #00ff00;
}

.placeholder-subtext {
    font-size: 14px;
    color: #888;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

/* Custom scrollbar for video grid */
.video-grid::-webkit-scrollbar {
    width: 8px;
}

.video-grid::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

.video-thumbnail {
    aspect-ratio: 16/9;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.youtube-embed {
    width: 100%;
    height: 100%;
    position: relative;
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.youtube-embed .location-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}


/* Video thumbnail hover effects */
.video-thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.thumbnail-placeholder {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.location-tag {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}


/* Bottom Bar */
.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #000;
    border-top: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.system-info {
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
}

.monitor-code {
    color: #ffffff;
    font-size: 12px;
}

.feeds-active {
    color: #0080ff;
    font-size: 12px;
    font-weight: bold;
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #333;
    padding: 6px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.view-btn:hover:not(.active) {
    border-color: #00ff00;
    color: #00ff00;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #00ff00;
    text-decoration: none;
    border: 1px solid #00ff00;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 120px;
    text-align: center;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.control-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #333;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    border-color: #00ff00;
    color: #00ff00;
}

.connected-status {
    display: flex;
    align-items: center;
    color: #00ff00;
    font-size: 12px;
    font-weight: bold;
}

.status-icon {
    margin-right: 5px;
}

.time-display {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scrollText {
    0% { 
        transform: translateX(100%);
    }
    100% { 
        transform: translateX(-100%);
    }
}

@keyframes slideInNews {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes charlieKirkGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 0, 255, 0.6);
    }
}

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

.news-list::-webkit-scrollbar-track {
    background: #222;
}

.news-list::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-panel {
        width: 300px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .news-panel {
        width: 100%;
        height: 200px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        flex: 1;
    }
    
    .top-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bottom-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
}
