/* ==========================================================================
   yuyufirst-theme — Custom Styles
   ========================================================================== */

/* CSS Variables */
:root {
  --color-primary: #FF6B35;
  --color-primary-hover: #E55A2B;
  --color-location: #2E7D32;
  --color-howto: #1565C0;
  --color-recommend: #FF6B35;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-light: #f8f9fa;
  --color-border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Post Card */
.post-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* Category Label */
.category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  line-height: 1.6;
}

.category-label--location {
  background-color: var(--color-location);
}

.category-label--howto {
  background-color: var(--color-howto);
}

.category-label--recommend {
  background-color: var(--color-recommend);
}

/* Author Box */
.author-box {
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
}

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

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

.breadcrumb .separator {
  margin: 0 0.4em;
  color: var(--color-text-light);
}

.breadcrumb .separator::before {
  content: ">";
}

/* Table of Contents */
.toc-container {
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

.toc-list a {
  text-decoration: none;
  color: var(--color-text);
}

.toc-list a:hover {
  color: var(--color-primary);
}

.toc-list .active {
  color: var(--color-primary);
  font-weight: 700;
}

/* FAQ Section */
.faq-section .faq-question {
  border-left: 3px solid var(--color-primary);
  padding-left: 12px;
}

.faq-section .faq-answer {
  padding-left: 20px;
}

/* Comparison Table */
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--color-bg-light);
}

.comparison-table th,
.comparison-table td {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
}

/* Location Card */
.location-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* Pillar Link */
.pillar-link {
  background: var(--color-bg-light);
  border-radius: var(--radius);
}

/* PR Notice */
.pr-notice {
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Source List */
.source-list {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Hero */
.hero {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .post-card img {
    aspect-ratio: 4 / 3;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .comparison-table {
    overflow-x: auto;
  }
}
