/**
 * Tutorial Pages - Shared Styles
 * Used by day1-tutorial.html through day6-tutorial.html
 */

/* ===== Layout ===== */
.tutorial-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.tutorial-header {
  text-align: center;
  margin-bottom: 60px;
}

.tutorial-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #E3F2FD;
  color: #1976D2;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tutorial-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.tutorial-subtitle {
  font-size: 20px;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

/* ===== Content Typography ===== */
.tutorial-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.tutorial-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 60px;
  margin-bottom: 24px;
  color: #1a1a1a;
  border-left: 4px solid #2196F3;
  padding-left: 16px;
}

.tutorial-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.tutorial-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.tutorial-content p {
  margin-bottom: 20px;
}

.tutorial-content ul,
.tutorial-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.tutorial-content li {
  margin-bottom: 12px;
}

/* ===== Code Blocks ===== */
.tutorial-content code {
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #e91e63;
}

.tutorial-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.tutorial-content pre code {
  background: transparent;
  padding: 0;
  color: #d4d4d4;
  font-size: 14px;
}

/* ===== Callouts ===== */
.callout {
  background: #f8f9fa;
  border-left: 4px solid #2196F3;
  padding: 20px;
  margin: 24px 0;
  border-radius: 4px;
}

.callout-warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.callout-success {
  background: #d4edda;
  border-left-color: #28a745;
}

.callout-info {
  background: #d1ecf1;
  border-left-color: #17a2b8;
}

.callout h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

/* ===== Tables ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: #2196F3;
  color: white;
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background: #f5f5f5;
}

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li::before {
  content: "\2705 ";
  margin-right: 8px;
}

/* ===== Navigation ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  color: #2196F3;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #1976D2;
}

.back-link::before {
  content: "\2190";
  margin-right: 8px;
  font-size: 20px;
}

/* ===== Blockquote ===== */
blockquote {
  background: #f5f5f5;
  padding: 16px 20px;
  border-left: 4px solid #2196F3;
  margin: 24px 0;
  font-style: italic;
}

/* ===== Day 1: Option Cards ===== */
.option-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.option-card:hover {
  border-color: #2196F3;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.option-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.option-card .pros {
  color: #28a745;
  margin-bottom: 8px;
}

.option-card .cons {
  color: #dc3545;
}

/* ===== Day 2: Examples & Soul Quote ===== */
.example-bad {
  color: #dc3545;
}

.example-good {
  color: #28a745;
}

.example-bad::before {
  content: "\274C ";
}

.example-good::before {
  content: "\2705 ";
}

.soul-quote {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  margin: 32px 0;
  border-left: none;
  font-size: 18px;
  line-height: 1.6;
}

/* ===== Day 3: Step Cards ===== */
.step-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-card h4 {
  color: #2196F3;
  margin-top: 0;
}

/* ===== Day 4: Skill Cards & Badges ===== */
.skill-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tutorial-content .skill-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.tutorial-content .skill-card:hover {
  border-color: #2196F3;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.tutorial-content .skill-card h4 {
  margin-top: 0;
  color: #2196F3;
}

/* ===== Day 6: Journey Table & Security ===== */
.journey-table {
  width: 100%;
  margin: 32px 0;
}

.journey-table th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.journey-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.security-checklist {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.security-checklist h4 {
  color: #2196F3;
  margin-top: 16px;
  margin-bottom: 12px;
}

/* ===== Language Notice Banner ===== */
.lang-notice {
  display: none;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  color: #856404;
}

.lang-notice.visible {
  display: block;
}

/* ===== Tutorial Navigation Buttons ===== */
.tutorial-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
}

.tutorial-nav-buttons .btn {
  margin-left: 0 !important;
}

/* ===== RWD: Mobile ===== */
@media (max-width: 768px) {
  .tutorial-container {
    padding: 80px 16px 40px;
  }

  .tutorial-header {
    margin-bottom: 36px;
  }

  .tutorial-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .tutorial-subtitle {
    font-size: 16px;
  }

  .tutorial-content {
    font-size: 16px;
  }

  .tutorial-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .tutorial-content h3 {
    font-size: 18px;
    margin-top: 28px;
  }

  .tutorial-content h4 {
    font-size: 16px;
  }

  .tutorial-content pre {
    padding: 12px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .tutorial-content code {
    font-size: 14px;
  }

  .callout {
    padding: 14px 16px;
    margin: 16px 0;
  }

  .callout h4 {
    font-size: 15px;
  }

  .option-card,
  .step-card,
  .security-checklist {
    padding: 16px;
  }

  .option-card h4 {
    font-size: 17px;
  }

  .soul-quote {
    padding: 16px;
    font-size: 15px;
  }

  /* Table: 允許橫向捲動 */
  .comparison-table,
  .journey-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td,
  .journey-table th,
  .journey-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }

  /* 導航按鈕：垂直排列 */
  .tutorial-nav-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 40px;
    gap: 10px;
  }

  .tutorial-nav-buttons .btn {
    text-align: center;
    width: 100%;
  }

  /* LINE banner 在手機垂直排列 */
  .line-banner-box {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .line-banner-box a {
    width: 100%;
    text-align: center;
  }
}
