/* ===== Shared Header Styles ===== */
header {
    background-color: #000;
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between; /* spaces left and right */
    position: relative;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header-left {
    align-items: flex-start;
}

.header-right {
    align-items: flex-end;
}

header .site-logo {
    max-height: 100px;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Discord Button */
.discord-button {
    display: inline-block;
    background-color: #5865F2;
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.4);
}

.discord-button:hover {
    background-color: #4752c4;
    box-shadow: 0 6px 12px rgba(71, 82, 196, 0.6);
}

/* Server IP Click Text */
.header-right .server-ip {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-right .server-ip:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== Mobile Header ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-left,
    .header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    header .site-logo {
        position: relative;
        left: auto;
        transform: none;
        margin: 10px 0;
    }
}