/* ===== 기본 리셋 & 변수 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f8fafc;
  --hero-bg: #2a1a5e;
  --card-bg: #ffffff;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --purple: #7c3aed;
  --text: #0f172a;
  --text2: #64748b;
  --text3: #94a3b8;
  --border: #e2e8f0;
  --tab-h: 64px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: var(--tab-h);
  -webkit-font-smoothing: antialiased;
}

/* Auth 로딩 중 깜빡임 방지 */
body.auth-loading .header .btn-login,
body.auth-loading .header .btn-signup { visibility: hidden; }
body.auth-loading .mypage-guest,
body.auth-loading .mypage-user,
body.auth-loading .session-create,
body.auth-loading .session-submit,
body.auth-loading .write-banner { visibility: hidden; }

/* ===== 상단 헤더 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.header-nav a:hover {
  color: var(--blue);
}
/* 모바일: 헤더 네비 숨기고 간소화 */
@media (max-width: 639px) {
  .header-nav { display: none; }
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-signup {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.btn-login {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--blue);
}
.user-avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== 히어로 ===== */
.hero {
  padding: 0;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding: 28px 20px 0;
}
.hero-text {
  position: relative;
  z-index: 2;
  text-align: left;
}
.hero-photo {
  position: absolute;
  right: -130px;
  top: -50px;
  width: 95%;
  max-width: 550px;
  z-index: 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 639px) {
  .hero-photo { top: -25px; }
}
/* 히어로 캔버스 애니메이션 */
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-text .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
  padding-top: 8px;
}
/* 히어로 CTA 버튼 (세련된 화이트) */
.btn-hero-cta {
  display: block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  letter-spacing: -0.3px;
  transition: background 0.2s;
}
.btn-hero-cta:active {
  background: rgba(255,255,255,0.2);
}
.btn-primary {
  display: block;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
  letter-spacing: -0.3px;
}
.btn-secondary {
  display: block;
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ===== 통계 ===== */
.stats {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 20px 0 4px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 10px 16px;
}
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0;
}

/* ===== 섹션 공통 ===== */
.section {
  padding: 28px 20px;
  background: var(--bg);
}
.section-highlight {
  background: #fef9c3;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-more {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ===== AI 툴 카드 ===== */
.tool-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.tool-card:active { box-shadow: 0 4px 16px rgba(37,99,235,0.12); }
.tool-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tool-icon.blue { background: #eff6ff; }
.tool-icon.purple { background: #f5f3ff; }
.tool-icon.green { background: #f0fdf4; }
.tool-icon.orange { background: #fffbeb; }
.tool-info { flex: 1; min-width: 0; }
.tool-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}
.tool-desc {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  flex-shrink: 0;
}
.badge-free { background: #ecfdf5; color: #059669; }
.badge-pro { background: #fef3c7; color: #d97706; }

/* ===== 커뮤니티 포스트 ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.post-item {
  background: var(--card-bg);
  padding: 16px;
}
.post-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.post-category {
  display: inline-block;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}
.post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
}
.post-meta {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== 갤러리 카드 ===== */
.gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text);
}
.gallery-thumb {
  height: 110px;
  background: linear-gradient(135deg, #1e3a5f, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.gallery-info { padding: 12px; }
.gallery-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gallery-desc {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 8px;
}
.gallery-tags { display: flex; gap: 4px; }
.gallery-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  background: #eff6ff;
  color: var(--blue);
}
.gallery-tag.lock { background: #fef3c7; color: #d97706; }

/* ===== CTA 배너 ===== */
.cta-section {
  padding: 0 20px 28px;
}
.cta-banner {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -60px; right: -40px;
  border-radius: 50%;
}
.cta-banner h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}
.cta-banner p {
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 18px;
  position: relative;
}
.cta-banner .btn-primary {
  max-width: 260px;
  margin: 0 auto;
  position: relative;
}

/* ===== 전화 FAB 버튼 ===== */
.fab-phone {
  position: fixed;
  right: 14px;
  bottom: 140px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(124,58,237,0.4);
  z-index: 199;
  transition: transform 0.2s;
}
.fab-phone:active {
  transform: scale(0.9);
}

/* 채널톡 커스텀 버튼 */
.fab-channel {
  position: fixed;
  right: 14px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
  z-index: 199;
  cursor: pointer;
  transition: transform 0.2s;
}
.fab-channel:active {
  transform: scale(0.9);
}

/* ===== 법률 페이지 (약관/개인정보) ===== */
.legal-content {
  padding: 24px 20px 40px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal-content p {
  margin-bottom: 12px;
  color: var(--text2);
}
.legal-content .legal-date {
  margin-top: 32px;
  font-weight: 600;
  color: var(--text);
}

/* ===== 사이트 푸터 ===== */
.site-footer {
  background: linear-gradient(135deg, #1e3a6f 0%, #3b2d7a 50%, #4a3590 100%);
  color: #94a3b8;
  padding: 16px 20px 20px;
  font-size: 12px;
  line-height: 1.8;
}
.footer-company {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.footer-company span {
  font-weight: 400;
  font-size: 13px;
  color: #94a3b8;
}
.footer-info p {
  margin: 0;
}
.footer-copyright {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}
.footer-links {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
}
.footer-links a:last-child {
  font-weight: 700;
  color: #e2e8f0;
}

/* ===== 하단 탭바 ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tab-h);
  background: linear-gradient(135deg, #1e3a6f 0%, #3b2d7a 50%, #4a3590 100%);
  border-top: none;
  display: flex;
  z-index: 200;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}
.tab-item .tab-icon {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-item svg { width: 22px; height: 22px; }
.tab-item.active {
  color: #fff;
}
.tab-item.active .tab-icon {
  animation: tabPulse 0.5s ease;
}

/* 마이크로 애니메이션 (PC + 모바일) */
.tab-item:hover { color: rgba(255,255,255,0.9); }
.tab-item:hover .tab-icon {
  transform: translateY(-3px) scale(1.15);
}
.tab-item:hover .tab-icon svg {
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.3));
}
.tab-item:active .tab-icon {
  transform: translateY(0) scale(0.95);
}

/* 활성 탭 펄스 */
@keyframes tabPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ===== 구분선 ===== */
.divider {
  height: 8px;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== 로그인 모달 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 300;
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 20px 40px;
  width: 100%;
}
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.modal h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.modal p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.btn-close-modal {
  width: 100%;
  background: transparent;
  color: var(--text3);
  border: none;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== 커뮤니티 페이지 ===== */

/* 카테고리 필터 탭 */
.community-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
}
.community-tabs::-webkit-scrollbar { display: none; }
.community-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.community-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* 글쓰기 FAB */
.fab-write {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.fab-write:active { transform: scale(0.92); }

/* 글쓰기 모달 */
.write-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 300;
  align-items: flex-end;
}
.write-overlay.open { display: flex; }
.write-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.write-modal h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.write-field {
  margin-bottom: 14px;
}
.write-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
}
.write-field input,
.write-field textarea,
.write-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.write-field input:focus,
.write-field textarea:focus,
.write-field select:focus {
  border-color: var(--blue);
}
.write-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
.write-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.write-actions .btn-primary {
  flex: 1;
  padding: 14px;
  font-size: 15px;
}
.write-actions .btn-cancel {
  flex-shrink: 0;
  padding: 14px 20px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 글 목록 (커뮤니티 전용 확장) */
.community-posts {
  padding: 16px 20px;
}
.community-posts .post-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.community-posts .post-item:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}
.post-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.post-like-btn:active,
.post-like-btn.liked {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.7;
}

/* 글 상세 뷰 */
.post-detail {
  display: none;
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 56px - var(--tab-h));
}
.post-detail.open { display: block; }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 20px;
}
.detail-category {
  display: inline-block;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.detail-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.detail-meta {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  white-space: pre-wrap;
}
.detail-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.15s;
}
.detail-like-btn:active,
.detail-like-btn.liked {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
}

/* 댓글 영역 */
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.comments-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.comment-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.comment-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.comment-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.comment-time {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}
.comment-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.comment-input-wrap textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
  resize: none;
  min-height: 44px;
  max-height: 100px;
  outline: none;
}
.comment-input-wrap textarea:focus {
  border-color: var(--blue);
}
.comment-submit {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* 로딩 스피너 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text3);
  font-size: 14px;
}

/* ===== 커뮤니티 히어로 (미니) ===== */
.community-hero {
  background: var(--hero-bg);
  text-align: center;
  padding: 36px 20px 32px;
  position: relative;
  overflow: hidden;
}
.community-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}
/* 히어로 아이콘 애니메이션 */
.community-hero h1 { display: inline; }
.hero-icon {
  font-size: 32px;
  margin-left: 8px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.hero-icon-bounce {
  animation: heroBounce 2s ease-in-out infinite;
}
.hero-icon-float {
  animation: heroFloat 3s ease-in-out infinite;
}
.hero-icon-pulse {
  animation: heroPulse 2.5s ease-in-out infinite;
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(3deg); }
  75% { transform: translateY(-3px) rotate(-3deg); }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.community-hero h1 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -0.5px;
}
.community-hero p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  position: relative;
}

/* ===== 글쓰기 배너 (aihr 스타일) ===== */
.write-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 20px 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b69 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.write-banner::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -40px; right: -20px;
  border-radius: 50%;
}
.write-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.write-banner-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.write-banner-text span {
  font-size: 11px;
  color: #93c5fd;
}
.write-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== 정렬 바 ===== */
.sort-bar {
  display: flex;
  gap: 4px;
  padding: 14px 20px 0;
  justify-content: flex-end;
}
.sort-btn {
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}
.sort-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ===== 게시글 카드 (aihr 스타일) ===== */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.post-card:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.post-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.post-card-author-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.post-card-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.post-card-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  background: #eff6ff;
  color: var(--blue);
}
.post-card-time {
  font-size: 11px;
  color: var(--text3);
  flex-shrink: 0;
}
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.post-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-card-comments {
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
}

/* ===== 갤러리 그리드 페이지 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.gallery-grid-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-grid-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.gallery-grid-thumb {
  height: 110px;
  background: linear-gradient(135deg, #1e3a5f, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.gallery-grid-info {
  padding: 12px;
}
.gallery-grid-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.gallery-grid-info p {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-grid-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-grid-likes {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
}

/* 앱 상세 모달 */
.app-detail-modal {
  text-align: center;
}
.app-detail-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}
.app-detail-modal h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.app-detail-modal p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.app-detail-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.app-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.app-detail-actions .btn-primary {
  text-decoration: none;
}
.btn-source {
  display: block;
  background: var(--bg);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ===== AI 툴 목록 페이지 ===== */
.tools-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-card-full {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.tool-card-full:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}

/* ===== 마이페이지 ===== */
.mypage-login-prompt {
  text-align: center;
  padding: 60px 20px;
}
.mypage-login-prompt .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.mypage-login-prompt p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
}
.mypage-login-prompt .btn-primary {
  max-width: 260px;
  margin: 0 auto;
}

.mypage-profile {
  background: var(--hero-bg);
  text-align: center;
  padding: 32px 20px 28px;
  position: relative;
  overflow: hidden;
}
.mypage-profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}
.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 12px;
  position: relative;
}
.mypage-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
}
.mypage-email {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  position: relative;
}
.mypage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.mypage-badge.pro {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.1);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.badge-dot.free { background: #34d399; }
.badge-dot.pro { background: #fbbf24; }

.mypage-stats {
  display: flex;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.mypage-stat {
  flex: 1;
  text-align: center;
}
.mypage-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.mypage-stat-label {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.mypage-stat-divider {
  width: 1px;
  background: var(--border);
}

.mypage-section {
  padding: 16px 20px;
}

/* PRO 배너 */
.pro-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b69 100%);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.pro-banner::before {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -50px; right: -30px;
  border-radius: 50%;
}
.pro-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  position: relative;
}
.pro-banner-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.pro-banner-text span {
  font-size: 12px;
  color: #93c5fd;
}
.pro-banner-price {
  margin-bottom: 14px;
  position: relative;
}
.pro-banner-price strong {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}
.pro-banner-btn {
  position: relative;
  max-width: 200px;
}

/* 메뉴 리스트 */
.mypage-menu {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.mypage-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mypage-menu-item:last-child {
  border-bottom: none;
}
.mypage-menu-item:active {
  background: var(--bg);
}
.mypage-menu-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.mypage-menu-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.mypage-menu-arrow {
  font-size: 16px;
  color: var(--text3);
}

/* 로그아웃 */
.mypage-logout {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* ===== 초보자 입문 가이드 페이지 ===== */

.guide-hero {
  background: var(--card-bg);
  text-align: center;
  padding: 40px 20px 32px;
  border-bottom: 1px solid var(--border);
}
.guide-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.guide-hero p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* 역량진단 배너 */
.guide-diagnosis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.guide-diagnosis::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -60px; right: -40px;
  border-radius: 50%;
}
.guide-diagnosis-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.guide-diagnosis-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.guide-diagnosis-left strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.guide-diagnosis-left span {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.guide-diagnosis-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 섹션 탭 */
.guide-section-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-section-tabs::-webkit-scrollbar { display: none; }
.guide-section-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.guide-section-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.guide-section-tab svg {
  flex-shrink: 0;
}

.guide-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

/* 카테고리 필터 */
.guide-filters {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.guide-filters::-webkit-scrollbar { display: none; }
.guide-filter {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: #f1f5f9;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.guide-filter.active {
  background: var(--blue);
  color: #fff;
}

/* 가이드 패널 */
.guide-panel {
  padding: 0 20px 20px;
}

/* 툴 카드 그리드 (aihr 스타일 3열 → 모바일 1열) */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.guide-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.guide-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.guide-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.guide-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  padding: 2px 8px;
  background: #eff6ff;
  border-radius: 4px;
}
.guide-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.guide-card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.guide-card-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text2);
}
.guide-card-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.guide-card-btn:hover {
  background: var(--bg);
  border-color: var(--blue);
  color: var(--blue);
}

/* 비교표 */
.guide-compare-section {
  margin-bottom: 28px;
}
.guide-compare-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-top: 16px;
  letter-spacing: -0.3px;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.compare-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table thead {
  background: var(--text);
  color: #fff;
}
.compare-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.5;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:nth-child(even) {
  background: var(--bg);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.faq-question {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.5;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  display: none;
  padding: 0 18px 16px;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-answer p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text2);
}

/* ===== 홈 바로가기 카드 ===== */
.home-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.home-link-card:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.home-link-arrow {
  font-size: 18px;
  color: var(--blue);
  flex-shrink: 0;
  font-weight: 700;
}

/* ===== 교육 세션 ===== */

/* 세션 카드 */
.session-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.session-card:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.session-card-top h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.session-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.session-status.active {
  background: #d1fae5;
  color: #059669;
}
.session-status.closed {
  background: #f1f5f9;
  color: #94a3b8;
}
.session-card-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text2);
}

.session-admin-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.session-admin-btns button {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-edit-session {
  background: var(--blue);
  color: #fff;
}
.btn-delete-session {
  background: #fee2e2;
  color: #dc2626;
}

.btn-photo {
  flex: 1;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: #fef9c3;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #92400e;
  transition: background 0.15s;
}
.btn-photo:active {
  background: #fde68a;
}

/* 세션 히어로 */
.session-hero {
  background: var(--hero-bg);
  padding: 20px 20px 24px;
  position: relative;
}
.session-hero h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.session-hero p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.session-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.session-participants {
  font-size: 13px;
  color: #93c5fd;
  font-weight: 600;
}
.session-qr-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.session-close-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 제출 카드 */
.submit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.submit-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.submit-card-header strong {
  font-size: 14px;
  color: var(--text);
}
.submit-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.submit-card-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.6;
}
.submit-card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
  max-height: 300px;
  object-fit: cover;
}
.submit-card-link {
  display: block;
  font-size: 13px;
  color: var(--blue);
  word-break: break-all;
  margin-bottom: 4px;
}

/* 전체화면 (프로젝터) */
.fullscreen-view {
  display: none;
  position: fixed;
  inset: 0;
  background: #0f1729;
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.fullscreen-view.open {
  display: flex;
}
.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}
.fullscreen-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.fullscreen-info {
  text-align: center;
  padding: 20px;
}
.fullscreen-info h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.fullscreen-info p {
  font-size: 14px;
  color: #94a3b8;
}

/* 세션 제출 폼 영역 */
.session-submit {
  padding: 16px 20px 0;
}

/* 세션 갤러리 그리드 (aihr 스타일) */
.session-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .session-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .session-gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery-submit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.gallery-submit-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.gallery-submit-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1e3a5f, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-submit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-submit-thumb .thumb-link {
  font-size: 36px;
  color: rgba(255,255,255,0.6);
}
.gallery-submit-info {
  padding: 12px;
}
.gallery-submit-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-submit-info p {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.gallery-submit-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
}
.gallery-submit-author .mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}

/* 조 배지 */
.gallery-team-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(37,99,235,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

/* 접근 차단 */
.session-locked {
  padding: 20px;
}
