/* ====== RESET-ish ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #121624;
  color: #e4e9f2;
  margin: 0;
  padding: 40px 0;
  /* vertical gap for the card on desktop/tablet */
}

a {
  color: #7bbcd4;
  /* muted cyan */
  text-decoration: none;
}

a:hover {
  color: #9a8ad6;
  /* muted soft purple */
  text-decoration: underline;
}

/* ====== PAGE WRAPPER (CARD) ====== */
#page {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  background: #1b2238;
  border-left: 1px solid #2a3454;
  border-right: 1px solid #2a3454;
  min-height: auto;
  border-radius: 0;
  /* stays square */
  overflow: visible;
  /* allows square header corners */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ====== TOP AREA ====== */
#top {
  background: url("images/pluto.jpg") no-repeat center center;
  background-size: cover;
}

/* Header bar with logo */
#header {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

#header-logo {
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 46px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#header-logo span {
  font-size: 33px;
  font-weight: normal;
  display: block;
  color: #5fc7e6;
}

/* ====== MAIN MENU ====== */
#main-menu {
  height: 40px;
  background: #2a3454;
  border-top: 1px solid #1b2238;
  border-bottom: 3px solid #121624;
  display: flex;
  align-items: stretch;
  padding: 0 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: bold;
  color: #e4e9f2;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-item:last-child {
  border-right: none;
}

.menu-item a {
  color: #e4e9f2;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-item.active {
  background: rgba(154, 138, 214, 0.18);
}

/* ====== MAIN CONTENT ====== */
#content {
  padding: 20px 24px 40px 24px;
}

#content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 30px;
}

/* Make full-width if no aside */
#content-layout:not(:has(aside)) {
  grid-template-columns: 1fr;
}

h1 {
  font-size: 20px;
  color: #7bbcd4;
  border-bottom: 2px solid #2a3454;
  padding-bottom: 6px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

h2 {
  font-size: 16px;
  color: #7bbcd4;
  margin: 18px 0 8px 0;
}

p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

ul {
  margin-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
}

li {
  margin-bottom: 5px;
}

/* Highlight */
.highlight {
  font-style: italic;
  color: #9a8ad6;
}

/* Buttons */
.primary-button {
  display: inline-block;
  background: linear-gradient(#7bbcd4, #2a3454);
  color: #e4e9f2;
  padding: 8px 18px;
  border-radius: 0;
  /* removed curve */
  font-weight: bold;
  font-size: 13px;
  border: 1px solid #1b2238;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.primary-button:hover {
  filter: brightness(1.06);
}

/* Sidebar */
.sidebar-box {
  font-size: 13px;
  padding: 10px;
  border: 1px solid #2a3454;
  background: #18203a;
  border-radius: 0;
  /* removed */
  margin-bottom: 10px;
}

.sidebar-box strong {
  display: block;
  margin-bottom: 6px;
}

/* Products */
.product {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3454;
}

.product-title {
  font-weight: bold;
  font-size: 14px;
  color: #7bbcd4;
}

.product-tagline {
  font-size: 13px;
  color: #9a8ad6;
}

/* Contact form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 0;
  /* removed */
  border: 1px solid #2a3454;
  background: #131829;
  color: #e4e9f2;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: bold;
  color: #7bbcd4;
}

/* ====== FOOTER ====== */
#bottom-menu {
  border-top: 1px solid #2a3454;
  padding: 10px 24px;
  font-size: 12px;
  background: #18203a;
  text-align: center;
}

#bottom-menu a {
  color: #7bbcd4;
}

#bottom-menu span {
  color: #9a8ad6;
}

#footer {
  text-align: center;
  font-size: 11px;
  color: #9a8ad6;
  padding: 12px 0 20px 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 800px) {
  body {
    padding: 10px;
  }

  #page {
    width: 100%;
    border-left: none;
    border-right: none;
  }

  #content-layout {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  #content {
    padding: 16px 12px 24px 12px;
  }

  #header {
    height: 200px;
  }

  #header-logo {
    position: static;
    padding: 16px 20px;
    font-size: 32px;
  }

  #header-logo span {
    font-size: 20px;
  }

  #main-menu {
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
  }

  .menu-item {
    padding: 8px 10px;
  }
}

@media (max-width: 980px) {
  #page {
    width: 100%;
    border-left: none;
    border-right: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== BLOG LIST & POSTS ====== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  background: #18203a;
  border: 1px solid #2a3454;
  border-radius: 0;
  overflow: hidden;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* one single, minimized padding layer */
.blog-card a {
  display: block;
  padding: 4px 10px;   /* tight top & bottom */
}

/* title: remove all top/bottom spacing */
.blog-title {
  margin: 0;           /* no top or bottom space */
  padding: 0;
  font-size: 16px;
  color: #7bbcd4;
  line-height: 1.2;
}

/* metadata: no bottom gap */
.blog-meta {
  margin: 2px 0 2px 0;   /* very tight */
  padding: 0;
  font-size: 12px;
  color: #9a8ad6;
}

/* excerpt: remove bottom gap entirely */
.blog-excerpt {
  margin: 0;            /* no bottom space */
  padding: 0;
  font-size: 13px;
  color: #e4e9f2;
  line-height: 1.35;    /* slightly denser */
}

.blog-post h2,
.blog-post h3,
.blog-post h4 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #7bbcd4;
}

.blog-post p {
  margin-bottom: 10px;
}

.blog-post ul,
.blog-post ol {
  margin-left: 20px;
  margin-bottom: 10px;
}

.blog-post code {
  font-family: Consolas, "Courier New", monospace;
  background: #131829;
  padding: 2px 4px;
  border-radius: 0;
  /* removed */
}

.blog-post pre code {
  display: block;
  padding: 10px;
  overflow-x: auto;
  border-radius: 0;
  /* removed */
}

@media (max-width: 800px) {
  .blog-card a {
    flex-direction: row;
  }

  .blog-thumb-wrap {
    flex: 0 0 80px;
    min-height: 80px;
  }
}

/* ====== DOWNLOAD BOX (2000s-STYLE, DARK THEME) ====== */

.dl-box {
  border: 2px solid #2a3454;
  background: #161b30;
  padding: 14px;
  margin: 16px 0 20px 0;
  font-size: 0.95rem;
}

.dl-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: "Verdana", sans-serif;
}

.dl-title {
  font-weight: bold;
  font-size: 1rem;
  color: #e4e9f2;
}

.dl-date {
  font-size: 0.8rem;
  color: #9a8ad6;
  white-space: nowrap;
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dl-big {
  padding: 7px 14px;
  background: #0066cc;
  color: #e4e9f2;
  text-decoration: none;
  border: 1px solid #004c99;
  font-weight: bold;
  font-size: 13px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.dl-big:hover {
  background: #004c99;
}

.dl-mirror-link {
  padding: 7px 10px;
  border: 1px dashed #2a3454;
  font-size: 12px;
}

.dl-mirrors {
  font-size: 13px;
  margin-bottom: 10px;
}

.dl-mirrors ul {
  margin-top: 4px;
}

.dl-info {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
}

.dl-info th,
.dl-info td {
  padding: 4px 6px;
  border: 1px solid #2a3454;
}

.dl-info th {
  text-align: left;
  width: 130px;
  background: #202846;
  color: #9a8ad6;
}

.dl-info td {
  background: #151a2d;
}

.dl-extras {
  font-size: 13px;
}

.dl-steps {
  margin-left: 18px;
  margin-bottom: 10px;
}

.dl-steps li {
  margin-bottom: 4px;
}

.dl-nag {
  background: #2a210f;
  border: 1px solid #b88a3c;
  padding: 6px 8px;
  margin: 8px 0;
  color: #f0d18a;
}

.dl-ads {
  margin-top: 8px;
}

.dl-badge {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 4px;
  margin-bottom: 4px;
  border: 1px solid #2a3454;
  background: #000000;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.dl-footnote {
  font-size: 11px;
  color: #9a8ad6;
  margin-top: 4px;
}

.dl-box code {
  font-family: Consolas, "Courier New", monospace;
  background: #131829;
  padding: 1px 3px;
}

/* mobile tweaks for download box */
@media (max-width: 600px) {
  .dl-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dl-date {
    white-space: normal;
  }

  .dl-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-big,
  .dl-mirror-link {
    text-align: center;
  }
}

/* ====== SOFTWARE DOWNLOAD & RELEASE CARDS ====== */

/* description block under the mod title */
.download-description {
  font-size: 14px;
  margin-bottom: 14px;
}

/* list of releases */
.release-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* each card already has .sidebar-box for border/background */
.release-card {
  /* layout-only tweaks go here if needed */
}

.release-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.release-version {
  font-weight: bold;
  color: #7bbcd4;
}

.release-date {
  font-size: 11px;
  color: #9a8ad6;
}

.release-desc {
  margin: 4px 0 8px 0;
  font-size: 13px;
}

/* inline, no-wrap meta line: minecraft: 1.21.4 | loader: fabric | ... */
.release-meta {
  margin-bottom: 8px;
  font-size: 12px;
  color: #c3c8e0;
  display: block;      /* normal block layout */
}

.release-meta span {
  display: block;      /* each item on its own line */
  margin-bottom: 2px;  /* small spacing between lines */
}

.release-meta span:last-child::after {
  content: "";
}

.release-meta span strong {
  color: #e4e9f2;
}
.release-download {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 22px;

  /* OBNOXIOUS ROUNDNESS */
  border-radius: 999px;

  /* Corporate 2000s gradient */
  background: linear-gradient(
    to bottom,
    #7bbcd4 0%,
    #5fc7e6 40%,
    #3a6fa0 70%,
    #2a3454 100%
  );

  color: #ffffff;
  text-decoration: none;

  /* chunky border */
  border: 2px solid #121624;

  /* glossy highlight */
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4),
    0 0 6px rgba(123, 188, 212, 0.4);

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);

  transition: all 0.15s ease;
}

.release-download:hover {
  background: linear-gradient(
    to bottom,
    #9ed9ef 0%,
    #7bbcd4 40%,
    #4f7bb0 70%,
    #2a3454 100%
  );

  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(123, 188, 212, 0.6);
}

.release-download:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.6),
    0 0 4px rgba(123, 188, 212, 0.3);
}

/* ====== GUESTBOOK ====== */
.signbook-form {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signbook-form .signbook-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.signbook-form label {
  font-size: 12px;
  font-weight: bold;
  color: #7bbcd4;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.signbook-form input,
.signbook-form textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #3a4a6a;
  background: #0f1526;
  color: #e4e9f2;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.signbook-form input:focus,
.signbook-form textarea:focus {
  outline: none;
  border-color: #7bbcd4;
  background: #111827;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), 0 0 0 2px rgba(123,188,212,0.15);
}

.signbook-form input::placeholder,
.signbook-form textarea::placeholder {
  color: #4a5570;
}

.signbook-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 7px 22px;

  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    #7bbcd4 0%,
    #5fc7e6 40%,
    #3a6fa0 70%,
    #2a3454 100%
  );

  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  border: 2px solid #121624;
  cursor: pointer;

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.4),
    inset 0 -3px 6px rgba(0,0,0,0.4),
    0 0 6px rgba(123,188,212,0.4);

  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: all 0.15s ease;
}

.signbook-submit:hover {
  background: linear-gradient(
    to bottom,
    #9ed9ef 0%,
    #7bbcd4 40%,
    #4f7bb0 70%,
    #2a3454 100%
  );
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.5),
    0 0 10px rgba(123,188,212,0.6);
}

.signbook-submit:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,0.6),
    0 0 4px rgba(123,188,212,0.3);
}

.signbook-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.signbook-entry {
  background: #18203a;
  border: 1px solid #2a3454;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.signbook-name {
  font-size: 13px;
  font-weight: bold;
  color: #7bbcd4;
  margin-right: 8px;
}

.signbook-date {
  font-size: 11px;
  color: #9a8ad6;
}

.signbook-msg {
  font-size: 13px;
  margin: 4px 0 0 0;
  line-height: 1.5;
}

.signbook-empty {
  font-size: 13px;
  color: #9a8ad6;
  font-style: italic;
}