/**
 * ------------------------------
 * tl-dashboard.css
 * ------------------------------
 * @purpose
 * Tutor LMS「まなびの記録」ページ用css
 *
 * @pages
 * ・まなびの記録
 *
 * @note
 * ・登録済み／学習中／完了の統計カードを3列の小型ボタンへ変更
 * ・学習時間カードを非表示
 *
 * @version
 * 1.0.11
 */

/**
 * ----------------------------------------
 *  # 統計カードエリア [pc,sp]
 * ----------------------------------------
 */
body.wm-dashboard-home .tutor-student-dashboard-stats > .tutor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

/**
 * 登録済み／学習中／完了を小型ボタン化
 */
body.wm-dashboard-home
  .tutor-student-dashboard-stats
  .tutor-stat-card:not(.tutor-stat-card-time-spent) {
  height: 88px;
  padding: 10px 14px;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

  text-decoration: none;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

body.wm-dashboard-home
  .tutor-student-dashboard-stats
  .tutor-stat-card:not(.tutor-stat-card-time-spent):hover {
  border-color: rgba(65, 105, 216, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

body.wm-dashboard-home
  .tutor-student-dashboard-stats
  .tutor-stat-card:not(.tutor-stat-card-time-spent):focus-visible {
  outline: 2px solid #4169d8;
  outline-offset: 2px;
}

/**
 * カード内を横並びに再構成
 */
body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-icon {
  flex: 0 0 auto;
}

body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-content {
  flex: 0 0 auto;
  margin-left: auto;
}

body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/**
 * 学習時間カードは非表示
 */
body.wm-dashboard-home
  .tutor-student-dashboard-stats
  .tutor-stat-card-time-spent {
  display: none !important;
}

/**
 * ----------------------------------------
 *  # SP
 * ----------------------------------------
 */
@media screen and (max-width: 768px) {
  body.wm-dashboard-home .tutor-student-dashboard-stats > .tutor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  body.wm-dashboard-home
    .tutor-student-dashboard-stats
    .tutor-stat-card:not(.tutor-stat-card-time-spent) {
    height: 66px;
    padding: 7px 7px;
    border-radius: 10px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3px;
  }

  body.wm-dashboard-home
    .tutor-student-dashboard-stats
    .tutor-stat-card-header {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-title {
    font-size: 11px;
    line-height: 1.35;
  }

  body.wm-dashboard-home
    .tutor-student-dashboard-stats
    .tutor-stat-card-icon
    svg {
    width: 16px;
    height: 16px;
  }

  body.wm-dashboard-home
    .tutor-student-dashboard-stats
    .tutor-stat-card-content {
    margin-left: 0;
  }

  body.wm-dashboard-home .tutor-student-dashboard-stats .tutor-stat-card-value {
    font-size: 18px;
  }
}

/* ----------------------------------------
 * 受講開始前ガイド：Quick Tips [pc,sp]
 * ---------------------------------------- */
.tutor-dashboard-quick-tips-card .wm-pre-course-guide-item {
  align-items: center;
}

.tutor-dashboard-welcome-card .wm-pre-course-guide-heading,
.tutor-dashboard-quick-tips-card .wm-pre-course-guide-heading {
  font-family: "HonokaMaru", "游ゴシック", sans-serif;
}

.tutor-dashboard-quick-tips-card .wm-pre-course-guide-heading {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.tutor-dashboard-quick-tips-card .wm-pre-course-guide-link {
  line-height: 1.6;
}

.tutor-dashboard-quick-tips-card .wm-pre-course-guide-benefits-cta {
  display: block;
  margin: 0 0 2px;
  padding: 10px 14px;
  border: 1px solid #c8b840;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffbd0 0%, #f5ec73 100%);
  color: #3f3b14 !important;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(150, 137, 35, 0.12);
}

.tutor-dashboard-quick-tips-card .wm-pre-course-guide-benefits-cta:hover,
.tutor-dashboard-quick-tips-card .wm-pre-course-guide-benefits-cta:focus-visible {
  background: linear-gradient(180deg, #fffde0 0%, #f8f08a 100%);
  color: #2f2c0c !important;
  text-decoration: none;
}

.tutor-dashboard-quick-tips-card .wm-pre-course-guide-more {
  display: inline-block;
  align-self: flex-end;
  margin: 10px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tutor-dashboard-quick-tips-card .wm-pre-course-guide-note {
  margin: -4px 0 0;
  color: #5d7180;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: right;
}

.tutor-dashboard-welcome-card .wm-pre-course-guide-cta-note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.65;
}

@media (max-width: 575px) {
  .tutor-dashboard-quick-tips-card .wm-pre-course-guide-benefits-cta {
    padding: 11px 12px;
  }
}
