:root {
    --bg-color: #15243a;
    --text-color: #a5b9c6;
    --heading-color: #edb548;
    --accent-color: #edb548;
    --accent-hover: #ffcf70;
    --overlay-color: rgba(21, 36, 58, 0.85);
    --nav-height: 80px;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Image Handling */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(21, 36, 58, 0.7), var(--bg-color));
    z-index: -1;
}

/* Header & Nav */
.main-header {
    height: var(--nav-height);
    width: 100%;
    /* glassmorphism effect */
    background: rgba(21, 36, 58, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(165, 185, 198, 0.1);
    position: fixed;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--heading-color);
    text-shadow: 0 0 10px rgba(237, 181, 72, 0.3);
}

.nav-link-disabled {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* Language Picker */
.lang-picker select {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    border: 1px solid rgba(165, 185, 198, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-picker select:hover {
    border-color: var(--accent-color);
    color: var(--heading-color);
}

.lang-picker select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Main Content & Hero */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.hero-section {
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    max-width: 1000px;
}


.welcome-heading {
    color: var(--heading-color);
    font-size: 3rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(237, 181, 72, 0.4);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.welcome-sub-heading {
    color: var(--heading-color);
    font-size: 2rem;
    text-transform: uppercase;
    text-shadow: inner 0 0 15px rgba(237, 181, 72, 0.4);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
    margin-bottom: 2rem;
}

.hero-intro {
    flex: 1.5;
    text-align: left;
    background: rgba(21, 36, 58, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(165, 185, 198, 0.2);
    backdrop-filter: blur(5px);
}

.hero-intro h3 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-intro p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.main-logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    animation: float 6s ease-in-out infinite;
}

.main-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* IP Box Styling */
/* Server Info Row & Player Count */
.server-info-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    z-index: 10;
    flex-wrap: wrap;
}

.player-count-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 36, 58, 0.8);
    border: 2px solid var(--heading-color);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 0 20px rgba(237, 181, 72, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px;
}

.player-count-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(237, 181, 72, 0.25);
}

.player-count-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    font-family: monospace;
    letter-spacing: 1px;
}

.player-icon {
    margin-right: 0.8rem;
    color: var(--text-color);
}

.ip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.ip-box {
    display: flex;
    align-items: center;
    background: rgba(21, 36, 58, 0.8);
    border: 2px solid var(--heading-color);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 0 20px rgba(237, 181, 72, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ip-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(237, 181, 72, 0.25);
}

.ip-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-right: 1rem;
    letter-spacing: 1px;
    font-family: monospace;
    /* Gives it a tech/server feel */
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(237, 181, 72, 0.2);
    color: var(--heading-color);
}

.copy-feedback {
    color: var(--accent-hover);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 1.2rem;
}

.copy-feedback.show {
    opacity: 1;
}

/* News Section */
.news-section {
    width: 100%;
    max-width: 800px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-post {
    background: rgba(21, 36, 58, 0.6);
    border: 1px solid rgba(165, 185, 198, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flow-root;
    /* Ensures float container */
}

.news-post:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(165, 185, 198, 0.1);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-header h3 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin: 0;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-family: monospace;
}

.news-post p {
    font-size: 1rem;
    color: #cadbe6;
    text-align: justify;
}

/* Secondary Logo Positioning */
.secondary-image-container {
    position: absolute;
    right: -150px;
    bottom: 50%;
    transform: translateY(50%);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

.secondary-image-container:hover {
    opacity: 1;
    transform: translateY(50%) scale(1.05);
}

.secondary-logo {
    max-width: 200px;
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-size: 0.9rem;
    background: rgba(21, 36, 58, 0.9);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .secondary-image-container {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: 3rem;
    }

    .secondary-image-container:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .main-logo {
        max-width: 400px;
    }

    .ip-text {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .hero-section {
        padding: 1rem;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    /* Changed from none to flex via JS, but we need opacity transition handling */
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
    /* Prevent zoom-out cursor on image itself if desired, or keep to close */
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.news-image-container {
    margin-top: 0;
    margin-bottom: 0.5rem;
    margin-left: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(165, 185, 198, 0.2);
    cursor: zoom-in;
    transition: border-color 0.3s ease;
    width: 250px;
    float: right;
}

.news-image-container:hover {
    border-color: var(--accent-color);
}

.news-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    /* Limit height for uniform look */
    transition: transform 0.3s ease;
}

.news-image-container:hover .news-image {
    transform: scale(1.03);
}