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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #000000;
}

/* Navbar Container */
.navbar {
    display: flex;
    justify-content: space-between; /* Spreads items: Left, Center, Right */
    align-items: center;
    padding: 1rem 2rem;
    background-color: #000000; /* GitHub Dark header color */
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky; /* Keeps it at top when scrolling */
    top: 0;
    z-index: 1000; /* Ensures it stays on top of everything */
    flex-wrap: wrap; /* Allows wrapping on mobile */
}

/* 1. Logo Styling */
.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}
.highlight {
    color: #ca1b1b; /* Red Highlight */
}

/* 2. Search Container Styling */
.search-container {
    display: flex;
    align-items: center; /* Vertically center the input and icon */
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid transparent; /* Placeholder for focus state */
    transition: border 0.2s, background 0.2s;
}

/* Focus effect: Makes the whole bar light up when typing */
.search-container:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* The Input Field */
#usernameInput {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 0; /* Remove side padding to sit close to icon */
    width: 220px;
    outline: none;
    font-size: 0.95rem;
}

#usernameInput::placeholder {
    color: rgba(255,255,255,0.6);
}

/* The Search Icon Button */
#searchBtn {
    background: transparent; /* No background color */
    border: none;
    color: rgba(255,255,255,0.7); /* Light grey icon */
    cursor: pointer;
    padding: 8px;
    display: flex; /* centers the SVG */
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#searchBtn:hover {
    color: white; /* Bright white on hover */
    transform: scale(1.1); /* Tiny pop effect */
}

.nav-links button {
    background-color: #36790f; /* GitHub Green */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}