/* =========================================================================
   KoPeOn - Auth navigáció stílusai
   A header-be automatikusan beillesztett bejelentkezés/profil menü
   ========================================================================= */

.auth-nav-slot {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.auth-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    color: var(--header-link, #4b5563);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.auth-nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--auth-primary, #6366f1);
    border-color: rgba(99, 102, 241, 0.2);
}

.auth-nav-link i {
    font-size: 0.85rem;
}

.auth-nav-user {
    position: relative;
    display: inline-block;
}

.auth-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    background: transparent;
    border: 1px solid var(--auth-border, #e5e7eb);
    color: var(--header-link, #4b5563);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-nav-button:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--auth-primary, #6366f1);
}

.auth-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.auth-nav-button--admin {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), transparent);
}

.auth-nav-button--admin .auth-nav-avatar {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.auth-nav-button--admin:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.auth-nav-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    width: fit-content;
}

.auth-nav-admin-badge i {
    font-size: 9px;
}

.auth-nav-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-nav-caret {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s;
}

.auth-nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--auth-card-bg, #ffffff);
    border: 1px solid var(--auth-border, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.auth-nav-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-nav-dropdown__header {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--auth-border, #e5e7eb);
    margin-bottom: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auth-nav-dropdown__header strong {
    color: var(--auth-text, #1f2937);
    font-size: 0.95rem;
}

.auth-nav-dropdown__header small {
    color: var(--auth-text-muted, #6b7280);
    font-size: 0.8rem;
    word-break: break-all;
}

.auth-nav-dropdown a,
.auth-nav-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    color: var(--auth-text, #1f2937);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease;
}

.auth-nav-dropdown a:hover,
.auth-nav-dropdown button:hover {
    background: var(--auth-bg, #f5f7fb);
    color: var(--auth-primary, #6366f1);
}

.auth-nav-dropdown a i,
.auth-nav-dropdown button i {
    width: 16px;
    text-align: center;
    color: var(--auth-text-muted, #6b7280);
}

.auth-nav-dropdown a:hover i,
.auth-nav-dropdown button:hover i {
    color: var(--auth-primary, #6366f1);
}

.auth-nav-dropdown hr {
    border: none;
    border-top: 1px solid var(--auth-border, #e5e7eb);
    margin: 0.4rem 0;
}

@media (max-width: 640px) {
    .auth-nav-text {
        display: none;
    }

    .auth-nav-button {
        padding: 0.3rem;
    }

    .auth-nav-dropdown {
        right: -8px;
        min-width: 220px;
    }
}
