@font-face {
    font-family: 'Manufaktur';
    src: url('./assets/manufaktur-black.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manufaktur', Arial, sans-serif;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
    transition: background 0.3s ease;
}

body.dark-mode {
    background: #000000;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Settings */
.settings {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mode-label {
    font-size: 14px;
    color: #000000;
    transition: color 0.3s ease;
}

body.dark-mode .mode-label {
    color: #ffffff;
}

.toggle-btn {
    position: relative;
    width: 56px;
    height: 28px;
    border-radius: 14px;
    background: #cbd5e0;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.dark-mode .toggle-btn {
    background: #4a5568;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

body.dark-mode .toggle-slider {
    transform: translateX(28px);
}

.settings-gear {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: inherit;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    z-index: 50;
}

.settings-modal.active {
    display: flex;
}

.settings-window {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    width: 260px;
    color: #000;
}

body.dark-mode .settings-window {
    background: rgba(0,0,0,0.9);
    color: #fff;
}

.settings-close {
    background: none;
    border: none;
    float: right;
    cursor: pointer;
    font-size: 14px;
}

.settings-window label {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

.settings-window input {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
}

/* Logo */
.logo-container {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo {
    width: 128px;
    height: 128px;
    display: block;
}

/* Floating Boxes */
.boxes-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1152px;
    padding: 0 32px;
}

.float-box {
    pointer-events: auto;
    padding: 32px;
    width: 280px;
    height: 220px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    color: #000000;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

body.dark-mode .float-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.float-box h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.float-box p {
    font-size: 14px;
    line-height: 1.6;
}

.pages-title {
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

body.dark-mode .pages-title {
    color: #fff;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Discord Chat */
.discord-container {
    padding: 80px 32px 32px;
}

#chatMessages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.chat-message {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #000;
}

body.dark-mode .chat-message {
    background: #1f2933;
    color: #fff;
}

.chat-message-author {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
}

.chat-message-time {
    font-size: 10px;
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    gap: 8px;
}

/* =====================
   Settings Modal
   ===================== */
.settings-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #000;
    background: transparent;
    cursor: pointer;
}

body.dark-mode .settings-btn {
    color: #fff;
    border-color: #fff;
}

.settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.settings-modal.active {
    display: flex;
}

.settings-window {
    background: rgba(255,255,255,0.95);
    padding: 24px;
    border-radius: 12px;
    width: 300px;
    position: relative;
}

body.dark-mode .settings-window {
    background: rgba(20,20,20,0.95);
    color: #fff;
}

.close-settings {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.setting-row input {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .boxes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .boxes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
