/* ═══════════════════════════════════════════════════════════════
   AUTH - Login/Register Modal & User Menu
   Developed by Toni Sciacca - mail@tonisciacca.com
   ═══════════════════════════════════════════════════════════════ */

/* Auth Modal */
.auth-modal {
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #1f2937;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #1a1a1a;
    background: #fff;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #FF385C;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
}

.auth-form .form-group input::placeholder {
    color: #c0c0c0;
}

.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
    background: #FF385C !important;
    color: #fff !important;
    border-color: #FF385C !important;
    border-radius: 10px !important;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.2s;
    border: none;
}

.auth-submit:hover {
    filter: brightness(0.9);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.auth-footer a {
    color: #FF385C;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* User Avatar im Header */
.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FF385C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: fixed;
    top: 60px;
    right: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    min-width: 220px;
    z-index: 9999;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-user-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dropdown-user-info strong {
    font-size: 0.95rem;
}

.dropdown-user-info span {
    font-size: 0.8rem;
    color: #6b7280;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item i,
.dropdown-item svg {
    width: 18px;
    height: 18px;
}

.dropdown-logout {
    color: #dc2626;
}

.dropdown-logout:hover {
    background: #fef2f2;
}

/* Wissen sharen - aufklappbares Untermenu */
.dropdown-item-expandable {
    position: relative;
}

.dropdown-expand-icon {
    width: 14px !important;
    height: 14px !important;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.dropdown-item-expandable.expanded .dropdown-expand-icon {
    transform: rotate(180deg);
}

.dropdown-submenu {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-subitem {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.dropdown-subitem:hover {
    background: #e5e7eb;
}

.dropdown-subitem i,
.dropdown-subitem svg {
    width: 16px;
    height: 16px;
}

/* Flag Icon */
.flag-icon {
    display: inline-block;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
