* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #111827; background: #ffffff; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #e5e7eb; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: #111827; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: #111827; }
.main-nav { display: flex; gap: 0; align-items: center; }
.nav-list { display: flex; gap: 1.25rem; list-style: none; }
.nav-list li a { color: #374151; font-weight: 500; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.nav-list li a:hover { color: #2563eb; text-decoration: none; }
.adsense-link { font-size: 0.8rem; color: #6b7280; }

/* Hero */
.hero { padding: 3rem 1rem; text-align: center; border-bottom: 1px solid #f3f4f6; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { color: #4b5563; font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.5rem; }

/* Category sections */
.category-section { padding: 2.5rem 1rem; border-bottom: 1px solid #f3f4f6; }
.category-section h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #111827; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06); }
.card-image { height: 200px; background: #eef2f5; }
.card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card-chip { display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: #eef2f5; color: #374151; margin-bottom: 0.5rem; width: fit-content; }
.card-title { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.card-title a { color: #111827; text-decoration: none; font-weight: 600; }
.card-title a:hover { color: #2563eb; text-decoration: underline; }
.card-excerpt { color: #4b5563; font-size: 0.9rem; margin-bottom: 0.75rem; flex: 1; }
.card-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: #6b7280; margin-top: auto; }

/* Ad units */
.ad-wrap { position: relative; }
.ad-unit { margin: 1.5rem auto; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed #e5e7eb; border-radius: 6px; background: #f9fafb; color: #6b7280; font-size: 0.85rem; }
.ad-sidebar { height: 600px; position: sticky; top: 1rem; }
.ad-hero { min-height: 90px; }
.ad-top { min-height: 90px; }
.ad-mid { min-height: 250px; }
.ad-bottom { min-height: 90px; }
.ad-home-bottom { min-height: 90px; }

/* Article single */
.site-main { padding: 1.5rem 1rem 4rem; }
.article-single { max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 1.5rem; }
.article-chip { display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: #eef2f5; color: #374151; margin-bottom: 0.75rem; }
.article-single h1 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 1rem; }
.article-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: #6b7280; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 0.75rem 0; margin-bottom: 1.5rem; }
.article-image { margin: 0 0 1.5rem; }
.article-body h2 { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.article-body p { margin: 0 0 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.25rem; }
.article-body li { margin: 0 0 0.35rem; }
.article-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; font-size: 0.9rem; color: #4b5563; }
.share { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-btn { padding: 0.4rem 0.8rem; font-size: 0.85rem; border: 1px solid #e5e7eb; border-radius: 5px; background: #fff; color: #111827; cursor: pointer; }
.share-btn:hover { background: #f3f4f6; border-color: #2563eb; color: #2563eb; text-decoration: none; }

/* Sidebar on single */
article-single-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { article-single-wrap, .site-main > .container > .article-grid-single { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* Footer */
.site-footer { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 2rem 1rem; margin-top: auto; }
.footer-inner { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; text-align: center; font-size: 0.85rem; color: #6b7280; }
.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: #4b5563; text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: #2563eb; text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 auto; background: #fff; width: 72%; transform: translateX(100%); transition: transform .25s ease; box-shadow: -4px 0 12px rgba(0,0,0,0.08); flex-direction: column; padding: 1rem; border-left: 1px solid #e5e7eb; z-index: 60; }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0.75rem; padding-top: 1rem; }
  .nav-list li a { display: block; }
  .hero h1 { font-size: 1.5rem; }
  .article-single h1 { font-size: 1.4rem; }
  .ad-sidebar { position: static; height: 250px; }
  .header-inner { padding: 0.5rem 1rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }