/* Base Font Settings (Ensure this matches your hero) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --primary-red: #ff3b3b; /* Matched to the 'FiveM' text */
    --text-white: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* --- Navbar Core --- */
.navbar {
    width: 100%;
    padding: 24px 0;
    /* Transparent to let the diagonal stripe background show through */
    background: transparent; 
    position: relative; /* Or fixed/sticky if you want it to scroll */
    z-index: 100;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* --- Navigation Links --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-white);
}

/* --- Actions Area (Search + Buttons) --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Search Box ( styled to look like the hero cards) --- */
.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle glass effect */
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--text-muted);
}

.search-box i {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 8px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 14px;
    width: 120px; /* Compact width */
    font-family: inherit;
}

.search-box input::placeholder {
    color: #555;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px; /* Matches hero buttons */
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

/* Primary Button (Mimics 'Discover Scripts' - White) */
.btn-primary {
    background-color: var(--text-white);
    color: #000000;
}

.btn-primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-1px);
}

/* Secondary Button (Mimics 'Join Discord' - Dark Outline) */
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.whiteborder {
    border: 1px solid #6b6b73 !important;
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background-color: rgba(255,255,255,0.05);
}

/* Logged in text */
.nav-actions span {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 10px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast-success { background-color: #10b981; }
.toast-error { background-color: var(--primary-red); }

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .nav-links, .search-box {
        display: none; /* Simple hide for mobile, usually requires a hamburger menu */
    }
}