/* PetCashDeals.com - Clean, modern styles */
:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --accent: #ffb703;
  --bg: #f8faf9;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  max-width: 1100px;
  margin: 0 auto;
}
nav .logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .logo span { color: var(--accent); }
nav .nav-links { display: flex; gap: 32px; align-items: center; }
nav .nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--primary); }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.35);
}

/* Store Grid */
.section { padding: 60px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-dark);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.store-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.store-card .store-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.store-card .commission {
  display: inline-block;
  background: #d8f3dc;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.store-card .description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.store-card .coupon {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.store-card .coupon code {
  background: #edf2f7;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
}
.store-card .affiliate-link {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.store-card .affiliate-link:hover { background: var(--primary-dark); }

/* Articles */
.article-list { display: grid; gap: 24px; }
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.article-card h3 { margin-bottom: 10px; }
.article-card h3 a {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.2rem;
}
.article-card h3 a:hover { color: var(--primary); }
.article-card .meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.article-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Article Page */
.article-page { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.article-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.article-page .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-page .content { font-size: 1.05rem; line-height: 1.8; color: #2d3748; }
.article-page .content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 32px 0 16px;
}
.article-page .content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}
.article-page .content p { margin-bottom: 16px; }
.article-page .content ul, .article-page .content ol { margin: 0 0 16px 24px; }
.article-page .content li { margin-bottom: 8px; }
.article-page .content .store-highlight {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.article-page .content .store-highlight strong { color: var(--primary-dark); }
.article-page .content .affiliate-link {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.article-page .content .affiliate-link:hover { background: var(--primary-dark); }

/* About Page */
.about-page { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; }
.about-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.about-page p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 20px;
}

/* CLI & MCP Tools */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.tool-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.tool-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #334155;
}
.tool-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tool-badge.cli { background: #3b82f6; color: white; }
.tool-badge.mcp { background: #8b5cf6; color: white; }
.tool-title { font-weight: 600; font-size: 0.95rem; color: #e2e8f0; }
.tool-body { padding: 20px; }
.tool-install {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #334155;
  text-align: center;
}

/* Terminal Window */
.terminal-window {
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
}
.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #1e293b;
}
.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-bar span:nth-child(1) { background: #ef4444; }
.terminal-bar span:nth-child(2) { background: #f59e0b; }
.terminal-bar span:nth-child(3) { background: #10b981; }
.terminal-body { padding: 12px 16px; }
.terminal-body .line {
  line-height: 1.8;
  white-space: nowrap;
}
.terminal-body .prompt { color: #10b981; margin-right: 8px; }
.terminal-body .line.result { color: #94a3b8; padding-left: 14px; }

/* Chat Demo */
.mcp-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 90%;
  line-height: 1.5;
}
.chat-bubble.bot {
  background: #334155;
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.ai {
  background: #2d1b69;
  color: #e2e8f0;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai .ai-bar {
  font-size: 0.7rem;
  color: #a78bfa;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #4c1d95;
}
.chat-bubble.ai .ai-result { line-height: 1.6; }
.chat-bubble.ai .ai-result code {
  background: #4c1d95;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.article-faq {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
}
.article-faq h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #166534;
}
.article-faq h3 {
  font-size: 1rem;
  margin: 16px 0 6px;
  color: #15803d;
}
.article-faq p {
  margin: 0 0 8px;
  color: #374151;
  font-size: 0.92rem;
}

/* Disclaimer */
.disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  text-align: center;
}
footer p { font-size: 0.9rem; }
footer a { color: var(--accent); text-decoration: none; }

/* Category Navigation */
.category-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.category-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.category-card:hover, .category-card.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.category-card .cat-icon { font-size: 2rem; margin-bottom: 8px; }
.category-card .cat-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.category-card .cat-count {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Search Bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 600px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar button {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--primary-dark); }

/* Two-column article grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.article-card.hidden { display: none; }

/* Category badge on articles */
.article-card .cat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.cat-badge.feeder { background: #dbeafe; color: #1e40af; }
.cat-badge.nail { background: #fce7f3; color: #be185d; }
.cat-badge.bird { background: #dcfce7; color: #166534; }
.cat-badge.bowl { background: #fef3c7; color: #92400e; }
.cat-badge.litter { background: #f3e8ff; color: #6b21a8; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* Related articles */
.related-articles {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-articles h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.related-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}
.related-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.related-item h4 {
  color: var(--primary-dark);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.related-item .rel-meta {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Results count */
.results-count {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Section background utility */
.section-alt { background: var(--bg); }

/* Responsive */
@media (max-width: 768px) {
  .category-nav { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 60px 0 40px; }
  .store-grid { grid-template-columns: 1fr; }
  nav .nav-links { gap: 16px; }
  .article-page h1 { font-size: 1.5rem; }
  .category-nav { grid-template-columns: repeat(2, 1fr); }
}
