/* MATRIX BACKGROUND */
canvas#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1000;
  display: block;
  background-color: black;
}

/* BASE LAYOUT */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Fira Code', monospace;
  background: transparent;
  color: #ccc;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
overscroll-behavior-y: none;
  scroll-behavior: smooth;
}

/* FIXED LOGO HEADER */
.logo-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 56px;
  padding-right: 12rem;
  padding: 0 1.75rem 0 0.5rem;  /* tighter left/right */
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.full-logo {
  height: 100%;
  max-height: 60px;
  max-width: calc(100% - 2rem);
  width: auto;
  object-fit: contain;
}

/* CONTENT SPACING */
main {
  margin-top: 56px;
  padding: 1rem;
  min-height: calc(100vh - 56px - 140px); /* header height + footer estimate */
  box-sizing: border-box;
}

/* CARD BLOCKS */
.card-box {
  background: rgba(20, 20, 30, 0.3);
  border: 1px solid rgba(100, 100, 100, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.04);
}

.card-box h2 {
  margin-top: 0;
  color: #3390ff;
}

/* WELCOME BOX */
.welcome-box {
  background: rgba(20, 20, 30, 0.4);
  border: 1px solid rgba(80, 80, 80, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.03);
}

.welcome-box h2 {
  margin-top: 0;
  color: #3390ff;
}

.welcome-box p {
  color: #ddd;
  line-height: 1.6;
}
.donate-link {
  color: #3390ff;
  text-decoration: underline;
  font-weight: bold;
}

.donate-link:hover {
  color: #33ccff;
  text-shadow: 0 0 6px #00f0ff;
}

.emoji {
  font-size: 1.4em;
  vertical-align: middle;
  line-height: 1;
}

/* REPO LIST + CARDS */
.repo-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.repo-card {
  position: relative;
  background: rgba(30, 30, 40, 0.45);
  border: 1px solid rgba(80, 120, 180, 0.2);
  border-radius: 10px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.repo-card:hover {
  transform: translateY(-3px);
  border-color: #00f0ff;
  box-shadow: 0 0 8px #00f0ff, 0 0 16px #00f0ff66;
}

.repo-card h3 {
  margin: 0 0 0.5rem;
  color: #00c3ff;
}

.repo-card a {
  color: #3390ff;
  text-decoration: none;
}

.repo-card a:hover {
  text-decoration: underline;
}

.repo-card p {
  margin: 0.5rem 0;
  color: #ddd;
}

.repo-meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
}

.badge {
  display: inline-block;
  background: rgba(25, 25, 35, 0.6);
  border: 1px solid #3390ff;
  color: #3390ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 6px;
}

/* ARCHIVE TOGGLE */
.collapsible {
  cursor: pointer;
  user-select: none;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  color: #3390ff;
}

.collapsible span {
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

.repo-list.collapsed {
  display: none;
}

.archive-header {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.archive-header h2 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  
  margin: 0;
}

.archive-header h2 span {
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

.archive-subtitle {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
  margin-left: 1.9rem; /* aligns nicely under the title text */
  margin-top: 0.25rem;
}

.active-header {
  margin-bottom: 0.5rem;
}

.active-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.active-subtitle {
  font-size: 0.8rem;
  color: #aaa;
  margin-left: 0.2rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  color: #888;
  background: transparent;
  font-size: 0.9rem;
  margin-bottom: 0; /* Make sure there's no extra margin */
}

/* FAKE STATUD BAR */
.fake-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 20, 0.9);
  border-top: 1px solid #222;
  color: #66ccff;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 10px;
  z-index: 998;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}

.fake-status-bar span {
  white-space: nowrap;
}

/* MOBILE */
@media (max-width: 600px) {
  .full-logo {
    max-height: 48px;
  }

  main {
    padding: 1rem 0.5rem;
  }

  .repo-card {
    font-size: 0.95rem;
  }
}

#terminal-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: #00ffcc;
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-content {
  text-align: left;
  max-width: 600px;
  padding: 2rem;
}

.cursor {
  display: inline-block;
  animation: blink 0.9s steps(2, start) infinite;
  font-weight: bold;
}

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

.quote-line {
  font-style: italic;
  color: #88ccff;
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  min-height: 1.5em;
}
.quote-line.show {
  opacity: 1;
}
.wip-box {
  background: rgba(255, 255, 0, 0.1);
  border: 1px solid #ffd700;
  border-left: 5px solid #ffd700;
  padding: 10px 15px;
  margin: 1em 0;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 0 10px #ffd70080;
  backdrop-filter: blur(2px);
}
.wip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffcc00;
  color: #000;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.75rem;
  box-shadow: 0 0 8px #ffcc00aa;
  z-index: 2;
  text-shadow: none;

  background: #00f0ff22;
  color: #00f0ff;
  border: 1px solid #00f0ff55;
  box-shadow: 0 0 8px #00f0ffaa;
}
