:root {
    --bg-overlay: rgba(10, 10, 10, 0.85);
    --stone-panel: rgba(30, 30, 35, 0.9);
    --text-gold: #e6c673;
    --text-light: #e0e0e0;
    --accent-green: #5e8c48;
    --accent-cyan: #00e5ff;
    --accent-warm: #ffaa00;

    --font-head: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    --header-offset: 120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: #111;
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: url('background-stones.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 3px solid var(--accent-green);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo {
    max-height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(230, 198, 115, 0.3));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

nav ul { display: flex; gap: 25px; }
nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
nav a:hover {
    color: var(--text-gold);
    border-bottom: 2px solid var(--accent-cyan);
}

.player-count {
    background: rgba(40, 40, 40, 0.8);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
    font-family: var(--font-body);
    border: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 0 10px #000;
    justify-content: center;
    flex-shrink: 0;
}

.online-dot {
    height: 10px; width: 10px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

section { scroll-margin-top: var(--header-offset); }

.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    scroll-margin-top: 0;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--text-gold);
    text-shadow: 3px 3px 0 #000, 0 0 25px rgba(230, 198, 115, 0.5);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin-bottom: 2rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 5px #000;
    font-weight: 600;
}

.server-ip-box {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid var(--text-gold);
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(230, 198, 115, 0.2);
}
.server-ip-box:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(230, 198, 115, 0.4);
    border-color: var(--accent-cyan);
}
.ip-label { font-size: 0.9rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-right: 5px; }
.ip-address { font-family: var(--font-head); font-size: 1.8rem; color: #fff; font-weight: 900; letter-spacing: 2px; }
.copy-icon { color: var(--accent-green); font-size: 1.2rem; }

.copy-tooltip {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    background: var(--accent-cyan); color: #000; padding: 5px 10px;
    border-radius: 4px; font-weight: bold; font-size: 0.9rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.copy-tooltip.show { opacity: 1; }

.cta-btn {
    background: linear-gradient(to bottom, #3a3a3a, #222);
    color: var(--text-gold);
    padding: 15px 40px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.1rem;
    border: 2px solid var(--accent-green);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.cta-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto 6rem auto;
    padding: 3rem;
    background-color: var(--stone-panel);
    border-radius: 8px;
    border: 3px solid #2a2a2a;
    border-top-color: var(--accent-green);
    border-bottom-color: var(--accent-warm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

h2 {
    font-family: var(--font-head);
    color: var(--text-gold);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000;
    position: relative;
}
h2::after {
    content: ''; display: block; width: 100px; height: 4px;
    background: linear-gradient(to right, var(--accent-green), var(--accent-warm));
    margin: 15px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.feature-card {
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid #333;
    padding: 2.5rem 2rem;
    border-radius: 6px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

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

.feature-card:hover[id=plugins] {
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.feature-card h3 {
    color: var(--text-gold);
    margin-bottom: 1rem;
    font-family: var(--font-head);
    font-size: 1.5rem;
    line-height: 1.3;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    flex-grow: 1;
    font-size: 1rem;
    color: #ccc;
}

.subtle-card-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 198, 115, 0.3);
    transition: border-color 0.3s;
    display: inline-block;
}

.subtle-card-link:hover {
    border-bottom-color: var(--text-gold);
}

.link-arrow {
    font-size: 0.8em;
    position: relative;
    top: -2px;
    margin-left: 4px;
}

.muted-subtext {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-embed {
    width: 100%; height: 550px; background: #000;
    border: 3px solid #333; border-radius: 6px;
}

.map-offline-msg {
    width: 100%; height: 550px; background: #1a1a1a;
    border: 3px solid #333; border-radius: 6px;
    display: flex; justify-content: center; align-items: center;
    font-family: var(--font-head); color: var(--text-gold);
    text-transform: uppercase; font-size: 1.5rem;
}

.discord-section {
    display: flex; flex-wrap: wrap; gap: 3rem; align-items: center;
}
.discord-info { flex: 1; min-width: 300px; }
.discord-info h3 { font-family: var(--font-head); font-size: 2rem; color: var(--text-gold); margin-bottom: 1rem;}
.discord-widget {
    flex: 1; min-width: 300px; border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); border: 2px solid #5865F2;
}

.vote-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.vote-btn {
    display: block; background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
    color: var(--text-gold); padding: 15px; text-align: center;
    font-weight: bold; border-radius: 4px; border: 2px solid #444;
    font-family: var(--font-head); text-transform: uppercase; transition: 0.3s;
}
.vote-btn:hover {
    border-color: var(--accent-warm); background: linear-gradient(to bottom, #5a5a5a, #3a3a3a);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

#cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(20, 20, 20, 0.98); border-top: 3px solid var(--accent-green);
    color: #fff; padding: 20px; text-align: center; z-index: 9999;
    display: none; box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
}
#cookie-banner button {
    background: var(--accent-green); border: none; padding: 10px 25px;
    font-weight: bold; cursor: pointer; margin-left: 20px;
    border-radius: 4px; color: #fff; font-family: var(--font-head);
}
#cookie-banner button:hover { background: var(--accent-cyan); color: #000;}

footer {
    background: rgba(0,0,0,0.9); text-align: center; padding: 3rem;
    margin-top: 2rem; border-top: 3px solid #222; color: #777;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 1rem;
        height: auto;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
    }
    .hero h1 { font-size: 2.5rem; }
    .server-ip-box { flex-direction: column; gap: 5px; padding: 10px 20px; }
    .ip-label { display: none; }

    nav {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }

    .container { margin-bottom: 3rem; padding: 1.5rem; width: 95%;}
    :root { --header-offset: 160px; }

    .logo-container {
        order: 1;
        margin: 0;
    }

    .header-logo {
        max-height: 45px;
    }

    .player-count {
        position: absolute;
        right: 1rem;
        top: 12px;
        order: 2;
        width: auto;
        padding: 6px 12px;
        gap: 8px;
        border-color: var(--accent-cyan);
    }

    .player-count-label {
        display: none !important;
    }
}