/* Reset & font */
@font-face {
  font-family: forced_square;
  src: url('ForcedSquare.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: forced_square, system-ui, sans-serif;
}

body {
  background: #112052;
  color: #b3c1ffff;
  line-height: 1.6;
  font-size: 1.7rem;
}

/* Navbar layout */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #28346aff;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Left side logo */
.logo img {
  height: 40px;
}

/* Right side (downloads + burger) */
.appDownloads {
  display: flex;
  align-items: center;
  margin-right: 0.75rem; /* spacing from burger */
}

.appDownloads img {
  height: 28px;
  display: block;
}

/* Group downloads + burger menu together on the right */
.navbar {
  display: flex;
  justify-content: space-between;
}

.navbar .right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Burger menu */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  background: #b3c1ff;
  border-radius: 2px;
}


/* Side Menu */
.side-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100%;
  background: #28346aff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  padding: 1rem;
}

.side-menu.open {
  right: 0;
}

.side-menu h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.side-menu ul {
  list-style: none;
}

.side-menu li {
  margin: 0.5rem 0;
  font-size: 1.7rem;
}

.side-menu a {
  text-decoration: none;
  color: #b3c1ffff;
  padding: 0.25rem;
  display: block;
  border-radius: 4px;
  transition: background 0.2s;
}

.side-menu a:hover {
  background: #112052;
}

/* Content */
.content {
  max-width: 800px;
  margin: 80px auto 2rem;
  padding: 0 1rem;
  text-align: center; /* keep headings centered */
}

/* Make lists inside content left-aligned */
.content ul {
  text-align: left;
  margin: 0.5rem auto 1.5rem; /* keeps them centered horizontally */
  padding-left: 2rem; /* standard list indent */
}


.content h1 {
  font-size: 7rem;
  margin-bottom: 1rem;
}

.status {
  margin-top: 1.25rem;
  opacity: 0.95;
  font-size: 1rem;
}

/* Mods grid */
.mods {
  max-width: none;
  width: 100%;
  margin: 40px 0 2rem;
  padding: 0 2rem;
}

/* Mods grid */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* Mod cards */
.mod-card {
  background: #28346aff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;       /* make width flexible inside the grid */
  max-width: 220px;  /* optional: limit max width for larger screens */
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 12px rgba(18, 32, 82, 0.3);
  cursor: pointer;
  word-break: break-word; /* prevent overflow of long text */
}

@media (max-width: 600px) {
  .mods-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .mod-card {
    padding: 1rem;
  }

  .mod-card img {
    width: 60px;
    height: 60px;
  }

  .mod-card h3 {
    font-size: 1.2rem;
  }

  .mod-card .mod-author {
    font-size: 0.9rem;
  }

  .mod-card .mod-tags {
    gap: 0.3rem;
  }

  .tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}

@media (max-width: 400px) {
  .mods-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .mod-card {
    padding: 0.8rem;
  }

  .mod-card img {
    width: 50px;
    height: 50px;
  }

  .mod-card h3 {
    font-size: 1rem;
  }

  .mod-card .mod-author {
    font-size: 0.8rem;
  }

  .mod-card .mod-tags {
    gap: 0.2rem;
  }

  .tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }
}


.mod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(18, 32, 82, 0.5);
}

/* Mod cards */
.mod-card-link {
  text-decoration: none;
  color: inherit;
}

.mod-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 10%;
}

.mod-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.mod-card .mod-author {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mod-card .mod-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Mod detail */
.mod-detail {
  max-width: 1100px;
  margin: 40px auto;
  padding: 2rem;
  border-radius: 12px;
  background: #28346aff;
  box-shadow: 0 0 18px rgba(18, 32, 82, 0.5);
  color: #b3c1ffff;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.mod-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.mod-detail-header img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.mod-detail-info h2 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.mod-detail-info p.mod-author {
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
  opacity: 0.95;
}

.mod-detail-info .mod-tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mod-desc {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
}

.copy-btn {
  margin-left: auto;
  background: #112052;
  color: #b3c1ff;
  border: 1px solid #334080;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}

.copy-btn:hover {
  background: #1c2b63;
  transform: translateY(-1px);
}

/* Versions list */
.mod-versions {
  margin-top: 1rem;
}

.mod-version {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.version-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #28346aff;
  transition: background 0.2s;
}

.version-header:hover {
  background: #334080ff;
}

.version-support {
  font-size: 1rem;
  color: #b3c1ffff;
  opacity: 0.8;
  margin: 0.25rem 0 0.5rem 0;
}

.changelog {
  display: none;
  padding: 0.5rem 1rem;
}

.changelog ul {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

/* Footer */
.footer {
  background: #28346a;
  color: #b3c1ff;
  text-align: center;
  padding: 1rem;
  font-size: 1.7rem;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* make sure body is at least viewport height */
}

main {
  flex: 1; /* pushes footer down */
}

.content a,
.mod-detail a,
.footer a {
  color: #b3c1ff;
  text-decoration: underline;
}
