/* =====================================================
   KitchenRankings.com — Main Stylesheet
   Colors: #E85D04 (accent), #1a1a1a (dark), #f8f8f8 (light bg)
   ===================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:     #E85D04;
  --accent-dk:  #C44D00;
  --dark:       #1a1a1a;
  --mid:        #444;
  --muted:      #777;
  --light:      #f8f8f8;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --star:       #FFA500;
  --green:      #2e7d32;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,.09);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.13);
  --font-main:  'Georgia', 'Times New Roman', serif;
  --font-ui:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-main);
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .6rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 60px 0; }
.section-alt { padding: 60px 0; background: var(--light); }

/* --- Affiliate Disclosure Banner --- */
.disclosure-banner {
  background: #fff8e1;
  border-bottom: 2px solid #ffe082;
  padding: 10px 20px;
  text-align: center;
  font-size: .85rem;
  color: #5a4a00;
}
.disclosure-banner a { color: #8a6500; font-weight: 600; }

/* --- Top Navigation --- */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: var(--font-main);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.logo-icon { font-size: 1.6rem; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 5px;
  color: var(--mid);
  font-size: .93rem;
  font-weight: 500;
  transition: background .18s, color .18s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s, transform .1s;
  text-align: center;
  text-decoration: none !important;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-amazon {
  background: #FF9900;
  color: #111;
  font-size: .9rem;
  padding: 10px 18px;
}
.btn-amazon:hover { background: #e68a00; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-full { width: 100%; display: block; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 60%, #E85D04 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: .9rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero .subtitle {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 580px;
  margin: 0 auto 1.8rem;
}
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
}

/* --- Categories Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}
.category-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  transition: border-color .18s, box-shadow .18s, transform .15s;
  display: block;
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}
.category-card .cat-icon { font-size: 2.4rem; margin-bottom: 10px; }
.category-card .cat-name { font-weight: 700; font-size: 1rem; color: var(--dark); }
.category-card .cat-count { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s, transform .15s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-card-img {
  background: var(--light);
  padding: 24px;
  text-align: center;
  font-size: 4rem;
  line-height: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-body .badge-best {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.product-card h3 { margin-top: 0; font-size: 1.05rem; }
.stars { color: var(--star); font-size: 1rem; letter-spacing: 1px; }
.rating-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: .88rem; }
.rating-count { color: var(--muted); }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin: 4px 0 10px; }
.product-desc { font-size: .9rem; color: var(--mid); flex: 1; margin-bottom: 14px; }
.product-card .btn-amazon { width: 100%; text-align: center; }

/* --- Star rating display --- */
.stars-5::before { content: "★★★★★"; }
.stars-4-5::before { content: "★★★★½"; }
.stars-4::before { content: "★★★★☆"; }
.stars-3-5::before { content: "★★★½☆"; }

/* --- Article / Review Pages --- */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.article-intro {
  font-size: 1.12rem;
  color: var(--mid);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 2rem;
  font-style: italic;
}
.last-updated {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Comparison Table */
.comparison-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.comparison-table th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
.comparison-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.comparison-table tr:nth-child(even) td { background: var(--light); }
.comparison-table tr:hover td { background: #fff3e0; }
.comparison-table .pick-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 7px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  text-transform: uppercase;
}

/* Full Review Block */
.review-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2.5rem 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.review-block-header {
  background: var(--dark);
  color: var(--white);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.review-number {
  background: var(--accent);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.review-block-header h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.review-block-header .header-stars { color: var(--star); }
.review-block-body { padding: 22px; }
.review-emoji { font-size: 3.5rem; text-align: center; padding: 16px; background: var(--light); }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 1rem 0;
}
.spec-item {
  background: var(--light);
  border-radius: 5px;
  padding: 10px 12px;
}
.spec-label { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.spec-value { font-size: .95rem; font-weight: 700; color: var(--dark); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1rem 0;
}
.pros, .cons {
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pros { background: #e8f5e9; border-left: 4px solid #2e7d32; }
.cons { background: #fce4ec; border-left: 4px solid #c62828; }
.pros h4 { color: #2e7d32; margin: 0 0 8px; font-size: .95rem; }
.cons h4 { color: #c62828; margin: 0 0 8px; font-size: .95rem; }
.pros ul, .cons ul { padding-left: 1.2rem; margin: 0; }
.pros li::marker { color: #2e7d32; }
.cons li::marker { color: #c62828; }

.verdict-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 1.2rem 0;
}
.verdict-box strong { color: #5a4000; }

.cta-box {
  text-align: center;
  margin: 1rem 0 .5rem;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 1rem; }
.faq-a { color: var(--mid); font-size: .95rem; margin: 0; }

/* Buying Guide Box */
.guide-box {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin: 2rem 0;
}
.guide-box h2 { color: var(--white); }
.guide-box p { color: rgba(255,255,255,.85); }
.guide-box ul { color: rgba(255,255,255,.85); }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}
.guide-item {
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 14px;
}
.guide-item h4 { color: var(--accent); margin: 0 0 6px; font-size: .95rem; }
.guide-item p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.8); }

/* Under $50 List items */
.gadget-list-item {
  display: flex;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  align-items: flex-start;
  transition: box-shadow .18s;
}
.gadget-list-item:hover { box-shadow: var(--shadow-lg); }
.gadget-rank {
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gadget-icon { font-size: 3rem; flex-shrink: 0; }
.gadget-info { flex: 1; }
.gadget-info h3 { margin: 0 0 4px; }
.gadget-price { color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.gadget-desc { margin: 6px 0 10px; font-size: .92rem; color: var(--mid); }

/* Why Trust Us */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 1.5rem;
}
.trust-item { text-align: center; padding: 24px 16px; }
.trust-icon { font-size: 2.8rem; margin-bottom: 12px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.trust-item p { font-size: .9rem; color: var(--mid); margin: 0; }

/* Email Signup */
.email-signup {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  margin: 2rem 0;
}
.email-signup h2 { color: #fff; margin-top: 0; }
.email-signup p { color: rgba(255,255,255,.9); margin-bottom: 1.2rem; }
.email-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.email-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}
.email-form button {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.email-form button:hover { background: #333; }

/* Recent Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .15s;
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.review-card-thumb {
  background: var(--light);
  padding: 20px;
  text-align: center;
  font-size: 3rem;
}
.review-card-body { padding: 16px; }
.review-card-cat { font-size: .75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.review-card-body h3 { font-size: 1rem; margin: 0 0 8px; }
.review-card-body p { font-size: .87rem; color: var(--mid); margin-bottom: 10px; }
.review-card a.read-more { font-size: .88rem; font-weight: 600; }

/* About page */
.about-hero {
  background: var(--light);
  padding: 50px 20px;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}
.mission-box {
  font-size: 1.15rem;
  border-left: 5px solid var(--accent);
  padding: 20px 24px;
  background: #fff8f5;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.how-we-review {
  counter-reset: steps;
}
.review-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.step-num {
  counter-increment: steps;
  background: var(--accent);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.step-content h4 { margin: 0 0 4px; }
.step-content p { margin: 0; font-size: .92rem; color: var(--mid); }

.legal-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.8;
  margin: 1.5rem 0;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 50px 20px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: .87rem; line-height: 1.7; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: .95rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .88rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-disclosure {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  line-height: 1.6;
}

/* Section header with accent underline */
.section-heading {
  text-align: center;
  margin-bottom: 12px;
}
.section-heading h2 { display: inline-block; position: relative; }
.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 8px auto 0;
  border-radius: 2px;
}
.section-subtext {
  text-align: center;
  color: var(--muted);
  font-size: .97rem;
  margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* Table of contents */
.toc {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5rem 0;
}
.toc h4 { margin: 0 0 10px; font-size: .95rem; color: var(--dark); }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin-bottom: 5px; font-size: .9rem; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--border); padding: 10px 20px 18px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }

  .hero { padding: 50px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .gadget-list-item { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .comparison-table { font-size: .8rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .review-block-header { gap: 8px; }
}
