/*
Theme Name: Prism
Theme URI: https://example.com/prism
Author: Prism Team
Author URI: https://example.com
Description: Prism — 棱镜折射多彩光芒。基于 Bootstrap 5 的现代博客主题，紫蓝渐变风格，响应式设计，支持文章列表、分类、标签、侧边栏等完整博客功能。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prism
Tags: blog, bootstrap, responsive, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-primary: #667eea;
  --brand-secondary: #764ba2;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fa;
}

.bg-brand-gradient {
  background: var(--brand-gradient) !important;
}

.text-brand-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  margin-bottom: 1.5rem;
}

.blog-hero h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
}

.blog-hero .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0.85rem 0 1.25rem;
}

.blog-nav {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.blog-nav .navbar-brand {
  font-weight: 700;
}

.post-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-card .card-img-top {
  border-radius: 0.75rem 0.75rem 0 0;
}

.featured-post {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.sidebar-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.subscribe-card {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
}

.tag-badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  margin: 0.15rem;
  text-decoration: none;
  display: inline-block;
}

.tag-badge:hover {
  background: var(--brand-primary) !important;
  color: #fff !important;
}

.single-post-header {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}

.single-post-header h1 {
  font-weight: 700;
  margin: 0;
}

.single-post-content {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

.single-post-content img {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
}

.pagination .page-link {
  border-radius: 0.4rem;
  margin: 0 0.15rem;
  border: none;
  color: var(--brand-primary);
}

.pagination .page-item.active .page-link {
  background: var(--brand-gradient);
  color: #fff;
}

.footer-area {
  background: #1e293b;
  color: #cbd5e1;
  padding: 2rem 0;
  margin-top: 3rem;
  border-radius: 0.75rem 0.75rem 0 0;
}

.footer-area a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-area a:hover {
  color: #fff;
}

.comment-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.search-result-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.search-result-card:hover {
  transform: translateY(-2px);
}

.error-404 {
  text-align: center;
  padding: 4rem 2rem;
}

.error-404 h1 {
  font-size: 5rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}