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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
}

.last-updated {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

main {
    padding: 2rem 0;
}

#news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.news-card[data-type="github_trending"] {
    border-left: 4px solid #ff4500;
}

.news-card[data-type="model_release"] {
    border-left: 4px solid #00a8ff;
}

.news-card[data-type="benchmark_update"] {
    border-left: 4px solid #4caf50;
}

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

.type-icon {
    font-size: 1.5rem;
}

.score {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.news-card h2 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.news-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.news-card .source {
    font-weight: 600;
    color: #667eea;
}

.news-card .description {
    color: #666;
    margin-bottom: 1rem;
}

.news-card a {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.news-card a:hover {
    background: #764ba2;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.keyword {
    background: #f0f0f0;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.no-data, .error {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.error {
    background: rgba(255, 100, 100, 0.2);
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.5rem;
    padding: 3rem;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    #news-feed {
        grid-template-columns: 1fr;
    }
}
