/* ====================== */
/*        BASE CSS        */
/* Lunerra Hytale Server  */
/* ====================== */

/* CSS Variables */
:root {
    --primary-color: #4a90d9;
    --primary-hover: #5fa3eb;
    --bg-dark: #1a1d21;
    --bg-card: #24272b;
    --bg-footer: #1e2125;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gradient: linear-gradient(135deg, #4a90d9 0%, #7c5ce7 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', Helvetica, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #555;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ====================== */
/*        BUTTONS         */
/* ====================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn i {
    margin-right: 8px;
}

.section-title {
    display: inline-block;
    padding: 12px 32px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ====================== */
/*        HEADER          */
/* ====================== */

header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
        url("../img/background.png") no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    border-bottom: 3px solid var(--primary-color);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 40px;
}

/* Logo */
.logo {
    transition: transform var(--transition);
}

.logo img {
    width: 180px;
    margin-top: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

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

/* Navigation */
.nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
    gap: 10px;
}

.nav li {
    font-weight: 600;
}

.nav a {
    color: white;
    text-decoration: none;
}

/* ====================== */
/*         HERO           */
/* ====================== */

.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

.hero .tagline {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero .server-ip {
    margin-top: 30px;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.hero .server-ip:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.5);
}

.hero .server-ip span {
    color: var(--primary-color);
    transition: var(--transition);
}

.hero .server-ip:hover span {
    color: white;
}

.hero .server-ip.copied {
    background: #2ecc71;
    border-color: #2ecc71;
}

.hero .server-ip.copied::after {
    content: " ✓ Kopiert!";
    color: white;
}

/* ====================== */
/*        FOOTER          */
/* ====================== */

footer {
    background: var(--bg-footer);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    margin-top: auto;
}

footer img {
    width: 140px;
    opacity: 0.9;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

footer a:hover {
    color: var(--primary-color);
}

footer p {
    color: var(--text-secondary);
}