/* KitchenPulse Modern Amazon Affiliate Theme */
:root {
  --primary: #1e3a8a;
  --primary-hover: #172554;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --amz-btn: #ff9900;
  --amz-btn-hover: #e68a00;
  --dark: #0f172a;
  --text-main: #334155;
  --text-light: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

/* Affiliate Disclosure Banner */
.disclosure-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  padding: 8px 0;
  text-align: center;
}
.disclosure-bar a {
  text-decoration: underline;
  color: var(--text-light);
}

/* Header & Nav */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 28px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #94a3b8;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grid Layouts */
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 16px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

/* Card Styling */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  height: 210px;
  background: #e2e8f0;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

.btn-amz {
  background: var(--amz-btn);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(230, 138, 0, 0.3);
}
.btn-amz:hover {
  background: var(--amz-btn-hover);
  color: #111827;
}

/* Article Page Layout */
.article-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-category {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta-info {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 14px;
  flex-wrap: wrap;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 60px;
}

.article-content {
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 16px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: #334155;
  font-size: 16px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* Amazon Product Pick Box */
.product-pick-box {
  background: #fdfdfd;
  border: 2px solid #fed7aa;
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 4px 6px -1px rgb(249 115 22 / 0.05);
}

.product-pick-box.top-pick {
  border-color: #f59e0b;
  background: #fffbeb;
}

.pick-badge {
  display: inline-block;
  background: #f59e0b;
  color: #111827;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-grid-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.product-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
}

.product-info h4 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-rating {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.product-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
  font-size: 14px;
}

.pros-box {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 12px;
  border-radius: 4px;
}

.cons-box {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  padding: 12px;
  border-radius: 4px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.author-card {
  text-align: center;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}
table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
table.comparison-table th {
  background: #1e293b;
  color: white;
  padding: 12px 16px;
}
table.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
table.comparison-table tr:nth-child(even) {
  background: #f8fafc;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 20px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #94a3b8;
}
.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid-inner {
    grid-template-columns: 1fr;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
