/* header-style.css - CSS specifically for the header and dropdown */

/* --- General Header Styling --- */
header {
    background-color: #005DAA; /* White background for the header */
    border-bottom: 1px solid #e0e0e0; /* Subtle separator line */
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-style-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo Section --- */
.header-style-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logos and title */
}

.header-style-logo img {
    height: 30px; /* Standardize logo size */
    width: auto;
}

.header-style-logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-style-logo h1 a {
    text-decoration: none;
    color: #fff; /* Primary blue color for the link */
    transition: color 0.2s;
}

.header-style-logo h1 a:hover {
    color: #f0f0f04a;
}

/* --- Navigation Menu --- */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

nav ul li a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

/* --- Header Icons/Buttons Section --- */
.header-style-header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-style-header-icons li {
    list-style: none; /* Ensure all lists in this section are unstyled */
    margin: 0;
    padding: 0;
}

.header-style-header-icons button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.header-style-header-icons button:hover {
    background-color: #0056b3;
}

/* --- Profile Dropdown Styling --- */
.header-style-profile-dropdown {
    position: relative; /* Container for the dropdown */
    display: inline-block;
    cursor: pointer;
}

.header-style-profile-dropdown > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.header-style-profile-dropdown > a:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.header-style-pfp {
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Circular profile picture */
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid #007bff;
}

/* Fallback for profile picture initial */
.header-style-pfp[style*="background-color: #555"] {
    border: none; /* Remove blue border for initial fallback */
    background-color: #555 !important;
    color: #fff !important;
    font-weight: 600;
}

.header-style-dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Ensure it's above other elements */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

/* Show the dropdown content on hover or focus */
.header-style-profile-dropdown:hover .header-style-dropdown-content,
.header-style-profile-dropdown:focus-within .header-style-dropdown-content {
    display: block;
}

.header-style-dropdown-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.header-style-dropdown-header p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

.header-style-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.header-style-dropdown-content a:hover {
    background-color: #007bff;
    color: white;
}

.header-style-dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}