﻿html {
    min-height: 100vh;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
    background: radial-gradient(circle at top, rgba(48, 245, 124, 0.18), transparent 22%),
        linear-gradient(180deg, #04080b 0%, #070a0f 42%, #0a0f16 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    width: 100%;
    background: transparent;
    color: #eef2f1;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("images/top.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    opacity: 0.22;
    pointer-events: none;
    z-index: -1;
}

a,
button {
    font: inherit;
}

.page-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    box-sizing: border-box;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 6px 18px;
    margin-bottom: 24px;
    background: rgba(12, 18, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.topnav a {
    color: #e9f7ee;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.22s ease, transform 0.22s ease;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.eyebrow {
    margin: 0 0 18px;
    color: #8afca0;
    letter-spacing: 0.24em;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.highlight-card p {
    margin: 24px 0 0;
    font-size: 1.08rem;
    line-height: 1.85;
    color: rgba(239, 242, 241, 0.9);
}

.highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 48px;
}

.topbar-status {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.topbar-status .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1fd65f 0%, #10a74f 100%);
    color: white;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(8, 76, 35, 0.22);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-loading {
    background: rgba(255, 255, 255, 0.08);
    color: #f3f7f2;
}

.status-online {
    background: rgba(47, 206, 120, 0.18);
    color: #a4f8b4;
}

.status-offline {
    background: rgba(255, 83, 94, 0.18);
    color: #ffb3b8;
}

.server-status-info {
    display: grid;
    gap: 10px;
    color: rgba(226, 233, 230, 0.95);
    font-size: 1rem;
}

.server-player-list {
    margin-top: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbe9e3;
    font-size: 0.95rem;
    line-height: 1.7;
}

.server-player-list span {
    display: inline-block;
    margin-right: 8px;
}

.highlight-card {
    padding: 28px;
    background: rgba(13, 22, 31, 0.92);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
    cursor: pointer;
}
  
.highlight-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.14);
}
  
.highlight-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    color: #f6fcf7;
}

.versions {
    padding: 36px 30px;
    background: rgba(12, 18, 26, 0.88);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.section-header.section-subheader {
    margin-top: 40px;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 2.2vw, 3rem);
    line-height: 1.05;
}

.version-list {
    display: grid;
    gap: 20px;
}

.version-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: linear-gradient(180deg, rgba(14, 24, 33, 0.95), rgba(10, 15, 21, 0.98));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
    cursor: pointer;
}
  
.version-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.14);
}
  
.version-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 26px 28px;
    background: rgba(20, 36, 45, 0.96);
}

.version-button span {
    display: block;
}

.version-button span:first-child {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f5faf5;
}

.download-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 24px 28px;
    background: rgba(10, 13, 18, 0.95);
}

.version-changelog {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

details.version-changelog {
    padding: 0 24px 24px;
}

details.version-changelog summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0 10px;
    color: #b6feca;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
}

details.version-changelog summary::-webkit-details-marker {
    display: none;
}

details.version-changelog summary::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

details.version-changelog[open] summary::after {
    transform: translateY(-50%) rotate(-180deg);
}

.changelog-content {
    padding-bottom: 10px;
}

.changelog-content p {
    margin: 0 0 12px;
    color: #dce9e3;
    line-height: 1.75;
}

.changelog-content p:last-child {
    margin-bottom: 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #1fd65f 0%, #11b160 50%, #0c8d4d 100%);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(15, 95, 42, 0.22);
    will-change: transform, box-shadow;
}
 
.download-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(15, 95, 42, 0.3);
}

@media (max-width: 760px) {
    .page-shell {
        width: 100%;
        padding: 24px 16px 48px;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    .topnav {
        width: 100%;
        justify-content: space-between;
    }
    .highlights {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Showcase gallery styles */
.gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gallery::-webkit-scrollbar {
   display: none;
}
.gallery-item {
    min-width: 260px;
    height: 160px;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: "Click to expand";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: rgba(255,255,255,0.8);
    padding: 24px 12px 8px;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}
.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255,255,255,0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery wrapper and arrow controls */
.gallery-wrapper {
    position: relative;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    will-change: transform, box-shadow;
}
.gallery-button:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(0,0,0,0.65);
    box-shadow: 0 10px 24px rgba(0,0,0,0.38);
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
 
.gallery-button.disabled {
    opacity: 0.35;
    pointer-events: none;
}
 
.gallery-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.24s ease, backdrop-filter 0.24s ease;
}

.gallery-overlay.open {
    opacity: 1;
    visibility: visible;
}

.gallery-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.gallery-overlay img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.8);
    animation: imageExpand 0.24s ease;
}

@keyframes imageExpand {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.gallery-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}
.gallery-overlay-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.gallery-overlay-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    z-index: 10001;
}

.gallery-overlay-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
}

.gallery-overlay-prev {
    left: 20px;
}

.gallery-overlay-next {
    right: 20px;
}
.gallery-overlay-caption {
    margin-top: 20px;
    max-width: 90vw;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    text-align: center;
    background: rgba(31, 214, 95, 0.1);
    border: 1px solid rgba(31, 214, 95, 0.2);
    border-radius: 12px;
    line-height: 1.6;
    animation: captionFade 0.24s ease 0.1s both;
}

@keyframes captionFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .gallery-item { min-width: 60%; }
}
@media (max-width: 520px) {
    .gallery-item { min-width: 80%; }
}

.team-wrapper {
    position: relative;
}

.team-grid {
    display: flex !important;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 18px;
    margin-top: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.team-grid::-webkit-scrollbar {
    display: none;
}

.team-member {
    min-width: 160px;
    flex: 0 0 auto;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
    cursor: pointer;
}
  
.team-member:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
}
   
.team-member img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto 8px;
}

.team-member .team-name {
    font-weight: 700;
    color: #eef2f1;
}

.team-member .team-role {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #cfe8df;
}
