/* =======================================
   GLOBAL
======================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #121212;
    color: white;
    font-family: Arial, sans-serif;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
}

.user-mini-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.user-mini-profile img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.user-mini-profile span {
    font-size: 14px;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =======================================
   INPUT FIELDS
======================================= */

input {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;

    background: #121212;
    border: 1px solid #4CAF50;
    border-radius: 8px;

    color: white;
    font-size: 1rem;

    outline: none;
    transition: 0.2s ease;
}

input:focus {
    border-color: #43A047;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

/* =======================================
   NAVIGATION
======================================= */

nav {
    background: #1a1a1a;
    border-bottom: 2px solid #4CAF50;
    margin-bottom: 30px;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
}

.nav-auth {
    margin-left: auto;
}

/* Top-level links */

.nav-container > a,
.dropdown > a,
.nav-auth a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 6px;
    display: block;
    transition: 0.2s ease;
}

.nav-container > a:hover,
.dropdown > a:hover,
.nav-auth a:hover {
    background: #4CAF50;
}

.active {
    background: #4CAF50;
}

/* =======================================
   DROPDOWNS
======================================= */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;

    background: #1f1f1f;
    border: 1px solid #4CAF50;
    border-radius: 8px;

    overflow: hidden;

    z-index: 1000;
}

/* First level dropdown */

.dropdown:hover > .dropdown-content {
    display: block;
}

/* Dropdown menu buttons */

.dropdown-content a,
.nested-dropdown > a,
.nested-content a {

    display: block;

    padding: 12px 16px;

    color: white;
    text-decoration: none;
    font-weight: bold;

    background: #1f1f1f;

    transition: background 0.2s ease;
}

/* Hover effect */

.dropdown-content a:hover,
.nested-dropdown > a:hover,
.nested-content a:hover {
    background: #4CAF50;
}

/* =======================================
   NESTED DROPDOWNS
======================================= */

.nested-dropdown {
    position: relative;
}

/* Makes arrow align nicely */

.nested-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nested-content {
    display: none;

    position: absolute;
    top: 0;
    left: 100%;

    min-width: 220px;

    background: #1f1f1f;
    border: 1px solid #4CAF50;
    border-radius: 8px;

    overflow: hidden;

    z-index: 1001;
}

.nested-dropdown:hover > .nested-content {
    display: block;
}/* =======================================
   HEADER
======================================= */

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #4CAF50;
    font-size: 3rem;
}

.subtitle {
    color: #bdbdbd;
    margin-top: 10px;
}

/* =======================================
   CARDS
======================================= */

.card {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;

    box-shadow: 0 0 12px rgba(0,0,0,0.4);

    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h2 {
    color: #4CAF50;
    margin-bottom: 15px;
}

/* Grid for server cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* =======================================
   BUTTONS
======================================= */

.download-btn,
.discord-btn,
.copy-btn {
    display: inline-block;

    padding: 14px 28px;
    margin-top: 15px;

    border: none;
    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    color: white;
    cursor: pointer;

    transition: 0.2s ease;
}

.download-btn {
    background: #4CAF50;
}

.download-btn:hover {
    background: #43A047;
}

.copy-btn {
    background: #2196F3;
}

.copy-btn:hover {
    background: #1976D2;
}

.discord-btn {
    background: #5865F2;
}

.discord-btn:hover {
    background: #4752C4;
}

/* =======================================
   TEXT / LISTS
======================================= */

.version,
.filesize {
    margin-top: 10px;
    color: #bdbdbd;
}

ol {
    padding-left: 20px;
}

ol li {
    margin-bottom: 8px;
}

/* =======================================
   STATUS COLORS
======================================= */

.status-online {
    color: #4CAF50;
    font-weight: bold;
}

.status-offline {
    color: #F44336;
    font-weight: bold;
}

/* =======================================
   MOBILE
======================================= */

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-auth {
        margin-left: 0;
    }

    .dropdown-content,
    .nested-content {
        position: static;
        width: 100%;
        margin-top: 5px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}