@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #0d0d0d;
  --cyan: #00fff9;
  --magenta: #ff00ff;
  --yellow: #ffff00;
  --lime: #39ff14;
  --red: #ff003c;
  --text: #c0c0c0;
  --dim: #555;
  --border: #333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 249, 0.015) 2px,
    rgba(0, 255, 249, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 9998;
}

h1, h2, h3, h4 {
  font-family: 'Press Start 2P', monospace;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan), 0 0 40px var(--cyan);
  line-height: 1.3;
}

h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
h2 { font-size: 1rem; margin-bottom: 1rem; color: var(--magenta); text-shadow: 0 0 10px var(--magenta), 0 0 20px var(--magenta); }
h3 { font-size: 0.75rem; margin-bottom: 0.75rem; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}

::selection {
  background: var(--magenta);
  color: var(--bg);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- NAV --- */
nav {
  border: 2px solid var(--magenta);
  box-shadow: 0 0 15px var(--magenta), inset 0 0 15px rgba(255,0,255,0.1);
  background: rgba(13,13,13,0.95);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--yellow);
  text-shadow: 0 0 5px var(--yellow);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--dim);
  transition: all 0.2s;
}

nav a:hover {
  color: var(--bg);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 15px var(--yellow);
  text-shadow: none;
}

nav .brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  border: none;
}

nav .brand:hover {
  background: transparent;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
  border: none;
  box-shadow: none;
}

/* --- HOME PAGE --- */
.hero {
  text-align: center;
  padding: 3rem 0;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px var(--cyan), inset 0 0 20px rgba(0,255,249,0.05);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(0, 255, 249, 0.02) 40px,
    rgba(0, 255, 249, 0.02) 80px
  );
  animation: scan 20s linear infinite;
}

@keyframes scan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.hero h1 {
  position: relative;
  z-index: 1;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -2px); }
  98% { transform: translate(1px, 2px); }
}

.hero .subtitle {
  font-size: 0.8rem;
  color: var(--lime);
  text-shadow: 0 0 5px var(--lime);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.link-card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  background: rgba(255,255,255,0.02);
}

.link-card:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 20px var(--magenta);
  transform: translateY(-4px);
}

.link-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.link-card h3 {
  color: var(--yellow);
  text-shadow: 0 0 5px var(--yellow);
}

.link-card p {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 0.5rem;
}

/* --- PAGE HEADER --- */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--magenta);
  box-shadow: 0 2px 10px rgba(255,0,255,0.2);
}

/* --- WISHLIST --- */
.notion-embed {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 500px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px rgba(0,255,249,0.2);
  background: #fff;
}

/* --- BLOG --- */
.blog-post {
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
  background: rgba(255,255,255,0.01);
}

.blog-post:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,255,249,0.1);
}

.blog-post .date {
  font-size: 0.65rem;
  color: var(--dim);
  font-family: 'Press Start 2P', monospace;
}

.blog-post .title {
  font-size: 0.75rem;
  color: var(--yellow);
  text-shadow: 0 0 3px var(--yellow);
  margin: 0.5rem 0;
}

.blog-post .excerpt {
  font-size: 0.8rem;
  color: var(--text);
}

.blog-post .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--lime);
  text-shadow: 0 0 3px var(--lime);
}

/* --- GALLERY --- */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gallery-tab {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--dim);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tab:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0,255,249,0.3);
}

.gallery-tab.active {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  text-shadow: 0 0 5px var(--magenta);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
}

.gallery-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,255,249,0.3);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item .placeholder {
  color: var(--dim);
  font-size: 0.7rem;
  text-align: center;
  padding: 1rem;
}

.gallery-item .placeholder .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* --- WISHLIST --- */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.wishlist-card {
  border: 1px solid var(--border);
  padding: 1.25rem;
  background: rgba(255,255,255,0.015);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.wishlist-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.wishlist-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,255,249,0.15);
  transform: translateY(-2px);
}

.wishlist-card:hover::before {
  opacity: 1;
}

.wishlist-card .item-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.95rem;
  color: var(--cyan);
  text-shadow: 0 0 5px rgba(0,255,249,0.3);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.wishlist-card .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.wishlist-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--dim);
  text-transform: uppercase;
}

.wishlist-tag.price-low {
  color: var(--lime);
  border-color: var(--lime);
  text-shadow: 0 0 3px var(--lime);
}

.wishlist-tag.price-mid {
  color: var(--yellow);
  border-color: var(--yellow);
  text-shadow: 0 0 3px var(--yellow);
}

.wishlist-tag.price-high {
  color: var(--magenta);
  border-color: var(--magenta);
  text-shadow: 0 0 3px var(--magenta);
}

.wishlist-tag.category {
  color: var(--text);
  border-color: var(--dim);
}

.wishlist-card .item-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--lime);
  text-shadow: 0 0 5px var(--lime);
  border: 1px solid var(--lime);
  padding: 0.4rem 0.75rem;
  transition: all 0.2s;
  text-decoration: none;
}

.wishlist-link:hover {
  background: var(--lime);
  color: var(--bg);
  box-shadow: 0 0 15px var(--lime);
  text-shadow: none;
}

.wishlist-empty {
  text-align: center;
  padding: 3rem;
  color: var(--dim);
  border: 1px dashed var(--dim);
  grid-column: 1 / -1;
}

.wishlist-empty .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.wishlist-status {
  font-size: 0.7rem;
  color: var(--dim);
  margin-bottom: 1rem;
}

.wishlist-refresh {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--dim);
  background: none;
  border: 1px solid var(--dim);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  float: right;
}

.wishlist-refresh:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* --- HOMEPAGE PHOTO CARD --- */
.photo-card {
  text-align: center;
  margin: 2rem auto;
  max-width: 280px;
}

.photo-frame {
  position: relative;
  display: inline-block;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0,255,249,0.3), inset 0 0 20px rgba(0,255,249,0.05);
  overflow: hidden;
}

.photo-frame .profile-pic {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.3) contrast(1.1);
}

.photo-scanlines {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 249, 0.06) 2px,
    rgba(0, 255, 249, 0.06) 4px
  );
  pointer-events: none;
}

.photo-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--magenta);
  border-style: solid;
  filter: drop-shadow(0 0 4px var(--magenta));
}

.photo-corner.tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.photo-corner.tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.photo-corner.bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.photo-corner.br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.photo-label {
  margin-top: 0.75rem;
  font-family: 'Press Start 2P', monospace;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.photo-tag {
  font-size: 0.6rem;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.photo-sub {
  font-size: 0.45rem;
  color: var(--dim);
}

/* --- STATUS BAR --- */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13,13,13,0.95);
  border-top: 2px solid var(--lime);
  box-shadow: 0 -2px 10px rgba(57,255,20,0.2);
  padding: 0.4rem 1.5rem;
  font-size: 0.6rem;
  color: var(--lime);
  font-family: 'Press Start 2P', monospace;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-bar .blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .container { padding: 1rem; }
  h1 { font-size: 1rem; }
  h2 { font-size: 0.8rem; }
  .hero { padding: 2rem 0; }
  .link-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wishlist-grid { grid-template-columns: 1fr; }
  nav a { font-size: 0.5rem; padding: 0.4rem 0.5rem; }
  .status-bar { font-size: 0.45rem; padding: 0.3rem 0.75rem; flex-direction: column; gap: 0.2rem; }
}

/* --- ASCII DIVIDER --- */
.ascii-divider {
  text-align: center;
  color: var(--dim);
  font-size: 0.6rem;
  margin: 1.5rem 0;
  word-break: break-all;
}
