:root {
    --bg-color: #0d1117;
    --glass-bg: rgba(20, 25, 33, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-primary: #58a6ff;
    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* Dynamic Background Orbs */
.background-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #58a6ff;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #a371f7;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #db61a2;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3b30;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Feed Container */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for feed */
.feed-container::-webkit-scrollbar {
    width: 6px;
}
.feed-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.feed-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.feed-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* News Cards */
.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.news-date {
    background: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.news-author {
    color: var(--text-secondary);
}

.news-title {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--accent-primary);
}

.news-highlights {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-left: 3px solid var(--glass-border);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.news-highlights p {
    position: relative;
    word-break: break-word;
}

.news-highlights strong, .news-highlights b {
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed var(--glass-border);
}

/* Mobile Portrait Optimizations */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .glass-container {
        padding: 1.5rem;
        gap: 1.5rem;
        border-radius: 20px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .status-indicator {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .feed-container {
        max-height: 75vh;
        gap: 1rem;
    }
    
    .news-card {
        padding: 1.2rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-highlights {
        font-size: 0.9rem;
        padding-left: 0.8rem;
        gap: 0.5rem;
    }
}
