/* GPL Chimp Login Menu CSS Stylesheet */

/* Main Containers (Declares global inheritance rules) */
.gplchimp-login-link-container,
.gplchimp-account-menu-container {
    display: inline-block;
    position: relative;
    font-family: "Poppins", Sans-serif;
    vertical-align: middle;
}

/* Button & Link styles - exactly styled to specs with Poppins */
.gplchimp-login-btn,
.gplchimp-menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    
    /* Configured styles */
    color: #E6E6E6 !important;
    fill: #E6E6E6 !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.5px;
    
    transition: none; /* No hover color changes on header text */
    outline: none;
}

/* Ensure color and background does not change on hover */
.gplchimp-login-btn:hover,
.gplchimp-menu-toggle-btn:hover,
.gplchimp-account-menu-container:hover .gplchimp-menu-toggle-btn {
    color: #E6E6E6 !important;
    fill: #E6E6E6 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* User Icon Styling */
.gplchimp-login-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Arrow down element for logged-in user */
.gplchimp-arrow-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 16px;
    margin-left: 2px;
    opacity: 0.8;
    color: #E6E6E6;
    fill: currentColor;
    transition: none;
    vertical-align: middle;
    margin-top: -4px;
}

.gplchimp-arrow-down svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Dropdown Menu Container */
.gplchimp-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
                transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 99999;
    overflow: hidden;
    margin-top: 5px;
}

/* Shows dropdown on hover/active */
.gplchimp-account-menu-container:hover .gplchimp-dropdown-menu,
.gplchimp-account-menu-container.gplchimp-active .gplchimp-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Dropdown Header (Avatar + Username) */
.gplchimp-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: #faf9f8; /* Updated background color */
    border-bottom: 1px solid #eaeaea;
}

/* Border-radius applied to avatar */
.gplchimp-dropdown-avatar img,
.gplchimp-dropdown-avatar .avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 6px !important; /* Updated border-radius to 6px */
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gplchimp-dropdown-username {
    font-size: 16px;
    font-weight: 600;
    color: #474747; /* Updated username color */
    letter-spacing: 0.2px; /* Updated username letter-spacing */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Links List */
.gplchimp-dropdown-links {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.gplchimp-dropdown-links li {
    margin: 0;
    padding: 0;
}

.gplchimp-dropdown-links a {
    display: block;
    padding: 6px 20px; /* Reduced vertical space */
    font-size: 16px; /* 16px text */
    font-weight: 400;
    color: #616161 !important; /* Updated link text color */
    letter-spacing: 0.1px; /* Updated link letter-spacing */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Dropdown link hover states */
.gplchimp-dropdown-links a:hover {
    background-color: #f7fafc;
    color: #F4683B !important; /* Hover Accent Color */
}

/* Divider before Logout */
.gplchimp-logout-li {
    border-top: 1px solid #eaeaea;
    margin-top: 8px !important;
    padding-top: 8px !important;
}

/* Logout link styling */
.gplchimp-logout-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
    color: #616161 !important; /* Matches link colors */
}

.gplchimp-logout-link:hover {
    color: #F4683B !important;
    background-color: #f7fafc !important;
}

.gplchimp-logout-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Responsive breakpoint: Hide text and show only user icon on mobile */
@media (max-width: 767px) {
    .gplchimp-menu-text,
    .gplchimp-login-text,
    .gplchimp-arrow-down {
        display: none !important;
    }
    
    .gplchimp-login-btn,
    .gplchimp-menu-toggle-btn {
        padding: 8px !important;
    }
    
    .gplchimp-dropdown-menu {
        right: -10px;
        width: 220px;
    }
}
