﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800&display=swap');

:root {
  --bg: #f5f3f0;
  --card: #ffffff;
  --prose-panel-bg: #e2ddd6;
  --text: #1c1917;
  --muted: #78716c;
  --prose-body: #44403c;
  --prose-strong: #1c1917;
  --brand: #d97706;
  --brand-dark: #b45309;
  --line: #e7e5e4;
  --intro-h2-bar-edge: #92400e;
  --intro-h2-bar-mid: #f5f0e8;
  --intro-h2-bar-deep: #ede6db;
  --intro-h2-text: #78350f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(105deg, #78350f 0%, #6d2e0a 48%, #5c2408 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-text {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 32%, #fff9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.42));
}

.brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
  border-radius: 8px;
}

@keyframes brand-icon-pulse {
  0%,
  6%,
  100% {
    transform: scale(1);
  }
  1% {
    transform: scale(1.14);
  }
  2% {
    transform: scale(1);
  }
  3.5% {
    transform: scale(1);
  }
  4.2% {
    transform: scale(1.14);
  }
  5.2% {
    transform: scale(1);
  }
}

.brand-icon {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 25%;
  transform-origin: center center;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(9, 58, 65, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(186, 230, 253, 0.22);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
  animation: brand-icon-pulse 10s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand-icon {
    animation: none;
  }
}

.topbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.topbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.topbar-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links li {
  position: relative;
}

.topbar-links > li > a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.topbar-links > li > a:hover,
.topbar-links > li > a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.menu-parent > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 0 6px;
  list-style: none;
  margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1001;
}

.menu-parent:hover > .dropdown,
.menu-parent:focus-within > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 8px 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.dropdown li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(120deg, #d97706, #dc2626);
  color: #fff;
  padding: 32px 0 56px;
}

.site-header .container {
  max-width: min(920px, 92%);
  padding: clamp(22px, 4vw, 34px) clamp(22px, 4vw, 38px);
  background: rgba(60, 20, 5, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow:
    0 10px 40px rgba(50, 18, 4, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.site-header h1 .site-header-title-lead {
  background: linear-gradient(105deg, #ffffff 0%, #fffbeb 22%, #fef9c3 52%, #fde68a 82%, #fef08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.5)) drop-shadow(0 2px 6px rgba(15, 23, 42, 0.28));
}

.site-header h1 .site-header-title-rest {
  font-size: 0.8em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
}

.site-header p {
  margin: 0;
  max-width: 760px;
  opacity: 0.95;
}

.site-header h1 + p {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.92);
}

.section {
  padding: 34px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  padding: 10px;
  background: #e2e8f0;
}

.card-body {
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  text-align: center;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card .seo-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.card .seo-list li {
  margin-bottom: 6px;
}

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #0f172a;
  background: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.detail-main .detail-thumb {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 8px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
}

.seo-list {
  margin: 0;
  padding-left: 18px;
}

.seo-list li {
  margin-bottom: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14.5px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.data-table thead {
  background: #f8fafc;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(odd) td {
  background: #fafbfc;
}

.data-table a {
  color: #b45309;
  text-decoration: none;
  font-weight: 600;
}

.data-table a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.chart-figure {
  margin: 18px 0 22px;
  padding: 14px 16px 12px;
  background: #fffaf0;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.chart-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
}

.chart-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
  text-align: center;
  font-style: italic;
}

.rec-item {
  display: block;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.rec-item:last-child {
  border-bottom: 0;
}

.rec-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.rec-title {
  line-height: 1.3;
}

.bread {
  margin: 18px 0 0;
  color: #e0f2fe;
  font-size: 14px;
}

.site-header .bread a:first-of-type {
  display: inline-block;
  margin-right: 8px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: #78350f;
  text-decoration: none;
  vertical-align: middle;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.9);
  border-top: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 3px 10px rgba(120, 53, 15, 0.38),
    0 2px 4px rgba(92, 36, 8, 0.32);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.site-header .bread a:first-of-type:hover {
  color: #5c2408;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 45%, #fef3c7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 14px rgba(120, 53, 15, 0.45),
    0 2px 5px rgba(92, 36, 8, 0.38);
}

.site-header .bread a:first-of-type:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.intro-section {
  padding: 18px 0 0;
}

.intro-section .container {
  max-width: min(860px, 92%);
  padding: clamp(14px, 2.2vw, 20px) clamp(16px, 2.5vw, 24px);
  background: var(--prose-panel-bg);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 14px rgba(6, 72, 84, 0.06);
}

.intro-section h2,
.content-section .prose-panel h2 {
  font-size: clamp(19px, 2.75vw, 26px);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--intro-h2-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
  padding: 8px 14px 8px 12px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(
      102deg,
      #f4f9fc 0%,
      var(--intro-h2-bar-mid) 38%,
      var(--intro-h2-bar-deep) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-left: 3px solid var(--intro-h2-bar-edge);
  box-shadow:
    0 2px 12px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.intro-section p {
  max-width: none;
  margin: 0;
  color: var(--prose-body);
  line-height: 1.78;
  font-size: 1.05rem;
}

.intro-section p strong {
  color: var(--prose-strong);
  font-weight: 700;
}

.content-section {
  padding-top: 20px;
}

.content-section .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: min(860px, 92%);
}

.content-section .prose-panel {
  margin: 0;
  padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px);
  background: var(--prose-panel-bg);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 14px rgba(6, 72, 84, 0.06);
}

.content-section .prose-panel > h2:first-child {
  margin-top: 0;
}

.content-section .prose-panel > *:last-child {
  margin-bottom: 0;
}

.content-section .prose-panel p {
  color: var(--prose-body);
  line-height: 1.78;
  font-size: 1.05rem;
}

.content-section .prose-panel strong {
  color: var(--prose-strong);
  font-weight: 700;
}

.content-section .prose-panel p + p {
  margin-top: 0.75em;
}

.content-section .prose-panel ul,
.content-section .prose-panel ol {
  margin: 10px 0 14px;
  padding: 12px 16px 12px 1.9em;
  list-style-position: outside;
  border-radius: 11px;
  background: linear-gradient(165deg, #e8edf4 0%, #f4f6f9 55%, #eef2f6 100%);
  border: 1px solid rgba(71, 85, 105, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 8px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(255, 255, 255, 0.6);
}

.content-section .prose-panel ul li,
.content-section .prose-panel ol li {
  color: var(--intro-h2-text);
  line-height: 1.55;
  font-size: 1.02rem;
}

.content-section .prose-panel ul li strong,
.content-section .prose-panel ol li strong {
  color: var(--intro-h2-bar-edge);
  font-weight: 700;
}

.content-section .prose-panel li + li {
  margin-top: 0.28em;
}

.content-section .prose-panel a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-section .prose-panel a:hover {
  color: var(--brand);
}

/* Yellow theme: first "How to Earn…" card only (index) */
.content-section .prose-panel.prose-panel--gold {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 42%, #fbbf24 100%);
  border: 1px solid rgba(217, 119, 6, 0.38);
  border-top: 2px solid rgba(255, 251, 235, 0.9);
  box-shadow: 0 4px 20px rgba(146, 64, 14, 0.14);
}

.content-section .prose-panel.prose-panel--gold h2 .earn-title-note {
  margin-left: 0.12em;
  font-weight: 400;
  vertical-align: 0.05em;
}

.content-section .prose-panel.prose-panel--gold h2 {
  color: #6d3f1f;
  text-shadow: 0 1px 1px rgba(255, 252, 240, 0.75);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 251, 235, 0.2) 38%, transparent 58%),
    linear-gradient(
      118deg,
      #dcc175 0%,
      #e5cd82 14%,
      #efd88f 28%,
      #f8e8ae 40%,
      #fff8dc 50%,
      #f5e2a8 58%,
      #e9d080 72%,
      #d9bc68 88%,
      #ccad5c 100%
    );
  border: 1px solid rgba(180, 140, 70, 0.38);
  border-left: 3px solid #c9983c;
  box-shadow:
    0 2px 12px rgba(120, 90, 40, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 4px rgba(160, 120, 50, 0.12);
}

.content-section .prose-panel.prose-panel--gold > p {
  color: #57534e;
}

.content-section .prose-panel.prose-panel--gold > p strong {
  color: #b45309;
}

.content-section .prose-panel.prose-panel--gold > p strong.earn-money-phrase {
  color: #14532d;
}

.content-section .prose-panel.prose-panel--gold ul {
  list-style: none;
  padding: 12px 16px 12px 14px;
  background: linear-gradient(165deg, #fffef7 0%, #fffbeb 38%, #fff8e6 100%);
  border: 1px solid rgba(180, 100, 20, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 5px rgba(146, 64, 14, 0.08),
    0 3px 16px rgba(120, 70, 15, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.content-section .prose-panel.prose-panel--gold ul li {
  position: relative;
  padding-left: 1.65em;
  color: #44403c;
}

.content-section .prose-panel.prose-panel--gold ul li::before {
  content: "🪙";
  position: absolute;
  left: 0;
  top: 0.08em;
  line-height: 1.55;
  font-size: 1em;
}

.content-section .prose-panel.prose-panel--gold ul li strong {
  color: #b45309;
}

.content-section .prose-panel.prose-panel--gold ul li strong.gold-li-label {
  color: #166534;
}

.section-title {
  font-size: clamp(18px, 2.5vw, 24px);
  margin: 0 0 16px;
}

.faq-section {
  padding: 30px 0 10px;
}

.faq-section h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 16px;
}

.faq-list {
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item summary::before {
  content: "▸";
  transition: transform 0.2s;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 18px 14px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.faq-item a {
  color: var(--brand);
  text-decoration: underline;
}

.footer-seo {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.footer-links {
  margin: 8px 0 0;
}

.footer-links a {
  color: #475569;
}

.seo-hub-section {
  padding-top: 10px;
}

.hub-intro {
  color: var(--muted);
  max-width: 840px;
}

.hub-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hub-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-faq {
  margin-top: 20px;
}

.detail-faq h3 {
  margin: 0 0 10px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  width: 140px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .card-body {
    text-align: center;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .topbar-toggle {
    display: flex;
  }

  .topbar-row {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .topbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
  }

  .topbar-links.open {
    display: flex;
  }

  .topbar-links > li > a {
    padding: 10px 12px;
    border-radius: 6px;
  }

  .dropdown {
    position: static;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0 0 0 16px;
  }

  .menu-parent:hover > .dropdown,
  .menu-parent:focus-within > .dropdown {
    display: none;
  }

  .menu-parent.open > .dropdown {
    display: block;
  }
}
