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

body {
    background: linear-gradient(135deg,#0f0f14,#1a1a22);
    color: white;
    line-height: 1.5;
}

/* ANNOUNCEMENT */
.announcement {
    background: #ff5555;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    background: rgba(20,20,30,0.7);
    backdrop-filter: blur(10px);
    z-index: 10;
}

nav .logo {
    font-weight: bold;
    font-size: 24px;
}

nav .nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.2s;
}

nav .nav-links a:hover {
    opacity: 1;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 50px;
}

.hero p {
    opacity: 0.8;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: #5865F2;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

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

/* SECTIONS (LESS EMPTY SPACE FIX) */
section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

h2 {
    margin-bottom: 15px;
    font-size: 26px;
}

/* CHAT BOX */
.chat-box {
    background: rgba(54,57,63,0.85);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
}

#chat-output {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #2f3136;
    border-radius: 10px;
}

#chat-output p {
    margin-bottom: 8px;
    font-size: 14px;
}

.system-msg {
    color: #ccc;
    font-style: italic;
}

.user-msg {
    color: #ffffff;
}

.uwu-msg {
    color: #ffffff;
}

.npc-msg {
    color: #7289da;
}

.timestamp {
    float: right;
    font-size: 10px;
    color: #999;
    margin-left: 5px;
}

/* TYPING DOTS */
.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 3px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,80%,100% { opacity: 0; }
    40% { opacity: 1; }
}

/* CHAT INPUT */
.chat-buttons {
    margin: 10px 0;
}

.chat-buttons button {
    background: #5865F2;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.chat-buttons button:hover {
    transform: scale(1.05);
}

.chat-input-container {
    display: flex;
    margin-top: 10px;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #40444b;
    color: white;
}

#send-btn {
    width: 80px;
    margin-left: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #5865F2;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

#send-btn:hover {
    transform: scale(1.05);
}

/* COMMANDS */
.command {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}

.command button {
    background: #5865F2;
    border: none;
    padding: 6px 10px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.command button:hover {
    transform: scale(1.05);
}

/* UPDATE LOG (FIXED SIZE 🔥) */
.update-log {
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 15px;

    height: 220px;        /* ALWAYS SAME SIZE */
    overflow-y: auto;     /* scroll instead */

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-entry {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
}

.update-date {
    font-size: 12px;
    color: #aaa;
    display: block;
    margin-bottom: 5px;
}

/* LISTS */
ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 10px;
    }

    #send-btn {
        width: 60px;
    }
}
