/* Modern Minecraft Theme v3 */
@font-face {
    font-family: 'Minecraft';
    src: url('https://fonts.cdnfonts.com/s/15573/Minecraft.ttf');
}

:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #55ff55; /* Minecraft Green */
    --secondary-color: #33aaff; /* Diamond Blue */
    --accent-color: #ffaa00; /* Gold */
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --font-body: 'Segoe UI', 'Roboto', sans-serif;
    --font-header: 'Minecraft', sans-serif;
    --border-radius: 4px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: normal;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

h1 { font-size: 2.5rem; text-transform: uppercase; color: var(--primary-color); }
h2 { font-size: 2rem; color: #fff; border-bottom: 2px solid #333; padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.5rem; color: var(--secondary-color); margin-top: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header & Nav */
header {
    background-color: #1a1a1a;
    border-bottom: 2px solid #333;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    cursor: pointer;
    text-shadow: none;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: #ddd;
    font-family: var(--font-header);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('Background.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-bottom: 4px solid var(--surface-color);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 #000;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 800px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0 #000;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 20px;
    flex: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Server Cards */
.server-card {
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

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

.server-card.modded { border-color: var(--secondary-color); }
.server-card h3 { margin-bottom: 0.5rem; }
.server-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.server-card li { margin-bottom: 0.8rem; border-bottom: 1px solid #333; padding-bottom: 0.5rem; }
.server-card li:last-child { border-bottom: none; }

/* Rules List */
.rules-list {
    columns: 2;
    column-gap: 3rem;
}
.rules-list li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: var(--text-muted);
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: bold;
    text-shadow: none;
}

.footer-section a { color: var(--text-muted); }
.footer-section a:hover { color: var(--primary-color); }

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    font-family: var(--font-header);
    padding: 0.8rem 1.5rem;
    border: 2px solid #555;
    border-radius: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 4px 0 #111;
}

.btn:hover {
    background-color: #444;
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #111;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #111;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border-color: #00aa00;
    box-shadow: 0 4px 0 #005500;
}
.btn-primary:hover {
    background-color: #77ff77;
    border-color: #00cc00;
    box-shadow: 0 6px 0 #005500;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; }
    .menu-toggle { display: block; position: absolute; right: 20px; top: 1.2rem; }
    nav { display: none; flex-direction: column; width: 100%; margin-top: 1rem; }
    nav.active { display: flex; }
    nav a { display: block; width: 100%; }

    .grid-2 { grid-template-columns: 1fr; }
    .rules-list { columns: 1; }
    .hero h1 { font-size: 2.5rem; }
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
