/* Extensions for /personal/ (loads after ../blog/blog.css) */

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 52%);
  pointer-events: none;
}
:root[data-theme="dark"] .hero-card {
  box-shadow: none;
}
:root[data-theme="dark"] .hero-card::before {
  background: radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 52%);
}
.hero-sigil {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 210px;
  height: 210px;
  color: var(--accent);
  opacity: 0.08;
  pointer-events: none;
}
:root[data-theme="dark"] .hero-sigil {
  opacity: 0.14;
}
.hero-content { position: relative; z-index: 1; }
.hero-card h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  margin: 10px 0 14px;
  letter-spacing: -0.02em;
}
.hero-card .lead {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 660px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-item svg { width: 15px; height: 15px; color: var(--accent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--accent);
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Stats strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}
.stat-box b {
  display: block;
  font-size: 22px;
  color: var(--accent);
  line-height: 1.25;
}
.stat-box span {
  font-size: 12.5px;
  color: var(--muted);
}

/* Section block */
.sec {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mystic-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.mystic-icon svg { width: 19px; height: 19px; }
.sec-head h2 {
  font-size: 21px;
  margin: 0;
  line-height: 1.3;
}
.sec-head p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Radar charts */
.radars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.radar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.radar-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.radar svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}
.radar .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .area {
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
  stroke: var(--accent);
  stroke-width: 2;
}
.radar .dot { fill: var(--accent); }
.radar .lbl { fill: var(--text); font-size: 12.5px; font-weight: 500; }
.radar .val { fill: var(--accent); font-size: 12px; font-weight: 700; }
.radar-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* Highlights cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.mini-card .glyph {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.mini-card h3 { font-size: 15.5px; margin: 0 0 8px; line-height: 1.4; }
.mini-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.65; flex: 1; }
.mini-card p:last-child { margin-bottom: 0; }
.mini-card .more-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* Experience card */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.exp-top h3 { margin: 0; font-size: 18px; }
.exp-top .when { font-size: 13px; color: var(--accent); font-weight: 600; }
.exp-co { font-size: 14px; color: var(--muted); margin-top: 2px; }
.exp-card h4 {
  font-size: 14px;
  color: var(--accent);
  margin: 16px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exp-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--muted);
}
.exp-card li { margin: 4px 0; }

/* AI note & Work subheadings */
.ai-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}
.ai-note b {
  color: var(--text);
  margin-right: 8px;
}
.sub-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 26px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Status badges */
.st-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
  background: var(--accent-soft);
  color: var(--accent);
}
.st-badge.green { background: rgba(16, 185, 129, 0.14); color: #10b981; }
.st-badge.blue  { background: rgba(59, 130, 246, 0.14); color: #3b82f6; }
.st-badge.gray  { background: var(--code); color: var(--muted); }

/* Detailed Work Cards (all 16 Flutter Apps) */
.work-stack {
  display: grid;
  gap: 20px;
}
.work-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 82px;
  transition: border-color 0.15s;
}
.work-detail:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 14%, transparent);
}
.shot-phones {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: var(--code);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot-phones img {
  height: 290px;
  width: auto;
  border-radius: 10px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.15s;
}
.shot-phones img:hover { transform: scale(1.02); }
.shot-wide {
  padding: 18px;
  background: #141417;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.shot-wide img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  cursor: zoom-in;
}

.work-content {
  padding: 22px 24px 24px;
}
.work-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.work-content h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.work-content > p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--muted);
}
.backend-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.backend-box b {
  color: var(--accent);
  margin-right: 8px;
}
.work-content ul {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
}
.work-content li { margin: 4px 0; }
.work-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--code);
  padding: 1px 6px;
  border-radius: 5px;
}
.work-note {
  font-size: 12.5px !important;
  color: var(--faint) !important;
  margin-bottom: 14px !important;
}

/* Skills tiers */
.tiers {
  display: grid;
  gap: 12px;
}
.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tier-head h3 { margin: 0; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.tier-head span { font-size: 13px; color: var(--muted); }
.tier-stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; }
.tier-rows { display: grid; gap: 9px; }
.tier-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: baseline;
}
.tier-label { font-size: 12.5px; color: var(--faint); font-weight: 600; }

/* Contact card */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.contact-card h3 { margin: 8px 0 6px; font-size: 19px; }
.contact-card p { margin: 0 auto 18px; max-width: 480px; font-size: 14.5px; color: var(--muted); }

/* Sidebar work sub-index & latest posts */
.toc-list a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.work-sublist {
  list-style: none;
  margin: 4px 0 6px 18px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--line);
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.work-sublist a {
  display: block;
  padding: 3px 8px;
  font-size: 12.5px;
  color: var(--muted);
  border-radius: 6px;
}
.work-sublist a:hover,
.work-sublist a.active {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.side-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.side-posts a {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.side-posts a:hover { color: var(--accent); text-decoration: none; }
.side-posts time {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
}

/* Avatar subtle mystic ring */
.avatar-ring {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 21px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}
.avatar-ring .avatar {
  margin: 0;
  width: 72px;
  height: 72px;
}

/* Lightbox modal for zooming screenshots */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #f4f4f5;
  font-size: 13.5px;
  background: rgba(24, 24, 27, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(24, 24, 27, 0.8);
  color: #f4f4f5;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .radars { grid-template-columns: 1fr; }
  .tier-row { grid-template-columns: 1fr; gap: 4px; }
  .shot-phones img { height: 230px; }
}
