/* ================================================================
   GeoGuard Documentation — Custom Styles
   ================================================================ */

/* --------------------------------
   Site Footer
   -------------------------------- */
#global-site-footer {
  background-color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 15;
  border-top: 1px solid #e0e0e0;
}

.markdown-section > .site-footer {
  display: none;
}

.footer-line {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.footer-line a {
  color: #777;
  text-decoration: none;
}

.footer-line a:hover {
  color: #0374B5;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #aaa;
}

/* --------------------------------
   Hero Section (Home Page)
   -------------------------------- */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #0374B5;
}

.hero-stat .label {
  font-size: 0.9rem;
  color: #666;
}

/* --------------------------------
   Card List (Navigation Cards)
   -------------------------------- */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card-rounded {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}

.card-rounded:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-rounded h3 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 1.15rem;
  color: #1a1a2e;
}

.card-rounded p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------
   Feature Grid (3-column cards)
   -------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.feature-card i {
  font-size: 2rem;
  color: #0374B5;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h4 {
  margin: 0.5rem 0 !important;
  font-size: 1.05rem;
  color: #1a1a2e;
}

.feature-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* --------------------------------
   Step Indicators (numbered steps)
   -------------------------------- */
.steps {
  counter-reset: step-counter;
  margin: 2rem 0;
}

.step {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}

.step::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0374B5;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h4 {
  margin: 0 0 0.25rem 0 !important;
  font-size: 1rem;
  color: #1a1a2e;
}

.step-content p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* --------------------------------
   Callouts (blockquote-based)
   -------------------------------- */

/* Tip / 提示 */
blockquote.tip {
  border-left: 4px solid #0374B5;
  background: #f0f8ff;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

blockquote.tip p:first-child::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  color: #0374B5;
}

/* Warning / 注意 */
blockquote.warning {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

blockquote.warning p:first-child::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  color: #f59e0b;
}

/* Important / 重要 */
blockquote.important {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

blockquote.important p:first-child::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  color: #ef4444;
}

/* --------------------------------
   Plans Comparison Table Highlight
   -------------------------------- */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.plan-table th,
.plan-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e8e8e8;
  text-align: center;
}

.plan-table th {
  background: #f8f9fa;
  font-weight: 600;
}

.plan-table .highlight-col {
  background: #f0f8ff;
  border-color: #0374B5;
}

.plan-table th.highlight-col {
  background: #0374B5;
  color: #fff;
}

/* --------------------------------
   Flow Steps (horizontal)
   -------------------------------- */
.flow-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  align-items: center;
}

.flow-step {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  min-width: 120px;
  flex: 1;
  max-width: 180px;
}

.flow-step i {
  font-size: 1.5rem;
  color: #0374B5;
  display: block;
  margin-bottom: 0.5rem;
}

.flow-step strong {
  display: block;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.flow-step span {
  font-size: 0.8rem;
  color: #888;
}

.flow-arrow {
  font-size: 1.2rem;
  color: #ccc;
  align-self: center;
}

/* --------------------------------
   Permission Table
   -------------------------------- */
.permission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.permission-table th,
.permission-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid #e8e8e8;
  text-align: center;
}

.permission-table th {
  background: #f8f9fa;
  font-weight: 600;
}

.permission-table td:first-child {
  text-align: left;
  font-weight: 500;
}

/* --------------------------------
   Responsive
   -------------------------------- */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .card-list {
    grid-template-columns: 1fr;
  }
}
