/* ===================================
   CORNUCOPIA OF LOST DREAMS
   Y2K Evangelion — Simple Edition
   =================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Special+Elite&family=Share+Tech+Mono&display=swap');

/* --- Variables --- */
:root {
  --col-width: 540px;
  --bg: #0c0618;
  --surface: rgba(20, 10, 40, 0.85);
  --surface-solid: #140a28;
  --border: rgba(155, 89, 182, 0.3);
  --border-hover: rgba(155, 89, 182, 0.6);
  --text: #e0d6eb;
  --text-dim: #9a8fb0;
  --heading: #c9a0dc;
  --purple: #9b59b6;
  --purple-light: #c39bd3;
  --green: #66bb6a;
  --green-dim: rgba(102, 187, 106, 0.15);
  --orange: #e67e22;
  --red: #e74c3c;
  --link: #a88cc4;
  --link-hover: #d4a5f0;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
  --font-heading: 'Special Elite', cursive;
  --font-mono: 'Share Tech Mono', monospace;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}

/* --- Body --- */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle scanlines overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- Container (centered column) --- */
#container {
  width: var(--col-width);
  max-width: 95vw;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Header --- */
#header {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 25px 20px 15px;
  text-align: center;
}

#header h1 {
  font-family: var(--font-heading);
  font-size: 1.6em;
  color: var(--heading);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

#header .tagline {
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* --- Navigation --- */
#nav {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: center;
}

#nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
}

#nav li {
  display: inline;
}

#nav a {
  font-family: var(--font-mono);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--link);
  text-decoration: none;
  padding: 4px 10px;
  transition: color 0.2s, background 0.2s;
}

#nav a:hover,
#nav a.active {
  color: var(--link-hover);
  background: rgba(155, 89, 182, 0.1);
}

#nav li + li::before {
  content: '//';
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7em;
  opacity: 0.4;
}

/* --- Main Content --- */
#main {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 25px 28px;
  min-height: 300px;
}

#main h2 {
  font-family: var(--font-heading);
  font-size: 1.35em;
  color: var(--heading);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

#main h3 {
  font-family: var(--font-heading);
  font-size: 1.1em;
  color: var(--purple-light);
  margin-top: 18px;
  margin-bottom: 8px;
}

#main p {
  margin-bottom: 12px;
}

#main a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dotted var(--link);
  transition: color 0.2s;
}

#main a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

#main ul, #main ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

#main li {
  margin-bottom: 4px;
}

#main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* --- Footer --- */
#footer {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* --- Clock --- */
#clock {
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--green);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* =========================
   COMPONENT: Profile Card
   ========================= */
.profile {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.3em;
  color: var(--heading);
  margin-bottom: 4px;
}

.profile-meta {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--text-dim);
  line-height: 1.8;
}

.profile-meta .label {
  color: var(--purple-light);
}

.profile-quote {
  font-style: italic;
  color: var(--text-dim);
  border-left: 2px solid var(--purple);
  padding-left: 12px;
  margin: 14px 0;
  font-size: 0.95em;
}

/* =========================
   COMPONENT: Blog Posts
   ========================= */
.post {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--green);
  margin-bottom: 4px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.15em;
  color: var(--heading);
  margin-bottom: 8px;
}

.post p {
  margin-bottom: 8px;
}

/* =========================
   COMPONENT: Gallery
   ========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-grid img:hover {
  border-color: var(--border-hover);
  transform: scale(1.03);
}

.gallery-caption {
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--text-dim);
  text-align: center;
  margin-top: -4px;
  margin-bottom: 12px;
}

/* =========================
   COMPONENT: Links
   ========================= */
.link-section {
  margin-bottom: 22px;
}

.link-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(155, 89, 182, 0.15);
}

.link-entry:last-child {
  border-bottom: none;
}

.link-entry a {
  font-size: 1em;
}

.link-entry .link-desc {
  font-size: 0.85em;
  color: var(--text-dim);
}

.web-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.web-buttons img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.web-buttons img:hover {
  border-color: var(--border-hover);
}

/* =========================
   COMPONENT: Misc Items
   ========================= */
.now-playing {
  background: rgba(155, 89, 182, 0.08);
  border: 1px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.8em;
}

.now-playing .np-label {
  color: var(--green);
  font-size: 0.85em;
  margin-bottom: 4px;
}

.changelog-entry {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(155, 89, 182, 0.12);
}

.changelog-entry .date {
  color: var(--green);
}

.interests-list {
  columns: 2;
  column-gap: 20px;
  list-style: none;
  margin-left: 0;
}

.interests-list li {
  padding: 2px 0;
  position: relative;
  padding-left: 14px;
}

.interests-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.8em;
}

/* --- Status indicator --- */
.status-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68em;
  padding: 2px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-tag.active {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(102, 187, 106, 0.3);
}

/* --- Currently section --- */
.currently-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.currently-item {
  background: rgba(155, 89, 182, 0.06);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.9em;
}

.currently-item .cur-label {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

/* --- Contact list --- */
.contact-list {
  list-style: none;
  margin-left: 0;
}

.contact-list li {
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 0.82em;
}

.contact-list .platform {
  color: var(--purple-light);
  min-width: 80px;
  display: inline-block;
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border: 2px solid var(--border);
}

/* --- Section label (little mono tag) --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65em;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  #container {
    margin: 15px auto;
  }

  #main {
    padding: 18px 16px;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .currently-grid {
    grid-template-columns: 1fr;
  }

  .interests-list {
    columns: 1;
  }
}
