/* ============================================================
   STATUS PANEL — RPG character sheet
   ============================================================ */

.status-panel {
  position: fixed; inset: 0; z-index: 320;
  display: none;
  background: rgba(20, 14, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 32px 24px 64px;
}
.status-panel.show { display: block; animation: statusFade 200ms ease-out; }
@keyframes statusFade { from { opacity: 0; } to { opacity: 1; } }

.status-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  background: #fffdf8;
  border: 4px solid #2a1f3d;
  box-shadow: 12px 12px 0 #ffe45e;
  border-radius: 14px;
  padding: 28px;
}

.status-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: #fffdf8; color: #2a1f3d;
  border: 3px solid #2a1f3d; border-radius: 50%;
  box-shadow: 3px 3px 0 #2a1f3d;
  font-family: 'Press Start 2P', monospace; font-size: 11px;
  cursor: pointer;
}
.status-close:hover { background: #ffe45e; }
.status-close:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2a1f3d; }

/* ---- Header banner ---- */
.status-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; margin-bottom: 16px;
  background: linear-gradient(160deg, #2a1f3d 0%, #4a3265 100%);
  border: 3px solid #2a1f3d;
  border-radius: 8px;
  color: #fffdf8;
}
.status-avatar {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #ffa6c4;
  border: 3px solid #ffe45e;
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px; color: #2a1f3d;
}
.status-headline {
  flex: 1;
}
.status-name {
  font-family: 'Galmuri14', 'Galmuri11', sans-serif;
  font-size: 22px; color: #fffdf8;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.status-name .name-en {
  font-family: 'Galmuri14', 'Galmuri11', sans-serif;
  font-size: 16px; color: #ffe45e;
  margin-left: 10px;
}
.status-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #c8c0d4;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.status-meta .dot { color: #ffa6c4; }
.status-level {
  flex-shrink: 0;
  padding: 8px 12px;
  background: #ffe45e;
  border: 3px solid #fffdf8;
  border-radius: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 18px; color: #2a1f3d;
  text-align: center;
  line-height: 1;
}
.status-level small {
  display: block; font-size: 8px;
  color: #c8264f;
  margin-top: 4px;
}

/* ---- Tab strip ---- */
.status-tabs {
  display: flex; gap: 4px;
  overflow-x: auto;
  padding: 4px;
  margin-bottom: 18px;
  background: #2a1f3d;
  border: 3px solid #2a1f3d;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}
.status-tabs::-webkit-scrollbar { height: 4px; }
.status-tabs::-webkit-scrollbar-thumb { background: #ffe45e; border-radius: 2px; }
.status-tab {
  flex-shrink: 0; flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  background: transparent; color: #fffdf8;
  border: 2px solid transparent; border-radius: 4px;
  font-family: 'Press Start 2P', monospace; font-size: 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 80ms;
}
.status-tab:hover { background: rgba(255, 228, 94, 0.18); }
.status-tab.active {
  background: #ffe45e; color: #2a1f3d;
  border-color: #fffdf8;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.4);
}
.status-tab .tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  background: #c8264f; color: #fffdf8;
  border-radius: 8px;
  font-size: 8px;
}
.status-tab.active .tab-count { background: #2a1f3d; color: #ffe45e; }

/* ---- Content area heading ---- */
.status-content {
  min-height: 200px;
}
.section-h {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: #c8264f;
  margin: 18px 0 10px;
  letter-spacing: 0.04em;
}
.section-h:first-child { margin-top: 0; }

/* ---- STATUS tab ---- */
.status-summary {
  padding: 14px 16px;
  background: #fbf6ee;
  border-left: 4px solid #c8264f;
  border-radius: 4px;
  font-family: 'Pretendard Variable', system-ui, sans-serif;
  font-size: 14px; line-height: 1.7; color: #2a1f3d;
  margin-bottom: 12px;
}
.specialty-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.specialty-tag {
  padding: 5px 10px;
  background: #ffe45e; color: #2a1f3d;
  border: 2px solid #2a1f3d;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.targets {
  margin-bottom: 8px;
  padding: 12px 16px 12px 32px;
  background: #fffdf8;
  border: 2px dashed #6b5e85;
  border-radius: 6px;
  font-family: 'Galmuri11', sans-serif;
  font-size: 13px; color: #2a1f3d;
  line-height: 1.7;
}
.targets li::marker { color: #c8264f; }

/* Categorized tech stack list */
.stack-list {
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: #fbf6ee;
  border: 2px dashed #6b5e85;
  border-radius: 6px;
  margin-bottom: 8px;
}
.stack-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
}
.stack-group-label {
  font-family: 'Galmuri11', sans-serif;
  font-size: 12px;
  color: #c8264f;
  padding-top: 5px;
  letter-spacing: 0;
}
.stack-group-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.stack-chip {
  padding: 4px 9px;
  background: #fffdf8;
  border: 2px solid #2a1f3d;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #2a1f3d;
}

/* Skill bars */
.skills-grid {
  display: grid; gap: 10px;
}
.skill-row {
  display: grid;
  grid-template-columns: 220px 1fr 50px;
  align-items: center;
  gap: 10px;
}
.skill-name {
  font-family: 'Galmuri11', sans-serif;
  font-size: 13px; color: #2a1f3d;
}
.skill-name .group-tag {
  display: inline-block;
  padding: 1px 5px; margin-left: 4px;
  background: #6b5e85; color: #fffdf8;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
}
.skill-bar {
  position: relative;
  height: 14px;
  background: repeating-linear-gradient(
    to right,
    #ebe3d3 0 6px,
    #fffdf8 6px 7px
  );
  border: 2px solid #2a1f3d;
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8264f 0%, #ff6b8e 100%);
  border-right: 2px solid #2a1f3d;
}
.skill-level {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: #c8264f;
  text-align: right;
}

/* ---- TIMELINE tab ---- */
.edu-list {
  display: grid; gap: 12px;
}
.edu-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: #fffdf8;
  border: 3px solid #2a1f3d;
  box-shadow: 5px 5px 0 #ffa6c4;
  border-radius: 8px;
}
.edu-card .period {
  display: flex; flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.edu-card .period-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #6b5e85;
}
.edu-card .institution {
  font-family: 'Galmuri11', sans-serif;
  font-size: 16px; color: #2a1f3d;
  margin-bottom: 4px;
}
.edu-card .degree {
  font-family: 'Pretendard Variable', system-ui, sans-serif;
  font-size: 13px; color: #2a1f3d;
  margin-bottom: 6px;
}
.edu-card .detail {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #c8264f;
}
.edu-card .detail-list {
  list-style: none;
  padding: 0; margin: 6px 0 0;
}
.edu-card .detail-list li {
  position: relative;
  padding: 3px 0 3px 14px;
  font-family: 'Pretendard Variable', system-ui, sans-serif;
  font-size: 13px;
  color: #2a1f3d;
  line-height: 1.5;
}
.edu-card .detail-list li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 3px;
  color: #c8264f;
  font-size: 11px;
}

/* Type tag — color-coded by entry type */
.edu-card .type-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid #2a1f3d;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  background: #fffdf8;
  color: #2a1f3d;
}
.edu-card .tag-work     { background: #c8264f; color: #fffdf8; }
.edu-card .tag-research { background: #6b5e85; color: #fffdf8; }
.edu-card .tag-club     { background: #ffa6c4; color: #2a1f3d; }
.edu-card .tag-bootcamp { background: #ffe45e; color: #2a1f3d; }
.edu-card .tag-edu      { background: #b8e0b6; color: #2a1f3d; }

/* Left border accent by type */
.edu-card.timeline-work     { box-shadow: 5px 5px 0 #c8264f; }
.edu-card.timeline-research { box-shadow: 5px 5px 0 #6b5e85; }
.edu-card.timeline-club     { box-shadow: 5px 5px 0 #ffa6c4; }
.edu-card.timeline-bootcamp { box-shadow: 5px 5px 0 #ffb633; }
.edu-card.timeline-edu      { box-shadow: 5px 5px 0 #8fcc92; }

/* ---- CERTS tab ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.cert-card {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: #fffdf8;
  border: 3px solid #2a1f3d;
  box-shadow: 4px 4px 0 #2a1f3d;
  border-radius: 8px;
}
.cert-card::before {
  content: '◆';
  position: absolute;
  left: 14px; top: 14px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: #ffe45e;
  border: 2px solid #2a1f3d;
  border-radius: 50%;
  color: #c8264f; font-size: 14px;
}
.cert-card .cert-name {
  font-family: 'Galmuri11', sans-serif;
  font-size: 14px; color: #2a1f3d;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cert-card .cert-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #6b5e85;
}
.cert-card .cert-meta .dot { color: #c8264f; }

/* ---- AWARDS tab ---- */
.awards-list {
  display: grid; gap: 14px;
}
.award-card {
  position: relative;
  padding: 18px 20px 18px 76px;
  background: #fffdf8;
  border: 3px solid #2a1f3d;
  box-shadow: 6px 6px 0 #2a1f3d;
  border-radius: 8px;
}
.award-card::before {
  content: '★';
  position: absolute;
  left: 18px; top: 18px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #2a1f3d;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
}
.award-card.tier-GOLD::before {
  background: linear-gradient(135deg, #ffe45e 0%, #ffb633 100%);
  color: #2a1f3d;
  box-shadow: 0 0 0 2px #fffdf8, 0 0 12px rgba(255, 182, 51, 0.5);
}
.award-card.tier-SILVER::before {
  background: linear-gradient(135deg, #e8e8e8 0%, #b8b8c8 100%);
  color: #2a1f3d;
}
.award-card.tier-BRONZE::before {
  background: linear-gradient(135deg, #d4936b 0%, #a86843 100%);
  color: #fffdf8;
}
.award-card .award-tier {
  display: inline-block;
  padding: 2px 7px; margin-bottom: 6px;
  background: #2a1f3d;
  border-radius: 3px;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  letter-spacing: 0.06em;
}
.award-card.tier-GOLD   .award-tier { color: #ffe45e; }
.award-card.tier-SILVER .award-tier { color: #c8c0d4; }
.award-card.tier-BRONZE .award-tier { color: #d4936b; }

.award-card .award-title {
  font-family: 'Galmuri11', sans-serif;
  font-size: 16px; color: #2a1f3d;
  line-height: 1.3;
  margin-bottom: 6px;
}
.award-card .award-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #6b5e85;
  margin-bottom: 8px;
}
.award-card .award-meta .dot { color: #c8264f; }
.award-card .award-project {
  font-family: 'Galmuri11', sans-serif;
  font-size: 12px; color: #c8264f;
  margin-bottom: 6px;
}
.award-card .award-desc {
  font-family: 'Pretendard Variable', system-ui, sans-serif;
  font-size: 13px; color: #2a1f3d;
  line-height: 1.7;
}

/* ============================================================
   FLOATING "ABOUT ME" CALL-TO-ACTION
   ============================================================ */
.about-me-btn {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 210;             /* above title overlay (z=200) so it's visible from refresh */
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #ffa6c4;
  color: #2a1f3d;
  border: 4px solid #2a1f3d;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #c8264f, 0 0 0 3px #fffdf8 inset;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  cursor: pointer;
  pointer-events: auto;
  letter-spacing: 0.04em;
  animation: aboutBobble 1.6s ease-in-out infinite alternate;
}
.about-me-btn:hover {
  background: #ffe45e;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 7px 8px 0 #c8264f, 0 0 0 3px #fffdf8 inset;
}
.about-me-btn:active {
  animation: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #c8264f, 0 0 0 3px #fffdf8 inset;
}
@keyframes aboutBobble {
  0%   { transform: translateY(0)   rotate(-1deg); }
  100% { transform: translateY(-6px) rotate(1deg); }
}

.about-me-btn .about-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: #c8264f; color: #fffdf8;
  border: 2px solid #fffdf8;
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; line-height: 1;
  flex-shrink: 0;
  animation: badgePulse 0.7s ease-in-out infinite alternate;
}
@keyframes badgePulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(200, 38, 79, 0.6); }
  100% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(200, 38, 79, 0); }
}

.about-me-btn .about-text {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}
.about-me-btn .about-en {
  font-family: 'Galmuri14', 'Galmuri11', sans-serif;
  font-size: 14px;
  color: #2a1f3d;
  letter-spacing: 0.02em;
}
.about-me-btn .about-ko {
  font-family: 'Galmuri11', sans-serif;
  font-size: 11px;
  color: #6b5e85;
  letter-spacing: 0;
}

.about-me-btn .about-key {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 8px;
  background: #2a1f3d; color: #ffe45e;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  flex-shrink: 0;
}

/* Visibility while panel is open is handled in statusPanel.js (style.display).
   No CSS sibling rule — button comes BEFORE panel in DOM order, and :has()
   support varies. JS toggle is more reliable. */

/* ============================================================
   ONE-TIME TIP — speech bubble with arrow pointing to button
   ============================================================ */
.status-tip {
  position: fixed;
  top: 86px; right: 24px;
  z-index: 91;
  max-width: 220px;
  padding: 12px 14px;
  background: #fffdf8;
  color: #2a1f3d;
  border: 3px solid #2a1f3d;
  box-shadow: 5px 5px 0 #ffa6c4;
  border-radius: 10px;
  font-family: 'Galmuri11', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  display: none;
  pointer-events: none;
  text-align: left;
}
.status-tip.show {
  display: block;
  animation: tipFlyIn 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes tipFlyIn {
  0%   { opacity: 0; transform: translate(0, -16px) scale(0.85); }
  100% { opacity: 1; transform: translate(0, 0)    scale(1); }
}
.status-tip.fade-out { animation: tipFadeOut 240ms forwards; }
@keyframes tipFadeOut {
  from { opacity: 1; transform: translate(0, 0); }
  to   { opacity: 0; transform: translate(0, -8px) scale(0.95); }
}
.status-tip::before {
  content: '';
  position: absolute;
  top: -12px; right: 24px;
  width: 0; height: 0;
  border: 8px solid transparent;
  border-bottom: 12px solid #2a1f3d;
}
.status-tip::after {
  content: '';
  position: absolute;
  top: -7px; right: 27px;
  width: 0; height: 0;
  border: 5px solid transparent;
  border-bottom: 9px solid #fffdf8;
}
.status-tip .tip-star {
  display: inline-block;
  margin-right: 4px;
  color: #ffe45e;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  text-shadow: 1px 1px 0 #c8264f;
}
.status-tip b {
  color: #c8264f;
  font-weight: 500;
}

/* Mobile — keep button readable but compact */
@media (max-width: 600px) {
  .about-me-btn { padding: 8px 12px; gap: 6px; top: 12px; right: 12px; }
  .about-me-btn .about-en { font-size: 9px; }
  .about-me-btn .about-ko { font-size: 9px; }
  .about-me-btn .about-key { padding: 4px 6px; font-size: 8px; }
  .about-me-btn .about-badge { width: 18px; height: 18px; font-size: 9px; }
  .status-tip { top: 70px; right: 16px; font-size: 12px; max-width: 180px; }
  .stack-group { grid-template-columns: 1fr; gap: 4px; }
  .stack-group-label { padding-top: 0; }
}

/* ---- Mobile tweaks ---- */
@media (max-width: 600px) {
  .status-frame { padding: 18px; }
  .skill-row { grid-template-columns: 140px 1fr 40px; gap: 6px; }
  .edu-card { grid-template-columns: 1fr; gap: 6px; }
  .award-card { padding-left: 70px; }
  .status-banner { gap: 10px; padding: 12px; }
  .status-name { font-size: 16px; }
  .status-name .name-en { display: block; margin-left: 0; margin-top: 2px; }
}
