@import 'https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap';

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0B0B0F;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* HEADER */
#load-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#load-header.nav-hidden {
    transform: translateY(-100%);
}

header {
    width: 100%;
    padding: 2.2em;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 60px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

header.nav-scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2em;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.nav-logo img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-logo[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #C084FC;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    pointer-events: none;
}

nav {
    display: flex;
    gap: 1.5em;
    align-items: center;
    flex-grow: 1;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    background: transparent;
    border: 1px solid #C084FC;
    text-decoration: none;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    border-radius: 2rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    color: #fff;
      background: #C084FC22;
    transform: translateY(-5px);
    text-decoration: none;
}

.arrow {
    font-size: 0.75em;
    display: inline-block;
    transition: transform 0.35s;
    transform: rotate(-90deg);
}

.nav-item:hover > .nav-link .arrow {
    transform: rotate(0deg);
}

.dropdown {
    display: none;
    position: relative;
    top: auto;
    left: 0;
    font-size: smaller;
    background: transparent;

    flex-direction: row; 
    padding: 0 0.5em;
    gap: 0.5em;
    
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.dropdown a {
    color: white;
    text-decoration: none;
    padding: 0.7em 1.2em;
    display: block;
    font-weight: 500;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

.dropdown a::after {
    content: '';
    position: absolute;
    left: 10px;
    bottom: 8px;
    width: 0%;
    height: 2px;
    background: #C084FC;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.dropdown a:hover::after {
    width: calc(100% - 20px);
}

.profile-pill {
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid #C084FC;
    padding: 0.5em 1.2em 0.5em 0.6em;
}

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #C084FC;
}



.dropdown.align-right {
    right: 0;
    left: auto;
    min-width: 160px;
}

/* FOOTER */
footer {
    margin-top: 4em;
    margin-bottom: 1em;
}

footer p {
    margin: 0.2em 0;
}












/* Container & Trigger */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(192, 132, 252, 0.2);
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-trigger:hover {
    background: rgba(192, 132, 252, 0.1);
    border-color: #C084FC;
}

/* Avatar & Status Dot */
.avatar-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
}

.nav-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #000;
}

/* Status Colors */
.status-indicator.online { background: #4ade80; }
.status-indicator.idle { background: #fbbf24; }
.status-indicator.dnd { background: #f87171; }
.status-indicator.offline { background: #94a3b8; }

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #121216;
    border: 2px solid rgba(192, 132, 252, 0.2);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.dropdown-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(192, 132, 252, 0.1);
    color: #fff;
}

.dropdown-item.logout:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* BUTTONS */
.btn-icon {
    width: 24px;
    height: 24px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #C084FC;
    color: black;
    text-decoration: none;
    padding: 0.8em 1.8em;
    border-radius: 2rem;
    margin: 0.5em;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn:active {
    transform: scale(0.92);
    transition: all 0.05s ease;
}

.btn.secondary {
    background: transparent;
    border: 1px solid #C084FC;
    display: flex;
    align-items: center;
    color: white;
}

.btn.secondary:hover {
  background: #C084FC22;
}

.btn.discord {
    background: #5865f2;
    color: white;
    text-decoration: none;
    width: fit-content;
}

.btn.discord:hover {
    background: #4751c4;
}

.btn.danger {
    background: none;
    border: #f87171 solid 1px;
    color: white;
}

.btn.danger:hover {
    background: #f871713a;
}

:root {
            --bg-main: #0a0a0c;
            --bg-card: #121216;
            --bg-hover: #1c1c24;
            --accent-pink: #C084FC;
            --accent-pink-dim: rgba(192, 132, 252, 0.15);
            --text-main: #f3f4f6;
            --text-muted: #858594;
            --border-color: #24242e;
            --status-green: #10b981;
            --status-purple: #b983ff;
        }