/* ── Base / Shared ── */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.page-home,
body.page-404,
body.page-gamemodes,
body.page-application {
    background-image: url('Assets/Images/Frontpagebackground.png');
}

body.page-status {
    background-image: url('Assets/Images/background.png');
    background-attachment: fixed;
}

/* ── Navigation ── */

#buttons-c {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbuttons {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 10px 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 255, 255, 0.2) inset;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.navbuttons:hover {
    background-color: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 25px rgba(255, 255, 255, 0.15) inset;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* ── Footer ── */

.Footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 5px;
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ── Home Page ── */

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 40px;
}

.hero-content {
    text-align: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-subtitle {
    color: white;
    font-size: 20px;
    margin: 16px 0 0;
    text-shadow: 2px 2px 5px black;
    opacity: 0.9;
}

/* ── Features ── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.feature-card {
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-title {
    color: white;
    font-size: 18px;
    margin: 0 0 8px;
    text-shadow: 2px 2px 5px black;
}

.feature-desc {
    color: white;
    font-size: 14px;
    margin: 0;
    text-shadow: 1px 1px 3px black;
    opacity: 0.85;
    line-height: 1.5;
}

/* ── Journey Card ── */

.journeyawaits {
    text-align: center;
    padding: 32px 28px;
    margin: 0 auto 60px;
    max-width: 520px;
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.journeyawaits h1 {
    color: white;
    font-size: 26px;
    margin: 0 0 8px;
    text-shadow: 2px 2px 5px black;
}

.journeyawaits > p {
    color: white;
    font-size: 15px;
    margin: 0 0 20px;
    text-shadow: 1px 1px 3px black;
    opacity: 0.85;
}

.ip-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ip-address {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    text-shadow: 1px 1px 3px black;
    letter-spacing: 1px;
}

.ip-copy-btn {
    width: auto !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
}

.version-info {
    color: white;
    font-size: 13px;
    margin: 0;
    text-shadow: 1px 1px 3px black;
    opacity: 0.7;
}

/* ── 404 Page ── */

.notfound-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.notfound-container h1 {
    color: white;
    text-shadow: 2px 2px 5px black;
}

.notfound-container p {
    color: white;
    text-shadow: 2px 2px 5px black;
}

/* ── Staff Application Page ── */

.form-container {
    width: 650px;
    height: 2300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 50px auto;
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 2px 2px 5px black;
}

/* ── Status Page ── */

.status-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
}

.status-header {
    text-align: center;
    color: white;
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 5px black;
    border-radius: 12px;
    padding: 20px 40px;
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
}

.status-header h1 {
    font-size: 36px;
    margin: 0;
}

.status-subtitle {
    font-size: 18px;
    margin: 8px 0 0;
    font-weight: bold;
    text-shadow: 2px 2px 5px black;
}

.status-subtitle.all-ok {
    color: #4ade80;
}

.status-subtitle.some-down {
    color: #f87171;
}

.server-list {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-row {
    background: rgba(188, 245, 210, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.server-row-main {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    cursor: pointer;
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 5px black;
}

.server-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.server-status-badge.online {
    color: #4ade80;
    text-shadow: 2px 2px 5px black;
}

.server-status-badge.offline {
    color: #f87171;
    text-shadow: 2px 2px 5px black;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.status-dot.offline {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
}

.status-dot.checking {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.expand-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.expand-btn:hover {
    background: rgba(202, 202, 202, 0.678);
    color: black;
}

.server-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid transparent;
}

.server-details.open {
    max-height: 500px;
    padding: 16px 20px;
    border-top-color: rgba(255, 255, 255, 0.1);
    text-shadow: 2px 2px 5px black;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.detail-icon {
    grid-column: 1 / -1;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    image-rendering: pixelated;
    margin-bottom: 4px;
}

.detail-item {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 2px 2px 5px black;
}

.detail-value {
    font-size: 15px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 5px black;
}

.offline-msg {
    grid-column: 1 / -1;
    color: #f87171;
    font-style: italic;
    text-align: center;
    margin: 8px 0;
    text-shadow: 2px 2px 5px black;
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(188, 245, 210, 0.3);
    text-shadow: 2px 2px 5px black;
    backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.refresh-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: rgba(49, 102, 67, 0.8);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: rgba(49, 102, 67, 1);
}
/* ── Gamemodes Page ── */

.gamemodes-header {
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px black;
  padding: 30px 20px 10px;
}

.gamemodes-header h1 {
  font-size: 36px;
  margin: 0;
}

.gamemodes-header p {
  font-size: 16px;
  margin: 8px 0 0;
  opacity: 0.85;
}

.gamemode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  justify-items: center;
  align-items: start;
  justify-content: center;
  margin: 0 auto;
}

.gamemodecontainer {
  width: 290px;
  box-sizing: border-box;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 0 15px rgba(255,255,255,0.2) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gamemodecontainer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 0 15px rgba(255,255,255,0.2) inset;
  cursor: pointer;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
}

.gamemode-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 5px;
}

.gamemode-tag {
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gamemode-tag.zyralis {
  background: rgba(49, 102, 67, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 1px 1px 2px black;
}

.gamemode-tag.partnered {
  background: rgba(216, 199, 48, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 1px 1px 2px black;
}

/* ── Gamemode Overlay ── */

.gamemode-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.gamemode-overlay.open {
  display: flex;
}

.overlay-content {
  background: rgba(188, 245, 210, 0.3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  padding: 30px;
  position: relative;
  margin: auto;
}

.overlay-back {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-bottom: 20px;
}

.overlay-back:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  transform: translateY(-2px);
}

.overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.overlay-title {
  color: white;
  text-shadow: 2px 2px 5px black;
  font-size: 28px;
  margin: 0;
}

.overlay-tag {
  font-size: 13px;
  padding: 4px 12px;
}

.overlay-desc {
  color: white;
  text-shadow: 2px 2px 5px black;
  font-size: 16px;
  margin: 0 0 20px;
  opacity: 0.9;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.screenshot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.changelog-section h3 {
  color: white;
  text-shadow: 2px 2px 5px black;
  font-size: 20px;
  margin: 0 0 12px;
}

.changelog-entry {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: white;
  text-shadow: 1px 1px 3px black;
}

.changelog-date {
  font-size: 13px;
  opacity: 0.7;
}

.changelog-body {
  color: white;
  text-shadow: 1px 1px 3px black;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.loading-text,
.empty-text,
.error-text {
  color: white;
  text-shadow: 1px 1px 3px black;
  font-size: 14px;
}

.gamemode-title {
  color: white;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  text-shadow: 1px 1px 3px black;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}