/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    color: #ccc;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* let it grow with content */
    overflow-y: visible; /* let html handle scrolling */
}

/* ===== Navigation ===== */
nav {
    background-color: #111;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #666;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #aaa;
}

nav a:hover::after {
    width: 100%;
}

/* ===== Main (Landing Page Style) ===== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: url('minecraft-bg.jpg') center/cover no-repeat;
    text-align: center;
}

h1, h2 {
    color: #fff;
    margin-bottom: 15px;
}

p {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    background-color: #000;
    border-top: 1px solid #222;
    font-size: 14px;
    color: #777;
    flex-shrink: 0;
}

/* ===== Discord Button ===== */
.discord-button {
    display: inline-block;
    background-color: #5865F2;
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.4);
}

.discord-button:hover {
    background-color: #4752c4;
    box-shadow: 0 6px 12px rgba(71, 82, 196, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav a {
        margin: 10px 0;
    }
    main {
        padding: 20px;
    }
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-left,
    .header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    header .site-logo {
        position: relative;
        left: auto;
        transform: none;
        margin: 10px 0;
    }
}

/* Right side container */
.header-right .server-ip {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-right .server-ip:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== Updates Section ===== */
.update-section {
    display: flex;
    gap: 20px;
    margin: 40px auto;
    max-width: 1100px;
}

.update-main {
    flex: 2;
    background-color: #111;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ddd;
}

.update-main h3 {
    margin-bottom: 5px;
}

.update-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.update-image img {
    width: 60%; /* smaller images */
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 6px;
}

.update-main h1 {
    font-size: 2rem;
    color: #fff;
}

.update-main h1 span {
    color: orange;
}

.highlight {
    color: orange;
    font-weight: bold;
}

.highlight-green {
    color: #2ecc71;
    font-weight: bold;
}

/* Sidebar */
.update-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-box {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.cta-box img {
    width: 100%;
    display: block;
}

.cta-content {
    padding: 15px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to bottom, #3a3a38, #1f1f1f); /* dark gradient */
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(to bottom, #555555, #2a2a2a); /* lighter gradient */
}

/* Social Media */
.social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    justify-content: center;
}

.social-media img {
    width: 36px;
    height: 36px;
}

/* ===== Scrollbar Styling ===== */
html {
    height: 100%;
    overflow-y: auto; /* enable vertical scroll */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

html::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

html:hover::-webkit-scrollbar-thumb {
    background-color: rgba(50, 50, 50, 0.2);
}

html:hover {
    scrollbar-color: rgba(50, 50, 50, 0.2) transparent;
}

/* ===== Update Details ===== */
.update-details {
    background-color: #111;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    color: #ccc;
}

.update-details h2, 
.update-details h3 {
    color: #fff;
    margin-bottom: 10px;
}

.update-details ul {
    padding-left: 20px;
}

.update-details li {
    margin-bottom: 8px;
}