/* ==========================================================================
   世界咖啡豆資訊 - 卡片目錄 + 詳細頁樣式
   ========================================================================== */

/* ---------- Page Header ---------- */
.wc-hero {
  background: var(--coffee-dark);
  color: var(--white);
  text-align: center;
  padding: 40px 20px 32px;
}

.wc-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.wc-hero small {
  font-size: 0.95rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 0;
}

/* ---------- Shop Banner ---------- */
.wc-shop-banner {
  display: block;
  background: var(--gold);
  color: var(--white) !important;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 1px;
  margin: 24px auto;
  max-width: 600px;
  transition: background .2s;
}

.wc-shop-banner:hover {
  background: var(--coffee-light);
}

/* ---------- Continent Section ---------- */
.wc-continent-section {
  margin-bottom: 40px;
}

.wc-continent-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coffee-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--coffee-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc-continent-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.wc-continent-title .dot-africa   { background: #8B4513; }
.wc-continent-title .dot-central  { background: #2E7D32; }
.wc-continent-title .dot-south    { background: #6B7B3A; }
.wc-continent-title .dot-asia     { background: #7a5c46; }
.wc-continent-title .dot-islands  { background: #546E7A; }

/* ---------- Card Grid ---------- */
.wc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
}

/* ---------- Country Card ---------- */
.wc-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.wc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.wc-card-img {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.wc-card-img.bg-africa   { background: linear-gradient(135deg, #8B4513, #A0522D); }
.wc-card-img.bg-central  { background: linear-gradient(135deg, #1B5E20, #2E7D32); }
.wc-card-img.bg-south    { background: linear-gradient(135deg, #4E5B2E, #6B7B3A); }
.wc-card-img.bg-asia     { background: linear-gradient(135deg, #5D4037, #7a5c46); }
.wc-card-img.bg-islands  { background: linear-gradient(135deg, #37474F, #546E7A); }

.wc-card-body {
  padding: 14px 16px;
}

.wc-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--coffee-dark);
  margin-bottom: 2px;
}

.wc-card-name-en {
  font-size: 0.82rem;
  color: var(--coffee-light);
  margin-bottom: 6px;
}

.wc-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--cream);
  color: var(--coffee-light);
}

/* ---------- Detail Page ---------- */
.wc-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.wc-breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.85rem;
  color: var(--coffee-light);
}

.wc-breadcrumb a {
  color: var(--coffee-light);
  text-decoration: none;
}

.wc-breadcrumb a:hover {
  color: var(--coffee);
}

.wc-breadcrumb .sep {
  margin: 0 6px;
}

.wc-detail h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--coffee-dark);
  color: var(--coffee-dark);
}

.wc-detail h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--coffee);
}

.wc-detail h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  color: var(--coffee);
}

.wc-detail p {
  margin: 8px 0;
  text-align: justify;
}

.wc-detail ul,
.wc-detail ol {
  margin: 8px 0;
  padding-left: 24px;
}

.wc-detail li {
  margin: 4px 0;
}

.wc-detail hr {
  border: none;
  border-top: 1px dashed var(--cream-dark);
  margin: 24px 0;
}

.wc-detail a {
  color: #2980b9;
}

.wc-back {
  display: inline-block;
  margin: 32px 0 48px;
  padding: 10px 24px;
  background: var(--coffee);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: background .2s;
}

.wc-back:hover {
  background: var(--coffee-dark);
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .wc-shop-banner,
  .wc-back { display: none; }
  .wc-detail { padding: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .wc-hero { padding: 28px 16px 24px; }
  .wc-hero h1 { font-size: 1.4rem; }

  .wc-cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .wc-card-img { height: 110px; font-size: 0.95rem; }
  .wc-card-body { padding: 10px 12px; }
  .wc-card-name { font-size: 0.95rem; }

  .wc-continent-section { margin-bottom: 28px; }
}
