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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:hover {
    border-color: #667eea;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.loading, .error {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
}

.loading {
    color: #667eea;
}

.error {
    color: #e74c3c;
    background: #fee;
    border-radius: 6px;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.news-container {
    display: grid;
    gap: 20px;
}

.news-article {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.news-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.article-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.category-AI { background: #e3f2fd; color: #1976d2; }
.category-TAO { background: #f3e5f5; color: #7b1fa2; }
.category-ETH { background: #e8f5e9; color: #388e3c; }
.category-Crypto { background: #fff3e0; color: #f57c00; }
.category-Business { background: #e0f2f1; color: #00796b; }
.category-Politics { background: #fce4ec; color: #c2185b; }
.category-Funny { background: #fff9c4; color: #f9a825; }

.quality-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.quality-high { background: #c8e6c9; color: #2e7d32; }
.quality-medium { background: #fff9c4; color: #f57f17; }
.quality-low { background: #ffcdd2; color: #c62828; }

.article-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #667eea;
}

.article-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #888;
}

.article-source {
    font-weight: 600;
}

.article-date {
    color: #aaa;
}

.btn-summary {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-summary:hover {
    background: #5568d3;
}

.summary-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.summary-section h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.summary-section p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .article-header {
        flex-direction: column;
    }
}

