/* TodayNews DTF-Style Design System */
:root {
    --bg: #0e0e10;
    --surface: #18181b;
    --surface-elevated: #27272a;
    --border: #27272a;
    --text: #efeff1;
    --text-dim: #a9a9b3;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --danger: #ef4444;
    --success: #10b981;
    --radius: 8px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

.light-theme {
    --bg: #f4f4f5;
    --surface: #ffffff;
    --surface-elevated: #e4e4e7;
    --border: #e4e4e7;
    --text: #09090b;
    --text-dim: #71717a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dim);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--surface-elevated);
}

/* Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr 300px; }
    .sidebar-left { display: none; }
}

@media (max-width: 768px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar-right { display: none; }
}

/* Sidebar */
.sidebar-section { margin-bottom: 32px; }
.sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: var(--surface-elevated);
    color: var(--text);
}

.category-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Article Card */
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.article-card:hover {
    border-color: var(--accent);
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-excerpt {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* Widgets */
.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    color: var(--text);
    transition: 0.2s;
}

.btn:hover { background: var(--border); }
.btn-primary { background: var(--accent); color: white; border: none; }
.btn-primary:hover { background: var(--accent-hover); }

/* Utilities */
.dark-theme-only { display: block; }
.light-theme .dark-theme-only { display: none; }
.light-theme-only { display: none; }
.light-theme .light-theme-only { display: block; }
