/* courses.css — 강좌 전체 목록 페이지 */

/* 홈으로 돌아가기 플로팅 버튼 (우상단 고정) */
.home-fab {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 2px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.home-fab:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.home-fab svg { width: 20px; height: 20px; }
.home-fab-label { font-family: 'Cormorant Garamond', serif; }
@media (max-width: 640px) {
  .home-fab { padding: 8px 14px 8px 12px; font-size: 12px; top: 14px; right: 14px; }
  .home-fab svg { width: 18px; height: 18px; }
}

.courses-header { padding: 96px 0 48px; text-align: center; border-bottom: 1px solid var(--border); }
.courses-header h1 { font-size: clamp(36px, 6vw, 72px); }
.courses-header p { color: var(--text-soft); margin-top: 12px; }

.filter-tabs { display: flex; justify-content: center; gap: 8px; padding: 32px 16px; flex-wrap: wrap; }
.filter-tab { padding: 8px 20px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all .2s; background: transparent; color: inherit; }
.filter-tab:hover { background: var(--surface); }
.filter-tab.active { background: var(--accent); color: white; border-color: var(--accent); }

.courses-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding: 32px 0 96px; }
.course-card { opacity: 1; transition: opacity .3s; }
.course-card.hidden { display: none; }
.course-card.highlight { animation: flash 1.5s; }
@keyframes flash { 0%,100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: 0 0 0 4px var(--accent); } }

/* ======== Vivid 테마 (원색의 캔버스) 시각적 차별화 ======== */
[data-theme="vivid"] body {
  background: var(--bg);
}
[data-theme="vivid"] .courses-header {
  background: linear-gradient(135deg, #ff5d2a 0%, #e63a7a 55%, #8b2fb0 100%);
  color: #ffffff;
  border-bottom: none;
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}
[data-theme="vivid"] .courses-header::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
[data-theme="vivid"] .courses-header > * { position: relative; z-index: 1; }
[data-theme="vivid"] .courses-header a {
  color: rgba(255,255,255,0.85) !important;
}
[data-theme="vivid"] .courses-header h1 {
  font-family: 'Black Han Sans', sans-serif;
  color: #ffffff;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
[data-theme="vivid"] .courses-header p {
  color: rgba(255,255,255,0.9);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
[data-theme="vivid"] .filter-tab {
  border-width: 2px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
[data-theme="vivid"] .filter-tab.active {
  background: linear-gradient(135deg, #ff5d2a, #e63a7a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(230, 58, 122, 0.35);
}
[data-theme="vivid"] .course-card {
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
[data-theme="vivid"] .course-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 93, 42, 0.18);
}
