/* =========================
   Royale Hardcore — style.css
   Theme: Hypixel / Minecraft style
========================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

:root {
    --yellow: #ffcc00;
    --gold: #d4a017;
    --dark: #121212;
    --light-dark: #1e1e1e;
    --text: #fff;
    --accent: #00c853;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #000;
    margin: 0;
    padding: 0;
    color: var(--text);
    overflow-x: hidden;
}

#bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

header {
    text-align: center;
    padding: 20px 10px 5px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 2px solid var(--gold);
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    margin-bottom: 5px;
}

h1 {
    color: var(--yellow);
    font-weight: 900;
    margin: 5px 0;
}

.server-ip {
    color: #ccc;
    margin: 0;
    font-size: 15px;
}

    .server-ip span {
        color: var(--accent);
        font-weight: 700;
    }

.header-buttons {
    margin-top: 10px;
}

.discord-btn,
.donate-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

    .discord-btn:hover,
    .donate-btn:hover {
        transform: scale(1.05);
        background: #00e676;
    }

/* =========================
   Navbar
========================= */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(20, 20, 20, 0.9);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    padding: 8px;
    flex-wrap: wrap;
}

    .navbar button {
        background: var(--gold);
        color: #000;
        border: none;
        padding: 8px 14px;
        font-weight: 700;
        border-radius: 6px;
        margin: 3px;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

        .navbar button:hover {
            background: var(--yellow);
            transform: translateY(-2px);
        }

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    background: #111;
    border-radius: 6px;
    margin-left: 10px;
    padding: 3px;
}

    .search-box input {
        border: none;
        outline: none;
        padding: 5px 10px;
        background: transparent;
        color: #fff;
        font-size: 14px;
        width: 160px;
    }

    .search-box button {
        background: var(--gold);
        color: #000;
        border: none;
        border-radius: 4px;
        padding: 5px 8px;
        cursor: pointer;
        font-weight: 700;
    }

        .search-box button:hover {
            background: var(--yellow);
        }

/* =========================
   Main Panel
========================= */
main {
    max-width: 950px;
    margin: 25px auto;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.main-panel h2 {
    color: var(--yellow);
    margin-top: 0;
}

.update-box {
    background: rgba(30,30,30,0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    margin-bottom: 15px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.play-btn {
    background: #00c853;
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

    .play-btn:hover {
        background: #00e676;
    }

.donate-btn {
    background: #ab47bc;
}

.discuss-btn {
    background: #ffca28;
    color: #000;
    font-weight: 700;
}

.contact-btn {
    background: #42a5f5;
    color: #fff;
    font-weight: 700;
}

.desc {
    font-size: 15px;
    line-height: 1.5;
    color: #ddd;
}

/* =========================
   Goal Bar
========================= */
.goal-container {
    margin: 30px auto;
    text-align: center;
}

.goal-bar-bg {
    width: 90%;
    height: 18px;
    background: rgba(255,255,255,0.2);
    margin: 10px auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gold);
}

.goal-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c853, #aeea00);
    transition: width 0.5s ease;
}

/* =========================
   Discussion Section
========================= */
.discussion {
    background: rgba(25,25,25,0.8);
    border-radius: 10px;
    border: 1px solid var(--gold);
    padding: 20px;
}

    .discussion h3 {
        color: var(--yellow);
        margin-top: 0;
    }

#commentInput {
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    border: none;
    padding: 8px;
    resize: vertical;
    background: #111;
    color: #fff;
}

#submitComment {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    margin-top: 6px;
    font-weight: 700;
    cursor: pointer;
}

    #submitComment:hover {
        background: var(--yellow);
    }

#commentSection {
    margin-top: 12px;
    font-size: 14px;
}

/* =========================
   Modal (PayPal Donate)
========================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal-content {
    background: #222;
    border: 2px solid var(--gold);
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

    .modal-content h2 {
        color: var(--yellow);
    }

    .modal-content input {
        width: 100%;
        margin-top: 10px;
        padding: 6px;
        border-radius: 6px;
        border: 1px solid var(--gold);
        background: #111;
        color: #fff;
    }

.close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: var(--yellow);
}

    .close:hover {
        color: #fff;
    }

/* =========================
   Footer
========================= */
footer {
    text-align: center;
    background: rgba(0,0,0,0.7);
    border-top: 2px solid var(--gold);
    padding: 15px;
    font-size: 14px;
}

    footer a {
        color: var(--yellow);
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
        }

/* =========================
   Responsive Design
========================= */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }
}
