/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-light); font-weight: 500; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--primary); }

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 60px;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 32px; }
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: white;
  color: #764ba2;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Section */
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 32px; }

/* Featured */
.featured { margin-bottom: 60px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.category-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}
.article-card h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.4; }
.excerpt { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-light); }

/* Recent Section */
.recent-section { margin-bottom: 60px; }
.sidebar-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.2s;
}
.article-list-item:hover { background: var(--bg-secondary); }
.list-item-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.excerpt-small { font-size: 0.9rem; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.85rem; color: var(--text-light); white-space: nowrap; }

/* Sidebar */
.sidebar .widget { padding: 20px; background: var(--bg-secondary); border-radius: 8px; margin-bottom: 20px; }
.sidebar h3 { font-size: 1rem; margin-bottom: 16px; }
.category-list { list-style: none; }
.category-list li { margin-bottom: 8px; }
.category-list a { color: var(--text-light); transition: color 0.2s; }
.category-list a:hover { color: var(--primary); }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 32px 0; margin-top: 60px; text-align: center; color: var(--text-light); font-size: 0.9rem; }

/* Loading */
.loading { display: flex; justify-content: center; align-items: center; min-height: 200px; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 0.9rem; }
}
