/**
 * 🧭 Benutzer-Menü (PFWS 1.4.1)   css/PF_user_menu.css
 * Autor: Franz
 * Beschreibung: Styling für das User-Dropdown-Menü mit Login, Avatar & Optionen
 */

/* 📦 Menücontainer */
#pf-user-mainmenu {
    position: fixed;
    top: 60px;
    right: 20px;
    background: #232323; /* dunkler, aber stilvoller Hintergrund */
    color: #f0f0f0;       /* heller Text für Kontrast */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 20px;
    width: 320px;
    z-index: 1000;
    font-family: "Segoe UI", sans-serif;
    backdrop-filter: blur(6px);
    border: 1px solid #2e2e2e;
}

/* 🚫 Menü ausblenden */
#pf-user-mainmenu.hidden {
    display: none;
}

/* ❌ Schließen-Button */
#pfws-usm-close-button {
    float: right;
    background: #e74c3c;
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

#pfws-usm-close-button:hover {
    background: #c0392b;
}

/* 📋 Menüliste */
#pf-user-mainmenu ul {
    list-style: none;       /* 🔧 Punkte entfernen */
    padding-left: 0;
    margin: 0;
}

/* 📄 Einzelne Einträge */
#pf-user-mainmenu li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 🔗 Links im Menü */
#pf-user-mainmenu a {
    color: #4aa3ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

#pf-user-mainmenu a:hover {
    color: #82cfff;
    text-decoration: underline;
}

/* 🧩 Abschnittstitel */
#pf-user-mainmenu strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #ffffff;
}

/* 👤 Benutzerinfo mit Avatar */
.user-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar-status-wrapper {
    position: relative;
}

.avatar-status-wrapper img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #4aa3ff;
    object-fit: cover;
}

.status-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 1.2em;
}

/* 🔐 Inline-Login-Formular */
.pf-inline-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    background: #2e2e2e;
    padding: 14px;
    border-radius: 8px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.pf-inline-login label {
    font-size: 0.9rem;
    color: #ccc;
}

.pf-inline-login input {
    padding: 8px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1a1a1a;
    color: #f0f0f0;
}

.pf-inline-login input:focus {
    outline: none;
    border-color: #4aa3ff;
    background: #222;
}

.pf-inline-login button {
    padding: 8px 12px;
    background-color: #4aa3ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.pf-inline-login button:hover {
    background-color: #82cfff;
}