/* content/themes/default/style.css */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 24px 0; }
.site-title { font-size: 1.8rem; font-weight: 800; color: var(--text); text-decoration: none; }
.site-tagline { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* Main layout grid */
.layout { display: flex; flex-direction: column; gap: 30px; margin: 30px auto; }
@media (min-width: 768px) {
    .layout { flex-direction: row; }
    .main-content { flex: 3; }
    .sidebar { flex: 1; }
}

/* Post Cards */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.post-title { font-size: 1.5rem; margin-bottom: 8px; }
.post-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { background: #eff6ff; color: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.post-content { font-size: 1.05rem; line-height: 1.7; }

/* Sidebar Widgets */
.widget { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 1.1rem; margin-bottom: 12px; border-bottom: 2px solid var(--bg); padding-bottom: 6px; }
.widget ul { list-style: none; }
.widget li { margin-bottom: 8px; }

/* Search form */
.search-form { display: flex; gap: 6px; }
.search-form input[type="text"] { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; margin: 30px 0; }
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 500; }
.btn:hover { text-decoration: none; background: var(--primary-hover); }

/* Comments */
.comments-section { margin-top: 40px; border-top: 2px solid var(--border); padding-top: 20px; }
.comment-item { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.comment-header { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 4px; }

/* Footer */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); text-align: center; padding: 24px 0; color: var(--text-muted); font-size: 0.9rem; margin-top: 40px; }