:root {
    --bg-dark: #0f1115;
    --card-bg: #181a20;
    --border-color: #2a2d36;
    --text-primary: #ffffff;
    --text-secondary: #8a8f9d;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-search: 'Lexend', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-primary);
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 40px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    cursor: pointer;
    justify-self: start;
}

.search-form {
    justify-self: center;
    width: 100%;
    max-width: 560px;
}

.searchbar {
    display: flex;
    align-items: center;
    width: 600px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.searchbar:focus-within {
    border-color: var(--accent);
}

.searchinput {
    font-size: 14px;
    font-family: var(--font-search);
    color: var(--text-primary);
    margin-left: 10px;
    outline: none;
    border: none;
    background: transparent;
    width: 100%;
}

.searchinput::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    color: var(--text-secondary);
    font-size: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    justify-self: end;
}

.navlinks {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.navlinks a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.navlinks a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.user-greeting {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}