/* VulnAPI Navigation Menu Styles */

/* 
   Assumes your menu is within a container that you might target for overall layout, 
   e.g., nav#site-navigation .menu-primary or similar depending on your theme.
   These styles target the <li> and <a> elements we added classes to.
   The overall menu container (e.g., the <ul>) should ideally use display: flex for horizontal layout on desktop.
*/

/* General Menu Item Styling - Applied to items added by our plugin */
.menu-item.vulnapi-cves-link a,
.menu-item.vulnapi-cpes-link a,
.menu-item.vulnapi-monitor-link a,
.menu-item.vulnapi-monitors-link a,
.menu-item.vulnapi-profile-link a,
.menu-item.vulnapi-logout-link a,
.menu-item.vulnapi-login-link a,
.menu-item.vulnapi-register-link a {
    display: block;
    padding: 10px 15px; /* Slightly adjusted padding */
    text-decoration: none;
    color: #111; /* Slightly softer light text color */
    background-color: transparent; 
    border: 1px solid transparent; /* For border transition */
    border-radius: 6px; /* Consistent with other elements */
    transition: all 0.25s ease-in-out;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
    font-size: 0.86em; /* Adjust as needed */
    font-weight: 400; /* Normal weight for most items */
    line-height: 1.5;
    text-align: center;
}

/* Hover and Focus States for general links (CVEs, Products, Profile) */
.menu-item.vulnapi-cves-link a:hover,
.menu-item.vulnapi-cpes-link a:hover,
.menu-item.vulnapi-monitor-link a:hover,
.menu-item.vulnapi-monitors-link a:hover,
.menu-item.vulnapi-profile-link a:hover,
.menu-item.vulnapi-cves-link a:focus,
.menu-item.vulnapi-cpes-link a:focus,
.menu-item.vulnapi-monitor-link a:focus,
.menu-item.vulnapi-monitors-link a:focus,
.menu-item.vulnapi-profile-link a:focus {
    color: #111 !important;
    background-color: #f3eaff !important; /* Delicate purple */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    outline: none;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
}

/* Logout Link - often styled slightly differently or less prominently */
.menu-item.vulnapi-logout-link a {
    color: #111; /* Slightly dimmer */
}
.menu-item.vulnapi-logout-link a:hover,
.menu-item.vulnapi-logout-link a:focus {
    color: #b30000;
    background-color: #ffeaea; /* Soft red */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
}

/* Login and Register Links - Button-like Call to Action */
.menu-item.vulnapi-login-link a,
.menu-item.vulnapi-register-link a {
    font-weight: 500; /* Slightly bolder for CTA */
    color: #007bff; /* Match register button color */
    background-color: transparent; /* Remove gradient, match register */
    border: 1px solid #007bff; /* Match register border */
    border-radius: 6px; /* Match register border radius */
    padding: 10px 20px; /* Match register padding */
    box-shadow: none; /* Remove shadow for consistency */
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    color: #fff;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
}

.menu-item.vulnapi-register-link a {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
}

.menu-item.vulnapi-login-link a {
    font-weight: 500;
    color: #fff !important;
    background: linear-gradient(90deg, #a259ff 0%, #6a82fb 100%); /* Soft purple to blue gradient */
    border: 1px solid #a259ff; /* Subtle purple border */
    border-radius: 6px;
    padding: 10px 20px; /* Match register button exactly */
    min-width: 0; /* Remove any min-width that could cause mismatch */
    box-shadow: 0 2px 8px rgba(162, 89, 255, 0.10);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
    transition: all 0.25s cubic-bezier(.4,2,.3,1);
    display: inline-block; /* Ensure same box model as register */
}

.menu-item.vulnapi-login-link a:hover,
.menu-item.vulnapi-login-link a:focus {
    background: linear-gradient(90deg, #6a82fb 0%, #a259ff 100%); /* Reverse gradient */
    color: #fff !important;
    border-color: #6a82fb;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.16);
    outline: none;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif; /* Consistent font */
}

.menu-item.vulnapi-register-link a:hover,
.menu-item.vulnapi-register-link a:focus {
    background-color: #e3f7ff; /* Soft cyan for register */
    color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 91, 179, 0.10);
}

/* Active state (if you have a way to determine current page, add .current-menu-item or similar) */
/* This is a generic active style, WordPress usually adds .current-menu-item */
.menu-item.current-menu-item > a {
    color: #ffffff;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15); /* More prominent active background */
}

/* Spacing between our custom menu items if they are horizontal */
.menu-item.vulnapi-cves-link,
.menu-item.vulnapi-cpes-link,
.menu-item.vulnapi-monitor-link,
.menu-item.vulnapi-profile-link,
.menu-item.vulnapi-logout-link,
.menu-item.vulnapi-login-link,
.menu-item.vulnapi-register-link {
    margin: 0 4px; /* Adjust for spacing between items */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* If your theme's menu stacks items vertically on mobile: */
    .menu-item.vulnapi-cves-link,
    .menu-item.vulnapi-cpes-link,
    .menu-item.vulnapi-monitor-link,
    .menu-item.vulnapi-profile-link,
    .menu-item.vulnapi-logout-link {
        margin: 8px 0; /* Stack them with some vertical margin */
        width: 100%; /* Make them full width if they stack */
        background-color: #ffeaea; /* Soft red */
    }
    .menu-item.vulnapi-login-link,
    .menu-item.vulnapi-register-link {
        margin: 8px 0; /* Stack them with some vertical margin */
        width: 100%; /* Make them full width if they stack */
    }

    .menu-item.vulnapi-cves-link a,
    .menu-item.vulnapi-cpes-link a,
    .menu-item.vulnapi-monitor-link,
    .menu-item.vulnapi-profile_link a,
    .menu-item.vulnapi-logout-link a,
    .menu-item.vulnapi-login-link a,
    .menu-item.vulnapi-register-link a {
        padding: 12px 15px; /* Consistent padding for vertical items */
        text-align: left; /* Align text to the left for stacked items */
    }

    .menu-item.vulnapi-login-link a,
    .menu-item.vulnapi-register-link a {
        text-align: center; /* Keep CTA buttons centered if desired on mobile */
    }
}

@media (max-width: 900px) {
    .menu-item.vulnapi-cves-link a,
    .menu-item.vulnapi-cpes-link a,
    .menu-item.vulnapi-monitor-link a,
    .menu-item.vulnapi-monitors-link a,
    .menu-item.vulnapi-profile-link a,
    .menu-item.vulnapi-logout-link a,
    .menu-item.vulnapi-register-link a {
        color: #111 !important;
        background: #fff;
        border: 1px solid #ececec;
    }
    .menu-item.vulnapi-login-link a {
        color: #7c4dff !important;
        color: #fff !important;
    }
}

/* Example: If your menu bar has a dark background, e.g., #222 or #2c2c2c */
/* 
nav .menu-primary, .your-theme-menu-container-class {
    background-color: #2c2c2c; 
    padding: 10px 0; 
    display: flex; 
    justify-content: center; 
}
*/

/* You might need to adjust selectors based on your theme's specific HTML structure for the menu */
