:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-header: #0f172a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

/* Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
section { margin-bottom: 60px; }
section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--primary); }
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.card-meta time { color: var(--text-muted); }
.read-more { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.category-badge.pet-cameras { background: rgba(99,102,241,0.15); color: #818cf8; }
.category-badge.automatic-feeders { background: rgba(245,158,11,0.15); color: #fbbf24; }
.category-badge.buying-guides { background: rgba(139,92,246,0.15); color: #c4b5fd; }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.category-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.category-card h3 { margin-bottom: 8px; }
.category-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Single Article */
.single-article { max-width: 780px; margin: 0 auto; padding: 40px 0; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-top: 12px; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.article-meta .modified { margin-left: 16px; }
.article-content { font-size: 1.05rem; }
.article-content h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.4rem; }
.article-content h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.2rem; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--primary); }

/* Affiliate Box */
.affiliate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
}
.affiliate-box p { margin: 0; }
.disclosure-small { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px !important; }

/* Single Page */
.single-page { max-width: 780px; margin: 0 auto; padding: 40px 0; }
.single-page h1 { font-size: 2rem; margin-bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.affiliate-notice { font-size: 0.8rem; margin-top: 8px; color: #64748b; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .article-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 12px; font-size: 0.8rem; }
}
