/* =========================================
   GadgetMeta — Main Stylesheet
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg:         #f5f6f8;
  --color-surface:    #ffffff;
  --color-surface-2:  #f0f2f5;
  --color-border:     #e2e5ea;
  --color-text:       #1a1d23;
  --color-text-muted: #6b7280;
  --color-accent:     #2563eb;
  --color-accent-light: #eff6ff;
  --color-youtube:    #ef4444;
  --color-blog:       #10b981;
  --color-positive:   #16a34a;
  --color-negative:   #dc2626;
  --color-mixed:      #d97706;
  --color-star:       #f59e0b;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --font-sans:  'Noto Sans JP', 'Inter', sans-serif;
  --max-w:      1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.main-content { padding: 32px 0 64px; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 1.8rem; font-weight: 700; }
.page-header p { color: var(--color-text-muted); margin-top: 6px; }

/* ── Site Header ───────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 1.2rem; font-weight: 700;
  color: var(--color-text) !important;
  text-decoration: none !important;
}
.site-logo span { color: var(--color-accent); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 6px 12px; border-radius: var(--radius-sm);
  color: var(--color-text-muted); font-size: 0.875rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--color-accent-light);
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Site Footer ───────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Cards ─────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 20px;
}

/* ── Section Title ──────────────────── */
.section-title {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1;
  height: 1px; background: var(--color-border);
}

/* ── Star Rating ────────────────────── */
.stars { color: var(--color-star); letter-spacing: -1px; font-size: 1rem; }
.score-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-star);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
}

/* ── Source Type Badge ──────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-youtube { background: #fef2f2; color: var(--color-youtube); border: 1px solid #fecaca; }
.badge-blog    { background: #f0fdf4; color: var(--color-blog);    border: 1px solid #bbf7d0; }

/* ── Tone Badge ─────────────────────── */
.tone-badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.tone-very_positive { background:#dcfce7; color:#15803d; }
.tone-positive      { background:#d1fae5; color:#047857; }
.tone-mixed         { background:#fef3c7; color:#92400e; }
.tone-negative      { background:#fee2e2; color:#b91c1c; }
.tone-very_negative { background:#fce7f3; color:#9d174d; }

/* ── Pros / Cons ────────────────────── */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (max-width: 600px) { .pros-cons-grid { grid-template-columns: 1fr; } }

.pros-block, .cons-block {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.pros-block { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-block { background: #fef2f2; border: 1px solid #fecaca; }

.pros-block h4 { color: var(--color-positive); margin-bottom: 8px; font-size: 0.85rem; }
.cons-block h4 { color: var(--color-negative); margin-bottom: 8px; font-size: 0.85rem; }

.pro-con-list { list-style: none; }
.pro-con-list li {
  padding: 4px 0; font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 6px;
}
.pro-con-list li .icon { flex-shrink: 0; margin-top: 2px; }
.pro-con-label { font-weight: 600; }
.pro-con-detail { color: var(--color-text-muted); font-size: 0.82rem; }
.timestamp-ref {
  font-size: 0.75rem; color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 1px 6px; border-radius: 4px;
  white-space: nowrap;
}

/* ── Review Card ────────────────────── */
.review-card { display: flex; flex-direction: column; gap: 10px; }
.review-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.review-card-meta { font-size: 0.8rem; color: var(--color-text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-card-summary { font-size: 0.9rem; color: var(--color-text-muted); }
.review-card-title { font-size: 1rem; font-weight: 600; }
.review-card-title a { color: var(--color-text); }
.review-card-title a:hover { color: var(--color-accent); text-decoration: none; }

/* ── Product Card ───────────────────── */
.product-card { display: flex; flex-direction: column; gap: 10px; }
.product-card-name { font-size: 1.05rem; font-weight: 700; }
.product-card-name a { color: var(--color-text); }
.product-card-name a:hover { color: var(--color-accent); text-decoration: none; }
.product-card-brand { font-size: 0.8rem; color: var(--color-text-muted); }
.product-card-stats { display: flex; gap: 12px; font-size: 0.82rem; color: var(--color-text-muted); flex-wrap: wrap; }
.product-card-stat strong { color: var(--color-text); }
.product-card-mini-pros { font-size: 0.82rem; }
.product-card-mini-pros span { color: var(--color-positive); }

/* ── Reviewer Card ──────────────────── */
.reviewer-card { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  overflow: hidden;
}
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-info { flex: 1; min-width: 0; }
.reviewer-name { font-weight: 700; font-size: 0.95rem; }
.reviewer-name a { color: var(--color-text); }
.reviewer-name a:hover { color: var(--color-accent); text-decoration: none; }
.reviewer-bio { font-size: 0.82rem; color: var(--color-text-muted); }

/* ── Product Detail ─────────────────── */
.product-stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px; text-align: center;
}
.stat-box .stat-num { font-size: 1.6rem; font-weight: 700; color: var(--color-accent); }
.stat-box .stat-label { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 2px; }

/* ── Aggregated Pro/Con Labels ──────── */
.label-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.label-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.label-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.label-chip-pro { background: #dcfce7; color: #15803d; }
.label-chip-pro:hover { background: #bbf7d0; }
.label-chip-pro.active-pro { background: #15803d; color: #ffffff; }

.label-chip-con { background: #fee2e2; color: #b91c1c; }
.label-chip-con:hover { background: #fecaca; }
.label-chip-con.active-con { background: #b91c1c; color: #ffffff; }

.label-chip-count {
  background: rgba(0,0,0,.08); border-radius: 10px;
  padding: 0 5px; font-size: 0.7rem;
}
.label-chip.active-pro .label-chip-count,
.label-chip.active-con .label-chip-count {
  background: rgba(255,255,255,.2);
}

/* ── Tabs ───────────────────────────── */
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border); margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px; background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Filter Bar ─────────────────────── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-bar label { font-size: 0.82rem; color: var(--color-text-muted); }
.filter-bar select {
  padding: 6px 10px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); background: var(--color-surface);
  font-family: var(--font-sans); font-size: 0.875rem;
  color: var(--color-text); cursor: pointer;
}

/* ── Reviewer Detail ────────────────── */
.reviewer-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.reviewer-header-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; flex-shrink: 0; overflow: hidden;
}
.reviewer-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-header-info h1 { font-size: 1.5rem; font-weight: 700; }
.reviewer-header-info .meta { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Verdict Box ────────────────────── */
.verdict-box {
  background: #f8fafc; border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 16px 0;
  font-size: 0.95rem; line-height: 1.65;
}

/* ── Source Link ────────────────────── */
.source-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  color: #fff; text-decoration: none !important;
  transition: opacity .15s;
}
.source-link-btn:hover { opacity: .85; }
.source-link-youtube { background: var(--color-youtube); }
.source-link-blog    { background: var(--color-blog); }

/* ── Pagination ─────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 0.875rem;
  background: var(--color-surface); color: var(--color-text);
}
.pagination a:hover { background: var(--color-accent-light); text-decoration: none; }
.pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ── Utility ────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.text-muted { color: var(--color-text-muted); }
.text-sm    { font-size: 0.875rem; }
.flex       { display: flex; }
.items-center { align-items: center; }
.gap-2      { gap: 8px; }
.gap-3      { gap: 12px; }
.font-bold  { font-weight: 700; }
.divider    { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }

/* ── Hero (Top page) ────────────────── */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff; padding: 56px 0 48px;
  margin-bottom: 40px;
}
.hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.hero p   { font-size: 1.05rem; opacity: .85; max-width: 560px; }
.hero-chips { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-chip {
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.4);
  font-size: 0.85rem; color: #fff;
  transition: background .15s;
}
.hero-chip:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ── Rakuten Affiliate Button ────────── */
.rakuten-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #e60012 0%, #a8000a 100%);
  color: #fff !important; text-decoration: none !important;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 2; /* clicks on details page card flow */
}
.rakuten-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
  transform: skewX(-25deg);
  transition: none;
}
.rakuten-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 0, 18, 0.45);
  filter: brightness(1.05);
}
.rakuten-btn:hover::before {
  left: 150%;
  transition: all 0.6s ease-in-out;
}
.rakuten-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(230, 0, 18, 0.4);
}
.rakuten-icon { font-size: 1.1rem; }
.rakuten-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: .06em;
  background: rgba(255,255,255,.25);
  padding: 1px 5px; border-radius: 3px;
}
.rakuten-cta-box {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.rakuten-cta-box .cta-text { font-size: 0.9rem; }
.rakuten-cta-box .cta-text strong { display: block; margin-bottom: 2px; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .header-inner { height: auto; flex-direction: column; gap: 8px; padding: 10px 0; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.4rem; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .product-stat-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ── Clickable Card Link Extension ────── */
.review-card, .product-card, .reviewer-card {
  position: relative;
}
.review-card:hover, .product-card:hover, .reviewer-card:hover {
  cursor: pointer;
}
.review-card-title a::after,
.product-card-name a::after,
.reviewer-name a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.review-card-meta a, 
.product-card-stats a,
.product-card-mini-pros a,
.reviewer-name a,
.badge, 
.tone-badge, 
.stars, 
.score-badge {
  position: relative;
  z-index: 2;
}
.review-card:hover .review-card-title a {
  color: var(--color-accent);
  text-decoration: none;
}
.product-card:hover .product-card-name a {
  color: var(--color-accent);
  text-decoration: none;
}
.reviewer-card:hover .reviewer-name a {
  color: var(--color-accent);
  text-decoration: none;
}

