/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
}

/* HERO SECTION */
.hero {
    height: 60vh;
    background: url('https://files.facepunch.com/paddy/20240104/header.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO SETTINGS */
.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 10px rgba(0,0,0,0.8));
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    max-width: 800px;
}

/* BUTTONS */
.btn {
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-block;
}

.discord-btn {
    background-color: #5865F2;
    color: white;
}
.discord-btn:hover { background-color: #4752c4; }

/* CONTAINER & SECTIONS */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* SERVER GRID */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.server-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: #ce422b;
}

.card-header {
    background: #252525;
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 { color: #fff; font-size: 1.3rem; }

/* BADGES */
.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
.badge.modded { background: #ce422b; color: #fff; }
.badge.community { background: #4caf50; color: #fff; }
.badge.pvp { background: #d32f2f; color: white; }
.badge.pve { background: #2e7d32; color: white; }

.card-body { padding: 20px; flex-grow: 1; }

.server-desc {
    font-style: italic;
    color: #888;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-body ul { list-style: none; margin-bottom: 20px; }
.card-body li {
    margin-bottom: 10px;
    color: #bbb;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
    font-size: 0.95rem;
}
.card-body li i { width: 25px; color: #ce422b; }

.ip-text {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    font-family: monospace;
    user-select: all;
    background: #111;
    padding: 5px;
    border-radius: 4px;
}

/* BUTTON GROUP (CONNECT + STATS) */
.btn-group {
    display: flex;
    gap: 10px;
}

.connect-btn {
    flex: 2;
    background-color: #ce422b;
    color: white;
    text-align: center;
}
.connect-btn:hover { background-color: #a3321f; }

.stats-btn {
    flex: 1;
    background-color: #333;
    color: white;
    text-align: center;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.stats-btn:hover { background-color: #444; }

/* RULES */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.rule-box {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
}

.rule-box i {
    font-size: 3rem;
    color: #ce422b;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    background: #0d0d0d;
    margin-top: 50px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-logo { max-width: 80%; }
    .hero p { padding: 0 20px; }
}
