@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #07070a;
  --text: #ececed;
  --muted: #707078;
  --soft: #b0b0b8;
  --line: #222228;

  /* Subtle OneShot inspired purple + warm yellow palette */
  --purple: #9d65ff;
  --purple-dim: rgba(157, 101, 255, 0.12);
  --yellow: #f4d35e;
  --yellow-dim: rgba(244, 211, 94, 0.12);

  --max-width: 590px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", Consolas, monospace;
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

/* ===== Canvas Background (Subtle Pixel Snow) ===== */

#pixel-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 56px 0 44px;
}

/* ===== Decorative pixel corner accents (Enlarged) ===== */

.pixel-corner {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  opacity: 0.75;
  z-index: 1;
}

.pixel-corner-left {
  left: 24px;
  top: 24px;
}

.pixel-corner-right {
  right: 24px;
  bottom: 24px;
  transform: rotate(180deg);
}

.pixel-corner i {
  position: absolute;
  width: 8px;
  height: 8px;
  display: block;
  image-rendering: pixelated;
}

.pixel-corner i:nth-child(1) { left: 0; top: 0; background: var(--purple); }
.pixel-corner i:nth-child(2) { left: 10px; top: 0; background: var(--purple); }
.pixel-corner i:nth-child(3) { left: 10px; top: 10px; background: var(--yellow); }
.pixel-corner i:nth-child(4) { left: 20px; top: 10px; background: var(--yellow); }
.pixel-corner i:nth-child(5) { left: 20px; top: 20px; background: var(--purple); }

/* ===== Profile Header ===== */

.profile {
  text-align: center;
  margin-bottom: 32px;
}

.avatar-wrapper {
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(157, 101, 255, 0.7), rgba(244, 211, 94, 0.6));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  display: block;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #111;
}

.profile .nickname {
  margin: 0;
  font-size: clamp(1.8rem, 5.5vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 40%, #f4d35e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nick-dot {
  width: 7px;
  height: 7px;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(244, 211, 94, 0.7);
  display: inline-block;
  border-radius: 1px;
  -webkit-text-fill-color: initial;
}

/* ===== Social Buttons ===== */

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.links a {
  padding: 6px 15px;
  border: 1px solid #2d2d38;
  border-radius: 999px;
  background: #0d0d12;
  color: #dedede;
  text-decoration: none;
  font: inherit;
  font-size: 0.8rem;
  transition: border-color 150ms ease, transform 150ms ease, color 150ms ease;
}

.links a:hover {
  border-color: var(--yellow);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Main Content Area ===== */

.content {
  border-left: 2px solid rgba(157, 101, 255, 0.45);
  border-right: 2px solid rgba(244, 211, 94, 0.35);
  padding: 24px 24px 24px;
  margin-top: 8px;
}

.section {
  padding: 0 0 32px;
}

.section:last-child {
  padding-bottom: 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
}

.section-title > span {
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 600;
}

.section-title h2 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.section p {
  margin: 0;
  color: var(--soft);
  font-size: 0.83rem;
  line-height: 1.7;
}

/* ===== Interests Grid ===== */

.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.interest-grid div {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: #c9c9cf;
  font-size: 0.8rem;
}

.interest-grid div::before {
  content: "› ";
  color: var(--yellow);
}

/* ===== Tags (Things I Use) ===== */

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  border: 1px solid #3d354e;
  background: var(--purple-dim);
  color: #d7c5ff;
  font-size: 0.76rem;
}

/* ===== PC & SYSTEM (Collapsible Section) ===== */

.pc-details {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  transition: border-color 0.2s ease;
}

.pc-details[open] {
  border-color: #3d354e;
}

.pc-summary {
  cursor: pointer;
  user-select: none;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  list-style: none;
}

.pc-summary::-webkit-details-marker {
  display: none;
}

.pc-summary .expand-indicator {
  margin-left: auto;
  color: var(--yellow);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.pc-details[open] .expand-indicator {
  transform: rotate(90deg);
}

.pc-list {
  margin: 0;
  padding: 0 16px 16px 36px;
  list-style: square;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.8;
}

.pc-list li::marker {
  color: var(--yellow);
}

/* ===== Footer ===== */

footer {
  text-align: center;
  margin-top: 40px;
  color: #45454e;
  font-size: 0.72rem;
}

/* ===== Accessibility (Reduced Motion) ===== */

@media (prefers-reduced-motion: reduce) {
  #pixel-canvas {
    display: none;
  }

  .links a,
  .pc-summary .expand-indicator {
    transition: none;
  }
}

/* ===== Mobile Responsiveness ===== */

@media (max-width: 520px) {
  .page {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 36px;
  }

  .content {
    padding: 0 14px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .pixel-corner-left {
    left: 10px;
    top: 10px;
  }

  .pixel-corner-right {
    right: 10px;
    bottom: 10px;
  }
}
