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

html, body {
    width: 100%;
    height: auto;
}

body {
    background-image: url('./media/58360.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: system-ui, -apple-system, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    min-height: 100vh;
    overflow: visible;
    gap: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    height: calc(100vh - 40px);
    gap: 0;
}


.site-header {
    width: 100%;
}

.header-banner {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5f7a 0%, #2e8b9e 50%, #1a5f7a 100%);
    border: 2px solid #333;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-banner h1 {
    color: #fff;
    font-size: 48px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.navbar {
    display: flex;
    gap: 0;
    background: linear-gradient(
        135deg,
        rgba(80, 180, 220, 0.18) 0%,
        rgba(40, 120, 160, 0.28) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-link {
    flex: 1;
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.content {
    position: relative;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgba(10, 25, 47, 0.5);
    flex: 1;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 100%;
}

.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.sidebar-left,
.sidebar-right {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}

.sidebar-panel {
    background: linear-gradient(
        135deg,
        rgba(80, 180, 220, 0.18) 0%,
        rgba(40, 120, 160, 0.28) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 16px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-panel h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.sidebar-panel p {
    color: #fff;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list a {
    color: #a0d8ff;
    text-decoration: underline;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.link-list a:hover {
    color: #c0e8ff;
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-placeholder {
    width: 88px;
    height: 31px;
    background: #333;
    border: 1px solid #666;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
}

.main-content {
    min-height: 0;
    background: linear-gradient(
        135deg,
        rgba(60, 140, 180, 0.22) 0%,
        rgba(30, 90, 130, 0.32) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    padding: 0;
}

.content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    display: block;
}

.content-inner {
    padding: 30px;
    color: #fff;
    min-height: 100%;
}

.content-title {
    color: #5de6f5;
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-inner h2,
.content-inner h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-inner p {
    color: #fff;
    line-height: 1.7;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.content-inner ul {
    color: #fff;
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.content-inner li {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
}

.content-inner a {
    color: #a0d8ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.content-inner a:hover {
    color: #c0e8ff;
}

.content-inner em {
    color: #bbb;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 3px solid #1a5f7a;
    outline: 2px dotted #5de6f5;
    outline-offset: 3px;
    box-shadow: inset 0 0 0 1px rgba(93, 230, 245, 0.25);
}

.sidebar-button img {
    border: none;
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.gallery img {
    flex: 1 1 auto;
    min-width: 200px;
    object-fit: cover;
    max-height: 400px;
}

.discord-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.discord-pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.status-bubble {
    position: absolute;
    top: -70px;
    right: 0;
    background: #fff;
    border: 2px solid #333;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
    align-items: center;
    gap: 8px;
}

.status-bubble-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43b581;
    flex-shrink: 0;
}

.status-indicator.idle {
    background: #faa61a;
}

.status-indicator.dnd {
    background: #f04747;
}

.status-indicator.offline {
    background: #747f8d;
}

/* Cloud thinking bubble pointer */
.status-bubble-pointer {
    position: absolute;
    bottom: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    .header-banner h1 {
        font-size: 36px;
    }

    body {
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
        min-height: calc(100vh - 20px);
    }

    .header-banner {
        min-height: 120px;
    }

    .header-banner h1 {
        font-size: 28px;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-link {
        flex: 1 1 calc(33% - 8px);
        min-width: 100px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-inner {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-banner {
        min-height: 100px;
    }

    .header-banner h1 {
        font-size: 22px;
    }

    .navbar {
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        flex: none;
        width: auto;
    }

    .content-inner {
        padding: 15px;
    }

    .sidebar {
        gap: 10px;
    }

    .sidebar-panel {
        padding: 12px;
    }

    .discord-widget {
        bottom: 10px;
        right: 10px;
    }

    .discord-pfp {
        width: 80px;
        height: 80px;
    }

    .status-bubble {
        top: -60px;
        font-size: 11px;
        padding: 8px 12px;
    }

    .status-bubble-pointer {
        right: 12px;
    }
}
