/* --- Global Variables --- */
:root {
    --color-bg-dark: #121212;
    --color-bg-panel: #1e1e1e;
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-accent: #2ecc71;
    --color-accent-hover: #27ae60;
    
    --sidebar-width: 260px;
    --transition-speed: 0.3s;
}

/* --- Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Typography --- */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color var(--transition-speed);
}

.btn:hover {
    background-color: var(--color-accent-hover);
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--color-bg-panel);
    border-right: 1px solid #333;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar.is-open {
    transform: translateX(0);
}

.sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.sidebar__close {
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Visible on mobile */
}

.sidebar__menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar__link:hover, .sidebar__link.active {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--color-accent);
}

/* --- Main Content Layout --- */
.content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed) ease-in-out;
}

.header {
    background-color: var(--color-bg-panel);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #333;
}

.header__toggle {
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.header__title {
    margin: 0;
    font-size: 1.25rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    background-color: var(--color-bg-panel);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.server-info {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: var(--color-bg-dark);
    padding: 1rem;
    border-radius: 4px;
}

.server-info__ip {
    color: var(--color-accent);
    font-family: monospace;
    font-size: 1.1rem;
}

/* --- Features Grid --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--color-bg-panel);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: inline-block;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--color-bg-panel);
    border-top: 1px solid #333;
    color: var(--color-text-muted);
}

/* --- Desktop Media Query --- */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* Always visible */
    }
    
    .sidebar__close, .header__toggle {
        display: none; /* Hide toggle buttons */
    }

    .content-wrapper {
        margin-left: var(--sidebar-width);
    }
}

/* --- Badges --- */
.hero__badges {
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(46, 204, 113, 0.15); /* Transparent green */
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Map Page Styles --- */
.hero--compact {
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.map-section {
    width: 100%;
}

.map-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Takes up 70% of the viewport height */
    min-height: 500px;
    background-color: var(--color-bg-panel);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2; /* Sits above the placeholder */
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-text-muted);
    z-index: 1;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.map-placeholder span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}