/* Celena default theme — фронт сайта */
.container { max-width: 980px; margin: 0 auto; padding: 28px 16px; }
header.site { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.brand { font-weight: 700; font-size: 18px; }
.brand a { color: var(--text); }
.brand a:hover { text-decoration: none; color: var(--accent); }
.nav a { margin-left: 16px; color: var(--text-muted); }
.nav a:hover { color: var(--accent); }
.theme-switch { display: inline-block; margin-left: 16px; }
.theme-switch button { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; margin-left: 4px; }
.theme-switch button:hover { color: var(--accent); border-color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.hero h1 { margin-top: 0; }
.muted { color: var(--text-muted); }
ul.latest { padding-left: 18px; }
ul.latest li { margin: 6px 0; }
footer.site { padding: 24px 0; color: var(--text-muted); font-size: 13px; text-align: center; }

/* News */
.page-title { margin: 0 0 24px; }
.section-title { margin: 24px 0 16px; font-size: 18px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; }
.news-card h2, .news-card h3 { margin: 0 0 6px; font-size: 18px; }
.news-card h2 a, .news-card h3 a { color: var(--text); }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--accent); text-decoration: none; }
.news-card .meta { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.news-card .short { color: var(--text-muted); font-size: 14px; margin: 0 0 10px; }
.news-card .read-more { margin-top: auto; font-size: 13px; }
.news-cover { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.news-cover-full { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.news-full .meta { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; }
.news-body, .page-body { line-height: 1.7; }
.news-body h2, .page-body h2 { margin-top: 28px; }
.news-body img, .page-body img { max-width: 100%; height: auto; border-radius: 8px; }
.news-body pre, .page-body pre { background: var(--surface-2); padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.news-body code, .page-body code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.news-body blockquote, .page-body blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin-left: 0; color: var(--text-muted); }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 24px; font-size: 14px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 6px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.pagination a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* Comments */
.comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.comment-head { margin-bottom: 6px; font-size: 13px; }
.comment-body { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.comment-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-form .form-group { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit; }
.btn-primary { display: inline-block; padding: 9px 18px; background: var(--accent); color: var(--accent-contrast); border: 0; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-primary:hover { background: var(--accent-2); text-decoration: none; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert.success { background: rgba(28,185,139,.12); color: var(--success); }
.alert.error   { background: rgba(226,86,103,.12); color: var(--danger); }
.alert.info    { background: rgba(109,92,255,.10); color: var(--accent); }
