/*
 Theme Name:   Astra Child
 Template:     astra
 Version:      1.7
 Description:  Modern, high-effort user dropdown menu.
*/

/* ===================================================================
   1. Simple, Permanently Fixed "Scroll-Proof" Header
   =================================================================== */
   .icon-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#page {
    margin-top: 80px; /* Adjust this value if your header height is different */
}

/* ===================================================================
   2. HIGH-EFFORT MODERN USER DROPDOWN
   =================================================================== */

/* --- Base Icon & Container --- */
.custom-user-icon-container { display: flex; align-items: center; }
.custom-user-avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; transition: all 0.2s ease-in-out; }
.custom-user-login-link svg { width: 28px; height: 28px; fill: var(--ast-global-color-3); transition: fill 0.2s ease-in-out; }
.custom-user-login-link:hover svg { fill: var(--ast-global-color-0); }

/* --- Dropdown Container & Toggle --- */
.custom-user-dropdown { position: relative; } 
.custom-user-dropdown-toggle .custom-user-avatar-img { cursor: pointer; border-color: #e0e0e0; }
.custom-user-dropdown.active .custom-user-dropdown-toggle .custom-user-avatar-img,
.custom-user-dropdown-toggle:hover .custom-user-avatar-img {
    border-color: var(--ast-global-color-0, #d4b256);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgb(180 150 33 / 34%);
}

/* --- The Dropdown Menu Shell --- */
.custom-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px); /* Increased spacing */
    right: 0;
    width: 320px; /* Bigger width */
    color: #333;
    border-radius: 12px; /* Smoother corners */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow: hidden; /* Important for border-radius on children */
    
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
   
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-user-dropdown.active .custom-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* --- Dropdown Header Section with Cover Photo --- */
.dropdown-header {
    position: relative;
    padding: 20px;
    text-align: center;
    color: white;
    background: url('https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?q=80&w=1000&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.dropdown-header::before { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.dropdown-header-content {
    position: relative; /* To stay above the overlay */
    z-index: 2;
}
.dropdown-header-content strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
}
.dropdown-header-content span {
    font-size: 14px;
    opacity: 0.8;
}

/* --- Dropdown Body (Links) --- */
.custom-user-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}
.custom-user-dropdown-menu ul li a {
    display: flex; /* Changed to flex for icon alignment */
    align-items: center;
    gap: 12px; /* Space between icon and text */
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.custom-user-dropdown-menu ul li a:hover {
    background-color: var(--ast-global-color-0, #d4b256);
    color: white;
}

/* --- SVG Icons for Links --- */
.custom-user-dropdown-menu ul li a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.custom-user-dropdown-menu ul li a:hover svg {
    opacity: 1;
    fill: white; /* Change icon color on hover */
}

/* --- Dropdown Footer (Points) --- */
.dropdown-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}


    /* Force homepage background to white */
body.home {
    background-color: #ffffff !important;
}

