:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --primary-color: #2563eb;
    --text-color: #1e293b;
}

body {
    font-family: -apple-system, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    color: var(--text-color);
}

header {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.search-container input {
    width: 80%;
    max-width: 600px;
    padding: 12px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: var(--primary-color);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    gap: 30px;
}

.bookmarks { flex: 3; }
.news-sidebar { flex: 1; background: #fff; border-radius: 15px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); height: fit-content; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.news-item span {
    color: #94a3b8;
    font-size: 0.8rem;
}

.loading { color: #94a3b8; font-style: italic; }

@media (max-width: 768px) {
    .container { flex-direction: column; }
}