@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --primary: #61ad52;
  --primary-light: #189a57;
  --primary-bg: #eff6ff;
  --text: #1f2937;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* Header styles */
header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; margin-bottom: 2rem; }
header .container { text-align: center; }
header .header-inner { display: flex; align-items: center; justify-content: space-between; text-align: left; }
header .header-right { display: flex; align-items: center; gap: 1rem; }
header h1 { font-size: 1.75rem; margin: 0; color: white; font-weight: 600; }
header .site-name { color: white; text-decoration: none; font-size: 1.25rem; font-weight: 600; }
header .site-name:hover { opacity: 0.9; }
header .site-logo { display: flex; align-items: center; }
header .site-logo svg { height: 40px; width: auto; }
header .site-logo:hover { opacity: 0.9; }
header .site-description { margin-top: 0.5rem; opacity: 0.9; font-size: 1.1rem; }

header.compact { padding: 0.75rem 0; }
header.compact h1 { font-size: 1.25rem; }

header.hero { padding: 3rem 0; text-align: center; }
header.hero .site-logo { justify-content: center; }
header.hero .site-logo svg { height: 60px; }
header.hero .site-name { font-size: 2rem; }

header.minimal { padding: 0.5rem 0; background: transparent; color: var(--text); border-bottom: 1px solid var(--border); }
header.minimal .site-name { color: var(--text); }
header.minimal .social-links a { color: var(--muted); }

/* Social links */
.social-links { display: flex; align-items: center; gap: 0.75rem; }
.social-links a { color: white; text-decoration: none; display: flex; align-items: center; gap: 0.25rem; opacity: 0.9; transition: opacity 0.2s; }
.social-links a:hover { opacity: 1; }
.social-icon { width: 1.25rem; height: 1.25rem; }
footer .social-links { justify-content: center; margin-bottom: 1rem; }
footer .social-links a { color: var(--muted); }
footer .social-links a:hover { color: var(--primary); }

main { padding-bottom: 3rem; min-height: 60vh; }

/* Search box */
.search-box { position: relative; width: 200px; }
.search-input { width: 100%; padding: 0.4rem 0.75rem 0.4rem 2rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; font-size: 0.8rem; background: rgba(255,255,255,0.15); color: white; }
.search-input:focus { outline: none; background: rgba(255,255,255,0.25); }
.search-input::placeholder { color: rgba(255,255,255,0.7); }
.search-input:disabled { cursor: not-allowed; }
.search-icon { position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); width: 0.875rem; height: 0.875rem; color: rgba(255,255,255,0.7); }

/* Article list layouts */
.article-list { list-style: none; }
.article-list.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.article-list.layout-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 2rem; }
.article-list.layout-list { display: flex; flex-direction: column; gap: 1.5rem; }

.article-list li { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid var(--border); transition: all 0.2s; }
.article-list li:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(30,64,175,0.12); border-color: var(--primary-light); }
.article-list a { text-decoration: none; color: inherit; display: block; }

.article-list.layout-grid img, .article-list.layout-large img { width: 100%; height: 200px; object-fit: cover; }
.article-list.layout-large img { height: 280px; }
.article-list.layout-list li a { display: flex; }
.article-list.layout-list img { width: 280px; height: 180px; object-fit: cover; flex-shrink: 0; }

.article-list .no-image { width: 100%; height: 200px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.article-list.layout-list .no-image { width: 280px; height: 180px; flex-shrink: 0; }

.article-list .article-content { padding: 1.25rem; }
.article-list h2 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.4; transition: color 0.2s; }
.article-list.layout-large h2 { font-size: 1.35rem; }
.article-list a:hover h2 { color: var(--primary); }
.article-list p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list time { color: var(--primary-light); font-size: 0.75rem; font-weight: 500; }

/* Featured article (magazine layout) */
.featured-article { margin-bottom: 2rem; background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.featured-article a { display: block; text-decoration: none; color: inherit; }
.featured-article img { width: 100%; height: 400px; object-fit: cover; }
.featured-article .no-image { width: 100%; height: 400px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }
.featured-article .featured-content { padding: 2rem; }
.featured-article h2 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--text); }
.featured-article p { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }
.featured-article time { color: var(--primary-light); font-weight: 500; }

/* Article single page */
.article-single { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.article-single .featured-image { width: 100%; max-height: 400px; object-fit: cover; }
.article-single .article-header { padding: 2rem 2rem 1rem; border-bottom: 1px solid var(--border); }
.article-single .article-header h1 { font-size: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.article-single .article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-single .article-meta time { color: var(--primary-light); font-size: 0.875rem; font-weight: 500; }
.article-single .article-meta .author { color: var(--muted); font-size: 0.875rem; }
.article-single .article-body { padding: 2rem; }
.article-single .article-body h2 { margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--primary); font-size: 1.5rem; }
.article-single .article-body h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--text); font-size: 1.25rem; }
.article-single .article-body p { margin-bottom: 1rem; line-height: 1.8; }
.article-single .article-body ul, .article-single .article-body ol { margin-bottom: 1rem; padding-left: 2rem; }
.article-single .article-body li { margin-bottom: 0.5rem; }
.article-single .article-body a { color: var(--primary); }
.article-single .article-body a:hover { color: var(--primary-light); }
.article-single .article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-single .article-body blockquote { border-left: 4px solid var(--primary-light); padding-left: 1rem; margin: 1rem 0; color: var(--muted); font-style: italic; }
.article-single .article-body pre { background: #1f2937; color: #e5e7eb; padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1rem 0; }
.article-single .article-body code { background: var(--primary-bg); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.article-single .article-body pre code { background: none; padding: 0; }

/* Article layout variants */
.article-single.layout-wide { max-width: none; border-radius: 0; border-left: none; border-right: none; }
.article-single.layout-wide .article-body { max-width: 900px; margin: 0 auto; }
.article-single.layout-centered { max-width: 720px; margin: 0 auto; }
.article-single.layout-centered .article-header { text-align: center; }
.article-single.layout-centered .article-meta { justify-content: center; }

.empty-message { text-align: center; padding: 3rem; color: var(--muted); }

footer { background: var(--primary-bg); margin-top: 4rem; padding: 1.5rem 0; color: var(--muted); font-size: 0.875rem; text-align: center; border-top: 1px solid var(--border); }
