/* 공통 상단 내비게이션 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    padding: 0 max(20px, calc((100% - 720px) / 2));
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-light, #eeeeee);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    flex-shrink: 0;
    color: var(--text-main, #1a1a1a);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.6px;
    text-decoration: none;
}

.nav-right,
.user-control-area {
    display: flex;
    align-items: center;
}

.nav-right-login {
    display: block;
}

.user-control-area {
    gap: 16px;
}

.btn-login {
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--text-main, #1a1a1a);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-login:hover {
    background-color: #333333;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    max-width: 180px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: #f8f9fa;
    color: var(--text-main, #1a1a1a);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-link:hover {
    border-color: var(--border-light, #eeeeee);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: var(--text-main, #1a1a1a);
    color: #ffffff;
}
.user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.user-id-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar a:focus-visible {
    outline: 2px solid #b64a31;
    outline-offset: 3px;
}

.btn-back {
    display: inline-grid;
    width: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    background: none;
    color: var(--text-main, #1a1a1a);
    cursor: pointer;
}

.btn-back:focus-visible {
    outline: 2px solid #b64a31;
    outline-offset: 2px;
}

@media (max-width: 359px) {
    .navbar {
        padding-right: 16px;
        padding-left: 16px;
    }

    .profile-link {
        max-width: 132px;
    }
}
