/* ─────────────────────────────────────────────────────────────
   kitaylena.wtf
   ───────────────────────────────────────────────────────────── */

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

:root {
  --accent-rgb: 0, 0, 0;
  --app-font: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --bg: #110b1a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --panel-bg: rgba(20, 22, 25, 0.55);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.5);
}

/* base things */
body {
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  overflow: hidden;
}

p,
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: var(--app-font);
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

/* terminal  */
#loadingpage {
  position: fixed;
  inset: 0;
  background-color: #000000;
  color: #fcfcfc;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#loadingpage.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loadingpage.ready {
  cursor: pointer;
}

.log-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.log-ok {
  color: #ae00ff;
}

.log-info {
  color: #8b949e;
}

#promptline {
  margin-top: 1rem;
  color: #ffffff;
  font-weight: bold;
}

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

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

/* background */
#background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#background canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* layout, topbar i think */
#mainstuff {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

#topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
}

#visitcounter {
  position: absolute;
  right: 12px;
  font-family: var(--app-font);
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
}

#menudropdown {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--app-font);
  font-size: 14px;
  cursor: pointer;
}

#nav-menu {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: rgba(12, 6, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(165, 115, 255, 0.25);
  border-top: none;
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.nav-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(165, 115, 255, 0.12);
  padding: 0.55rem 0.9rem;
  color: var(--text-secondary);
  font-family: var(--app-font);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-item:hover {
  background: rgba(130, 65, 230, 0.2);
  color: #ffffff;
}

/* popup windows */
.popupwindow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  min-width: 260px;
  min-height: 150px;
  max-width: 95vw;
  max-height: 90vh;
  font-family: var(--app-font);
  background: rgba(12, 6, 22, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(165, 115, 255, 0.25);
  border-radius: 0;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(120, 50, 220, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 10;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: popupIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.popupwindow.open {
  display: flex;
}

@keyframes popupIn {
  from {
    opacity: 0;
    scale: 0.95;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.65rem 0.9rem;
  background: rgba(130, 65, 230, 0.12);
  border-bottom: 1px solid rgba(165, 115, 255, 0.18);
  cursor: grab;
  user-select: none;
}

.popup-titlebar:active {
  cursor: grabbing;
}

.popup-title {
  font-size: 0.8rem;
  color: rgba(215, 185, 255, 0.9);
  letter-spacing: 0.03em;
}

.popup-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.popup-close:hover {
  color: #ffffff;
  background: rgba(175, 120, 255, 0.2);
}

.popup-body {
  padding: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(165, 115, 255, 0.35) transparent;
}

.popup-body h1 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.popup-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.popup-body p + p {
  margin-top: 0.75rem;
}

/* we ignore that i used ai for this for the symbol ok? okay? */
.popup-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  z-index: 2;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(165, 115, 255, 0.35) 50%,
    rgba(165, 115, 255, 0.35) 62%,
    transparent 62%,
    transparent 75%,
    rgba(165, 115, 255, 0.55) 75%
  );
}

.popup-resizer:hover {
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(195, 155, 255, 0.65) 50%,
    rgba(195, 155, 255, 0.65) 62%,
    transparent 62%,
    transparent 75%,
    rgba(215, 185, 255, 0.9) 75%
  );
}

/* socialing */
.socials-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(130, 65, 230, 0.08);
  border: 1px solid rgba(165, 115, 255, 0.22);
  color: var(--text-primary);
  font-family: var(--app-font);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-btn:hover {
  background: rgba(130, 65, 230, 0.22);
  border-color: rgba(185, 140, 255, 0.5);
  transform: translateY(-1px);
}

.social-btn:active {
  transform: translateY(0);
}

.social-platform {
  color: rgba(215, 185, 255, 0.95);
  font-weight: bold;
}

.social-handle {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.85rem;
  background: rgba(130, 65, 230, 0.08);
  border: 1px solid rgba(165, 115, 255, 0.22);
  color: var(--text-primary);
  font-family: var(--app-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  background: rgba(130, 65, 230, 0.22);
  border-color: rgba(185, 140, 255, 0.5);
  transform: translateY(-1px);
}

.project-card:active {
  transform: translateY(0);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-name {
  font-size: 0.85rem;
  font-weight: bold;
  color: rgba(215, 185, 255, 0.95);
}

.project-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* discord stuff */
#discord-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem;
  margin-bottom: 1rem;
  background: rgba(130, 65, 230, 0.08);
  border: 1px solid rgba(165, 115, 255, 0.18);
}

.discord-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

#discord-pfp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}

#discord-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border: 2px solid #0c0616;
}

.status-online  { background: #23a55a; }
.status-idle    { background: #f0b232; }
.status-dnd     { background: #f23f43; }
.status-offline { background: #80848e; }

.discord-user-info {
  min-width: 0;
}

.discord-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#discord-name {
  font-family: var(--app-font);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-primary);
}

#discord-status-badge {
  font-family: var(--app-font);
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid currentColor;
}

.badge-online  { color: #23a55a; background: rgba(35, 165, 90, 0.12); }
.badge-idle    { color: #f0b232; background: rgba(240, 178, 50, 0.12); }
.badge-dnd     { color: #f23f43; background: rgba(242, 63, 67, 0.12); }
.badge-offline { color: #80848e; background: rgba(128, 132, 142, 0.12); }

#discord-custom-status {
  font-family: var(--app-font);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-status-emoji {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

#discord-activity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(165, 115, 255, 0.18);
}

#activity-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
}

.activity-text {
  min-width: 0;
  font-family: var(--app-font);
}

#activity-name {
  font-size: 0.8rem;
  font-weight: bold;
  color: rgba(215, 185, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#activity-details {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}