/*
Theme Name: Everyday Review
Theme URI: https://example.com/everyday-review
Author: K-Network
Author URI: https://example.com
Description: A clean, responsive WordPress theme for English-language physical product reviews and affiliate content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: everyday-review
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --er-bg: #f7f8fa;
  --er-surface: #ffffff;
  --er-text: #172033;
  --er-muted: #647084;
  --er-border: #e4e8ef;
  --er-accent: #f4b400;
  --er-accent-dark: #c98b00;
  --er-dark: #111827;
  --er-success: #177245;
  --er-danger: #b42318;
  --er-radius: 18px;
  --er-shadow: 0 12px 35px rgba(23, 32, 51, 0.08);
  --er-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--er-bg);
  color: var(--er-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--er-accent-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 32px), var(--er-container)); margin-inline: auto; }
.site-main { min-height: 60vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--er-border);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.custom-logo { width: auto; max-height: 44px; }
.site-title { font-size: 1.25rem; font-weight: 850; letter-spacing: -.03em; }
.site-description { margin: 0; font-size: .78rem; color: var(--er-muted); line-height: 1.25; }

.primary-nav ul { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: .93rem; font-weight: 700; }
.primary-nav .current-menu-item > a { color: var(--er-accent-dark); }
.menu-toggle { display: none; border: 0; background: var(--er-dark); color: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgba(244,180,0,.22), transparent 24%),
    linear-gradient(135deg, #111827 0%, #1f2937 62%, #273348 100%);
  color: #fff;
  padding: 92px 0 82px;
}
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #ffe7a2; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.hero h1 { max-width: 780px; margin: 18px 0 18px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.hero p { max-width: 660px; margin: 0 0 28px; color: #cbd5e1; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--er-accent);
  color: #17120a;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .wp-block-button__link:hover { color: #17120a; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(244,180,0,.28); background: #ffc928; }
.button-secondary { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.button-secondary:hover { background: #fff; color: var(--er-dark); box-shadow: none; }
.hero-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; padding: 24px; box-shadow: 0 25px 60px rgba(0,0,0,.22); }
.hero-stat { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { display: block; font-size: 1.02rem; }
.hero-stat span { color: #cbd5e1; font-size: .9rem; }
.stat-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--er-accent); color: var(--er-dark); font-weight: 900; }

.section { padding: 72px 0; }
.section-white { background: var(--er-surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.12; letter-spacing: -.04em; }
.section-heading p { margin: 8px 0 0; max-width: 650px; color: var(--er-muted); }
.text-link { font-weight: 800; white-space: nowrap; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { padding: 25px; background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius); box-shadow: 0 8px 24px rgba(23,32,51,.04); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--er-shadow); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff5d5; font-size: 1.25rem; margin-bottom: 18px; }
.category-card h3 { margin: 0 0 7px; font-size: 1.15rem; }
.category-card p { margin: 0; color: var(--er-muted); font-size: .92rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.review-card { position: relative; overflow: hidden; background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius); box-shadow: 0 8px 28px rgba(23,32,51,.05); display: flex; flex-direction: column; }
.review-card-image { aspect-ratio: 16/10; background: #eef1f5; overflow: hidden; }
.review-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.review-card:hover .review-card-image img { transform: scale(1.04); }
.review-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.review-card h3 { margin: 8px 0 7px; font-size: 1.18rem; line-height: 1.35; letter-spacing: -.02em; }
.review-card p { margin: 0 0 17px; color: var(--er-muted); font-size: .92rem; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--er-border); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: #fff4ce; color: #7a5500; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.review-card > .badge { position: absolute; z-index: 2; top: 14px; left: 14px; box-shadow: 0 5px 16px rgba(0,0,0,.1); }
.rating { display: inline-flex; align-items: center; gap: 7px; font-weight: 850; }
.rating-stars { color: #e7a400; letter-spacing: 1px; }
.price-label { color: var(--er-muted); font-size: .83rem; font-weight: 700; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 38px; align-items: start; }
.content-area, .sidebar-card { background: var(--er-surface); border: 1px solid var(--er-border); border-radius: var(--er-radius); }
.content-area { padding: clamp(24px, 5vw, 52px); }
.sidebar { position: sticky; top: 105px; display: grid; gap: 18px; }
.sidebar-card { padding: 23px; }
.sidebar-card h3 { margin: 0 0 14px; }
.entry-header { margin-bottom: 30px; }
.entry-title { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.045em; }
.entry-meta { color: var(--er-muted); font-size: .9rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2em; line-height: 1.2; letter-spacing: -.025em; }
.entry-content h3 { margin-top: 1.8em; line-height: 1.25; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--er-border); text-align: left; min-width: 130px; }
.entry-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--er-accent); background: #fffbec; }
.featured-image { margin: 0 0 30px; overflow: hidden; border-radius: 16px; }

.review-summary { margin: 26px 0 34px; display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 25px; border: 1px solid var(--er-border); border-radius: 17px; background: #fbfcfe; }
.review-score { display: grid; place-items: center; align-content: center; min-height: 145px; border-radius: 16px; background: var(--er-dark); color: #fff; text-align: center; }
.review-score strong { font-size: 3.2rem; line-height: 1; }
.review-score span { color: #cbd5e1; font-size: .82rem; }
.review-verdict h2 { margin: 0 0 8px; }
.review-verdict p { margin: 0; color: var(--er-muted); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.pros-box, .cons-box { padding: 22px; border-radius: 15px; border: 1px solid var(--er-border); }
.pros-box { background: #f1fbf6; }
.cons-box { background: #fff5f3; }
.pros-box h3 { color: var(--er-success); }
.cons-box h3 { color: var(--er-danger); }
.pros-box h3, .cons-box h3 { margin: 0 0 10px; }
.pros-box ul, .cons-box ul { margin: 0; padding-left: 20px; }
.affiliate-box { padding: 24px; border-radius: 16px; background: #111827; color: #fff; text-align: center; }
.affiliate-box .price-label { color: #cbd5e1; display: block; margin-bottom: 14px; }
.affiliate-box .button { width: 100%; }
.disclosure { padding: 12px 15px; border-radius: 10px; background: #fff8dc; border: 1px solid #f0d884; color: #594500; font-size: .82rem; margin-bottom: 22px; }

.archive-header { padding: 60px 0 32px; }
.archive-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.05em; line-height: 1.08; }
.archive-description { max-width: 720px; color: var(--er-muted); }
.pagination { margin: 35px 0; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 13px; background: #fff; border: 1px solid var(--er-border); border-radius: 8px; }
.page-numbers.current { background: var(--er-dark); color: #fff; }
.empty-state { padding: 40px; text-align: center; background: #fff; border: 1px dashed #cfd6e1; border-radius: var(--er-radius); grid-column: 1/-1; }

.site-footer { margin-top: 70px; padding: 52px 0 22px; background: #111827; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 38px; }
.site-footer h3 { margin: 0 0 13px; }
.site-footer p, .site-footer li, .site-footer a { color: #b9c3d2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: #94a3b8; font-size: .86rem; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute!important; width: 1px; word-wrap: normal!important; }
.alignwide { width: min(1100px, 100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 980px) {
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 650px; }
  .category-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .primary-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 18px 16px 24px; background: #fff; border-bottom: 1px solid var(--er-border); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-nav a { display: block; padding: 10px; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 680px) {
  .hero { padding: 65px 0; }
  .hero-grid { gap: 35px; }
  .category-grid, .card-grid, .pros-cons, .review-summary, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .review-score { min-height: 125px; }
  .footer-bottom { flex-direction: column; }
  .content-area { padding: 23px; }
}
