/* BlogKingWorld - Light Theme */
:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.site-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Main */
main {
  min-height: 60vh;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  text-align: left;
  padding: 2rem 0 3rem;
}

.hero-with-sidebar .hero-content {
  min-width: 0;
}

.hero-with-sidebar .hero-content h1 {
  margin-top: 0;
}

.hero-with-sidebar .hero-content p {
  margin-left: 0;
}

.hero-with-sidebar .hero-sidebar {
  position: sticky;
  top: 5.5rem;
}

.hero-with-sidebar .hero-sidebar .sidebar-section {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero-with-sidebar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-with-sidebar .hero-content p {
    margin: 0 auto;
  }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.content-grid-single {
  grid-template-columns: 1fr;
}

/* Cards */
.article-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  border: 1px solid var(--border);
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.25rem;
}

.article-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.article-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.article-card h2 a {
  color: var(--text);
}

.article-card h2 a:hover {
  color: var(--accent);
}

.article-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 5.5rem;
  height: fit-content;
}

.sidebar-section {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-section h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  color: var(--text);
  font-size: 0.95rem;
}

.sidebar a:hover {
  color: var(--accent);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 0.35rem;
}

/* Page title */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.page-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-updated {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Content blocks */
.content-block {
  margin: 2.5rem 0;
}

.content-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.fresh-news .news-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fresh-news .news-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fresh-news .news-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.fresh-news .news-cat {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fresh-news .news-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
}

.fresh-news .news-item:hover .news-text {
  color: var(--accent);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.partner-card .partner-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.partner-card:hover .partner-name {
  color: var(--accent);
}

.partner-card .partner-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

.pick-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pick-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.pick-card .pick-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.pick-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--text);
}

.pick-card:hover h3 {
  color: var(--accent);
}

.pick-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Article content */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.article-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.article-content p {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-content .category-badge {
  margin-bottom: 0.75rem;
}

.article-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-back a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-back a:hover {
  color: var(--accent);
}

/* Category badge */
.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
